Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001031/0.001031, allocations: 176.9 kB / 8.007 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.709/1.709, allocations: 205.3 MB / 213.7 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008705/0.0008705, allocations: 82.62 kB / 261.7 MB, free: 1.684 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.244/0.244, allocations: 43.49 MB / 353.2 MB, free: 284 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.672e-05/1.67e-05, allocations: 4 kB / 418.4 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1384, allocations: 58.85 MB / 477.2 MB, free: 1.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4804/0.6189, allocations: 88.33 MB / 0.5523 GB, free: 6.613 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002306/0.6192, allocations: 71.16 kB / 0.5523 GB, free: 6.582 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01476/0.634, allocations: 5.95 MB / 0.5582 GB, free: 1.82 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.6341, allocations: 0 / 0.5582 GB, free: 1.82 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.665e-05/0.6341, allocations: 4 kB / 0.5582 GB, free: 1.816 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0006321/0.6347, allocations: 0.6021 MB / 0.5587 GB, free: 1.164 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.6348, allocations: 12.03 kB / 0.5588 GB, free: 1.152 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.964e-05/0.6349, allocations: 24.38 kB / 0.5588 GB, free: 1.129 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003589/0.6352, allocations: 284 kB / 0.559 GB, free: 0.8359 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.946e-05/0.6353, allocations: 88.98 kB / 0.5591 GB, free: 0.7344 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.608e-05/0.6354, allocations: 16 kB / 0.5591 GB, free: 0.7188 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001553/0.6355, allocations: 67.34 kB / 0.5592 GB, free: 0.668 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000187/0.6357, allocations: 140.1 kB / 0.5593 GB, free: 0.5391 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.6357, allocations: 3.938 kB / 0.5593 GB, free: 0.5352 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.943e-05/0.6358, allocations: 0 / 0.5593 GB, free: 0.5352 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.6358, allocations: 4 kB / 0.5594 GB, free: 0.5312 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006733/0.6365, allocations: 0.5909 MB / 0.5599 GB, free: 15.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002472/0.6367, allocations: 166.1 kB / 0.5601 GB, free: 15.81 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/0.6368, allocations: 77.5 kB / 0.5602 GB, free: 15.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.631e-05/0.6369, allocations: 3.938 kB / 0.5602 GB, free: 15.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003906/0.6373, allocations: 423 kB / 0.5606 GB, free: 15.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 1.293e-06/0.6373, allocations: 0 / 0.5606 GB, free: 15.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004831/0.6378, allocations: 239.5 kB / 0.5608 GB, free: 15.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001437/0.6379, allocations: 213.2 kB / 0.561 GB, free: 14.85 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003558/0.6383, allocations: 286.3 kB / 0.5613 GB, free: 14.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.095e-05/0.6383, allocations: 41.52 kB / 0.5613 GB, free: 14.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.05e-05/0.6384, allocations: 127.7 kB / 0.5614 GB, free: 14.47 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.49e-05/0.6385, allocations: 54.97 kB / 0.5615 GB, free: 14.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.548e-06/0.6385, allocations: 0 / 0.5615 GB, free: 14.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.6387, allocations: 338.1 kB / 0.5618 GB, free: 14.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.622e-05/0.6388, allocations: 43.19 kB / 0.5619 GB, free: 14.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001519/0.6389, allocations: 133.4 kB / 0.562 GB, free: 13.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001038/0.639, allocations: 59.28 kB / 0.562 GB, free: 13.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.6391, allocations: 4.031 kB / 0.562 GB, free: 13.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003265/0.6394, allocations: 215.4 kB / 0.5622 GB, free: 13.71 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.104e-05/0.6395, allocations: 97.03 kB / 0.5623 GB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.6395, allocations: 0 / 0.5623 GB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.6395, allocations: 4 kB / 0.5623 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.6396, allocations: 27.73 kB / 0.5624 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.6396, allocations: 4 kB / 0.5624 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001314/0.6398, allocations: 24.2 kB / 0.5624 GB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.1e-05/0.6398, allocations: 11.95 kB / 0.5624 GB, free: 13.53 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$whenCondition5,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 3 * 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 0.0001922/0.64, allocations: 232.8 kB / 0.5626 GB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004156/0.6404, allocations: 277.1 kB / 0.5629 GB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.875e-05/0.6405, allocations: 31.72 kB / 0.5629 GB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002878/0.6408, allocations: 161.8 kB / 0.5631 GB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.6408, allocations: 4 kB / 0.5631 GB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.6408, allocations: 3.953 kB / 0.5631 GB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.6408, allocations: 0 / 0.5631 GB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002587/0.6411, allocations: 272.3 kB / 0.5633 GB, free: 12.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.6411, allocations: 0 / 0.5633 GB, free: 12.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.569e-05/0.6411, allocations: 4 kB / 0.5633 GB, free: 12.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.6412, allocations: 4 kB / 0.5634 GB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.448e-05/0.6412, allocations: 8 kB / 0.5634 GB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.6412, allocations: 96 / 0.5634 GB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.6412, allocations: 3.938 kB / 0.5634 GB, free: 12.61 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004404/0.6416, allocations: 349.3 kB / 0.5637 GB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.534e-05/0.6418, allocations: 111.9 kB / 0.5638 GB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.501e-05/0.6418, allocations: 11.5 kB / 0.5638 GB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001239/0.6419, allocations: 27.94 kB / 0.5638 GB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.782e-05/0.642, allocations: 23.14 kB / 0.5639 GB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.162e-05/0.6421, allocations: 11.5 kB / 0.5639 GB, free: 12.11 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002085/0.6423, allocations: 221.2 kB / 0.5641 GB, free: 11.94 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6423, allocations: 0 / 0.5641 GB, free: 11.94 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003173/0.6426, allocations: 64 kB / 0.5641 GB, free: 11.88 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition5,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 14 (onDelay3.t_next,onDelay3.delaySignal,$whenCondition2,$whenCondition1,onDelay2.t_next,onDelay2.delaySignal,$whenCondition4,$whenCondition3,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 2 * 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.0015/0.6441, allocations: 1.266 MB / 0.5654 GB, free: 10.69 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000427/0.6446, allocations: 364.6 kB / 0.5657 GB, free: 10.37 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.6446, allocations: 3.938 kB / 0.5657 GB, free: 10.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002743/0.6449, allocations: 332.2 kB / 0.566 GB, free: 10.08 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002813/0.6451, allocations: 43.19 kB / 0.5661 GB, free: 10.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008405/0.646, allocations: 433 kB / 0.5665 GB, free: 9.633 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003691/0.6464, allocations: 0.7584 MB / 0.5672 GB, free: 8.852 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.953e-05/0.6465, allocations: 33.98 kB / 0.5673 GB, free: 8.816 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.6466, allocations: 67.91 kB / 0.5673 GB, free: 8.789 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.6466, allocations: 0 / 0.5673 GB, free: 8.789 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02718/0.6738, allocations: 5.111 MB / 0.5723 GB, free: 3.676 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002262/0.6741, allocations: 139.8 kB / 0.5725 GB, free: 3.488 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.852/2.526, allocations: 0 / 0.5725 GB, free: 3.488 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat