Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 93.92 kB / 16.32 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 182.5 kB / 17.21 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 223.2 MB / 241.2 MB, free: 348 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003923/0.0003927, allocations: 4 kB / 300.9 MB, free: 6.367 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1358, allocations: 50.42 MB / 351.3 MB, free: 3.938 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep): time 0.00178/0.1376, allocations: 1.135 MB / 352.5 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003078/0.138, allocations: 104.4 kB / 352.6 MB, free: 2.688 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.137e-05/0.138, allocations: 0 / 352.6 MB, free: 2.688 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.853e-05/0.1381, allocations: 7.938 kB / 352.6 MB, free: 2.68 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.559e-05/0.1381, allocations: 0 / 352.6 MB, free: 2.68 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002895/0.1384, allocations: 27.89 kB / 352.6 MB, free: 2.652 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.9e-05/0.1385, allocations: 23.92 kB / 352.6 MB, free: 2.629 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001303/0.1387, allocations: 4 kB / 352.6 MB, free: 2.625 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.496e-05/0.1387, allocations: 8 kB / 352.6 MB, free: 2.617 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.038e-05/0.1388, allocations: 11.92 kB / 352.7 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.608e-05/0.1388, allocations: 4 kB / 352.7 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.457e-05/0.1388, allocations: 0 / 352.7 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.198e-05/0.1389, allocations: 0 / 352.7 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.873e-05/0.1389, allocations: 37.58 kB / 352.7 MB, free: 2.559 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.768e-05/0.139, allocations: 19.95 kB / 352.7 MB, free: 2.539 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.918e-06/0.1391, allocations: 0 / 352.7 MB, free: 2.539 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.1391, allocations: 0 / 352.7 MB, free: 2.539 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.01e-06/0.1391, allocations: 0 / 352.7 MB, free: 2.539 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006601/0.1397, allocations: 332.6 kB / 353 MB, free: 2.168 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.409e-05/0.1398, allocations: 12.03 kB / 353.1 MB, free: 2.156 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.195e-05/0.1399, allocations: 38.55 kB / 353.1 MB, free: 2.109 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.382e-05/0.1399, allocations: 3.953 kB / 353.1 MB, free: 2.105 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002321/0.1402, allocations: 175 kB / 353.3 MB, free: 1.895 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.615e-05/0.1402, allocations: 4 kB / 353.3 MB, free: 1.891 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.404e-05/0.1402, allocations: 0 / 353.3 MB, free: 1.891 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003517/0.1406, allocations: 103.3 kB / 353.4 MB, free: 1.777 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.1406, allocations: 0 / 353.4 MB, free: 1.777 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.1406, allocations: 7.938 kB / 353.4 MB, free: 1.77 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.1406, allocations: 3.953 kB / 353.4 MB, free: 1.766 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.956e-05/0.1407, allocations: 12 kB / 353.4 MB, free: 1.754 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001714/0.1409, allocations: 157.7 kB / 353.5 MB, free: 1.551 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001428/0.141, allocations: 50.56 kB / 353.6 MB, free: 1.492 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.165e-05/0.1411, allocations: 20.92 kB / 353.6 MB, free: 1.469 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.426e-05/0.1412, allocations: 4 kB / 353.6 MB, free: 1.465 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/0.1412, allocations: 34.56 kB / 353.7 MB, free: 1.422 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 3.998e-06/0.1412, allocations: 0 / 353.7 MB, free: 1.422 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001978/0.1414, allocations: 65.62 kB / 353.7 MB, free: 1.352 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.39e-05/0.1415, allocations: 55.41 kB / 353.8 MB, free: 1.285 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.392e-05/0.1415, allocations: 113.7 kB / 353.9 MB, free: 1.164 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.184e-05/0.1416, allocations: 25.7 kB / 353.9 MB, free: 1.133 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.537e-05/0.1416, allocations: 80.14 kB / 354 MB, free: 1.051 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.675e-06/0.1416, allocations: 4 kB / 354 MB, free: 1.047 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.124e-06/0.1416, allocations: 3.938 kB / 354 MB, free: 1.043 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.519e-05/0.1417, allocations: 322.8 kB / 354.3 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.518e-06/0.1417, allocations: 0 / 354.3 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.843e-05/0.1418, allocations: 31.38 kB / 354.3 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.95e-05/0.1418, allocations: 4 kB / 354.3 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.1418, allocations: 3.984 kB / 354.3 MB, free: 0.668 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.099e-05/0.1419, allocations: 57.58 kB / 354.4 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.1419, allocations: 8 kB / 354.4 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1419, allocations: 288 / 354.4 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.1419, allocations: 0 / 354.4 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.38e-05/0.142, allocations: 11.98 kB / 354.4 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.142, allocations: 3.938 kB / 354.4 MB, free: 0.582 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.682e-05/0.142, allocations: 11.89 kB / 354.4 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.987e-06/0.142, allocations: 0 / 354.4 MB, free: 0.5703 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (assignClock1.y,assignClock1.u,step.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.608e-05/0.1421, allocations: 114.2 kB / 354.6 MB, free: 460 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.771e-05/0.1422, allocations: 57.67 kB / 354.6 MB, free: 396 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.089e-05/0.1422, allocations: 3.5 kB / 354.6 MB, free: 384 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.1423, allocations: 4 kB / 354.6 MB, free: 380 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1423, allocations: 4 kB / 354.6 MB, free: 376 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.1423, allocations: 0 / 354.6 MB, free: 376 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.945e-05/0.1424, allocations: 165.5 kB / 354.8 MB, free: 160 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1424, allocations: 0 / 354.8 MB, free: 160 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.824e-05/0.1424, allocations: 0 / 354.8 MB, free: 160 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.1424, allocations: 4 kB / 354.8 MB, free: 156 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-06/0.1424, allocations: 4 kB / 354.8 MB, free: 152 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.1424, allocations: 3.938 kB / 354.8 MB, free: 148 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1424, allocations: 0 / 354.8 MB, free: 148 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001195/0.1426, allocations: 85.06 kB / 354.9 MB, free: 44 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.296e-05/0.1426, allocations: 81.11 kB / 355 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.269e-05/0.1426, allocations: 0 / 355 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.256e-05/0.1427, allocations: 4 kB / 355 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.869e-06/0.1427, allocations: 4 kB / 355 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-06/0.1427, allocations: 0 / 355 MB, free: 15.94 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.785e-05/0.1427, allocations: 79.28 kB / 355 MB, free: 15.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1427, allocations: 0 / 355 MB, free: 15.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001935/0.1429, allocations: 8 kB / 355 MB, free: 15.85 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (step.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004082/0.1433, allocations: 0.624 MB / 355.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001094/0.1435, allocations: 19.98 kB / 355.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1435, allocations: 3.938 kB / 355.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.02e-07/0.1435, allocations: 0 / 355.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002308/0.1437, allocations: 27.95 kB / 355.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005789/0.1443, allocations: 377.3 kB / 356.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002649/0.1446, allocations: 0.6848 MB / 356.8 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.369e-05/0.1446, allocations: 4 kB / 356.8 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.465e-05/0.1447, allocations: 15.44 kB / 356.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1447, allocations: 0 / 356.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01133/0.156, allocations: 1.019 MB / 357.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002622/0.1563, allocations: 214.3 kB / 358 MB, free: 12.9 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.848/2.005, allocations: 0 / 358 MB, free: 12.9 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep_res.mat does not exist to compare? outputFormat=mat