Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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: translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay") translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002176/0.00218, allocations: 186.3 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.172/2.172, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001103/0.001103, allocations: 88.47 kB / 270.9 MB, free: 8.371 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.5012/0.5012, allocations: 43.55 MB / 362.7 MB, free: 51.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004676/0.0004676, allocations: 15.98 kB / 431.4 MB, free: 5.938 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1258, allocations: 58.86 MB / 490.2 MB, free: 10.99 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4567/0.5825, allocations: 89.08 MB / 0.5657 GB, free: 13.47 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.5829, allocations: 67.97 kB / 0.5658 GB, free: 13.4 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02655/0.6094, allocations: 6.029 MB / 0.5717 GB, free: 7.422 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.6095, allocations: 0 / 0.5717 GB, free: 7.422 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.832e-05/0.6095, allocations: 4 kB / 0.5717 GB, free: 7.418 MB / 394.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.001186/0.6107, allocations: 0.6405 MB / 0.5723 GB, free: 6.707 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.6108, allocations: 8.031 kB / 0.5723 GB, free: 6.699 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.6109, allocations: 31.72 kB / 0.5723 GB, free: 6.668 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006024/0.6115, allocations: 277.2 kB / 0.5726 GB, free: 6.363 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001274/0.6116, allocations: 93.09 kB / 0.5727 GB, free: 6.254 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.741e-05/0.6117, allocations: 16 kB / 0.5727 GB, free: 6.238 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000487/0.6122, allocations: 165.5 kB / 0.5729 GB, free: 6.055 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.6122, allocations: 0 / 0.5729 GB, free: 6.055 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.474e-05/0.6123, allocations: 8 kB / 0.5729 GB, free: 6.047 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.6123, allocations: 0 / 0.5729 GB, free: 6.047 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004004/0.6127, allocations: 96.97 kB / 0.573 GB, free: 5.953 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001247/0.614, allocations: 0.6297 MB / 0.5736 GB, free: 5.266 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005645/0.6146, allocations: 175.9 kB / 0.5737 GB, free: 5.066 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.998e-05/0.6146, allocations: 8 kB / 0.5738 GB, free: 5.059 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006601/0.6153, allocations: 441.2 kB / 0.5742 GB, free: 4.551 MB / 394.7 MB Notification: Performance of pre-optimization done (n=23): time 3.607e-06/0.6153, allocations: 0 / 0.5742 GB, free: 4.551 MB / 394.7 MB Notification: Performance of matching and sorting (n=23): time 0.001589/0.6169, allocations: 0.6735 MB / 0.5748 GB, free: 3.797 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001613/0.6171, allocations: 225.5 kB / 0.575 GB, free: 3.527 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005924/0.6177, allocations: 288.1 kB / 0.5753 GB, free: 3.242 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.454e-05/0.6177, allocations: 33.7 kB / 0.5754 GB, free: 3.203 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.6179, allocations: 191 kB / 0.5755 GB, free: 3.016 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.759e-05/0.618, allocations: 47.42 kB / 0.5756 GB, free: 2.969 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.094e-05/0.618, allocations: 8 kB / 0.5756 GB, free: 2.961 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.6182, allocations: 322.8 kB / 0.5759 GB, free: 2.637 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002513/0.6185, allocations: 56.16 kB / 0.5759 GB, free: 2.582 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003326/0.6188, allocations: 150.6 kB / 0.5761 GB, free: 2.398 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003279/0.6192, allocations: 149 kB / 0.5762 GB, free: 2.234 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.6192, allocations: 8.031 kB / 0.5762 GB, free: 2.227 MB / 394.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008584/0.6201, allocations: 336.1 kB / 0.5766 GB, free: 1.875 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.777e-05/0.6202, allocations: 93.08 kB / 0.5766 GB, free: 1.766 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.6202, allocations: 7.984 kB / 0.5767 GB, free: 1.758 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.424e-05/0.6202, allocations: 4.219 kB / 0.5767 GB, free: 1.754 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001798/0.6204, allocations: 28.31 kB / 0.5767 GB, free: 1.727 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/0.6204, allocations: 7.938 kB / 0.5767 GB, free: 1.719 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003071/0.6208, allocations: 23.94 kB / 0.5767 GB, free: 1.695 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.414e-05/0.6208, allocations: 16 kB / 0.5767 GB, free: 1.68 MB / 394.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 () * Number of clocked 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.0004321/0.6213, allocations: 265.5 kB / 0.577 GB, free: 1.391 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.6214, allocations: 31.72 kB / 0.577 GB, free: 1.359 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005991/0.622, allocations: 216.8 kB / 0.5772 GB, free: 1.133 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.622, allocations: 4 kB / 0.5772 GB, free: 1.129 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.622, allocations: 0 / 0.5772 GB, free: 1.129 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.6221, allocations: 3.953 kB / 0.5772 GB, free: 1.125 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004486/0.6225, allocations: 297.5 kB / 0.5775 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.6225, allocations: 0 / 0.5775 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.44e-05/0.6226, allocations: 12 kB / 0.5775 GB, free: 0.7734 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.6226, allocations: 0 / 0.5775 GB, free: 0.7734 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.636e-05/0.6227, allocations: 11.98 kB / 0.5775 GB, free: 0.7617 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.6227, allocations: 4 kB / 0.5775 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.6227, allocations: 7.938 kB / 0.5775 GB, free: 0.75 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001062/0.6238, allocations: 479.8 kB / 0.578 GB, free: 232 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/0.6239, allocations: 108.8 kB / 0.5781 GB, free: 104 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.075e-05/0.624, allocations: 16 kB / 0.5781 GB, free: 88 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002092/0.6242, allocations: 19.94 kB / 0.5781 GB, free: 68 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.6244, allocations: 23.98 kB / 0.5782 GB, free: 44 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.796e-05/0.6244, allocations: 11.98 kB / 0.5782 GB, free: 32 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004412/0.6249, allocations: 228.5 kB / 0.5784 GB, free: 15.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.896e-06/0.6249, allocations: 8 kB / 0.5784 GB, free: 15.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005051/0.6254, allocations: 71.94 kB / 0.5785 GB, free: 15.73 MB / 410.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) * Number of clocked states: 0 () * 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.001279/0.6267, allocations: 439.5 kB / 0.5789 GB, free: 15.39 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009459/0.6276, allocations: 406.4 kB / 0.5793 GB, free: 14.96 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.6277, allocations: 0 / 0.5793 GB, free: 14.96 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005808/0.6283, allocations: 350.1 kB / 0.5796 GB, free: 14.58 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004199/0.6287, allocations: 36.78 kB / 0.5796 GB, free: 14.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.63, allocations: 0.5356 MB / 0.5802 GB, free: 13.97 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004285/0.6304, allocations: 0.7522 MB / 0.5809 GB, free: 13.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001125/0.6306, allocations: 23.44 kB / 0.5809 GB, free: 13.17 MB / 410.7 MB Notification: Performance of SimCode: time 7.81e-07/0.6306, allocations: 3.938 kB / 0.5809 GB, free: 13.17 MB / 410.7 MB Notification: Performance of Templates: time 0.008875/0.6395, allocations: 3.571 MB / 0.5844 GB, free: 9.598 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/OnDelay/OnDelay.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches