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.002269/0.002269, allocations: 180.6 kB / 13.66 MB, free: 1.664 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.013/2.013, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001091/0.001091, allocations: 86.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2802/0.2802, allocations: 43.48 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.993e-05/3.015e-05, allocations: 4 kB / 425.3 MB, free: 23.39 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1126, allocations: 58.84 MB / 484.1 MB, free: 12.5 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4783/0.5909, allocations: 88.99 MB / 0.5597 GB, free: 14.7 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002344/0.5912, allocations: 67.34 kB / 0.5597 GB, free: 14.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03088/0.6221, allocations: 6.006 MB / 0.5656 GB, free: 9.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.6221, allocations: 0 / 0.5656 GB, free: 9.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.001e-05/0.6222, allocations: 4 kB / 0.5656 GB, free: 9.586 MB / 378.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.0009842/0.6232, allocations: 0.598 MB / 0.5662 GB, free: 8.938 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.6232, allocations: 8.031 kB / 0.5662 GB, free: 8.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.6233, allocations: 27.72 kB / 0.5662 GB, free: 8.902 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005889/0.6239, allocations: 284.7 kB / 0.5665 GB, free: 8.609 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/0.6241, allocations: 95.73 kB / 0.5666 GB, free: 8.504 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.519e-05/0.6241, allocations: 16 kB / 0.5666 GB, free: 8.488 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003758/0.6245, allocations: 141.8 kB / 0.5667 GB, free: 8.355 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.6246, allocations: 4 kB / 0.5668 GB, free: 8.352 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.028e-05/0.6246, allocations: 11.31 kB / 0.5668 GB, free: 8.344 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.6246, allocations: 0 / 0.5668 GB, free: 8.344 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002579/0.6249, allocations: 79.34 kB / 0.5668 GB, free: 8.289 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00119/0.6261, allocations: 0.6243 MB / 0.5674 GB, free: 7.676 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003809/0.6265, allocations: 177 kB / 0.5676 GB, free: 7.52 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001977/0.6267, allocations: 83.45 kB / 0.5677 GB, free: 7.453 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.575e-05/0.6267, allocations: 6.484 kB / 0.5677 GB, free: 7.449 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005423/0.6273, allocations: 425.4 kB / 0.5681 GB, free: 6.996 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 2.525e-06/0.6273, allocations: 0 / 0.5681 GB, free: 6.996 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008379/0.6282, allocations: 357.9 kB / 0.5685 GB, free: 6.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001342/0.6283, allocations: 216.8 kB / 0.5687 GB, free: 6.422 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005136/0.6288, allocations: 285.1 kB / 0.5689 GB, free: 6.188 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.137e-05/0.6289, allocations: 41.58 kB / 0.569 GB, free: 6.145 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.629, allocations: 184.3 kB / 0.5691 GB, free: 5.988 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.381e-05/0.6291, allocations: 54.53 kB / 0.5692 GB, free: 5.941 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.653e-05/0.6292, allocations: 3.062 kB / 0.5692 GB, free: 5.941 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.6293, allocations: 325 kB / 0.5695 GB, free: 5.621 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000163/0.6295, allocations: 44.75 kB / 0.5696 GB, free: 5.594 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000283/0.6298, allocations: 147.7 kB / 0.5697 GB, free: 5.438 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002364/0.63, allocations: 165 kB / 0.5699 GB, free: 5.285 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.63, allocations: 4 kB / 0.5699 GB, free: 5.281 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006377/0.6307, allocations: 308.9 kB / 0.5701 GB, free: 5.004 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.315e-05/0.6308, allocations: 96.78 kB / 0.5702 GB, free: 4.895 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.6308, allocations: 0 / 0.5702 GB, free: 4.895 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.6309, allocations: 4 kB / 0.5702 GB, free: 4.891 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001862/0.6311, allocations: 28.14 kB / 0.5703 GB, free: 4.863 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.052e-05/0.6311, allocations: 7.953 kB / 0.5703 GB, free: 4.855 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002673/0.6314, allocations: 23.61 kB / 0.5703 GB, free: 4.836 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.968e-05/0.6314, allocations: 11.94 kB / 0.5703 GB, free: 4.824 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.000246/0.6317, allocations: 235.9 kB / 0.5705 GB, free: 4.578 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.383e-05/0.6318, allocations: 31.72 kB / 0.5706 GB, free: 4.547 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005084/0.6323, allocations: 208 kB / 0.5708 GB, free: 4.367 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.6323, allocations: 0 / 0.5708 GB, free: 4.367 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.6323, allocations: 4 kB / 0.5708 GB, free: 4.363 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.6323, allocations: 3.953 kB / 0.5708 GB, free: 4.359 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004068/0.6328, allocations: 299.2 kB / 0.5711 GB, free: 4.062 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.6328, allocations: 0 / 0.5711 GB, free: 4.062 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.631e-05/0.6328, allocations: 8 kB / 0.5711 GB, free: 4.055 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.564e-06/0.6329, allocations: 3.984 kB / 0.5711 GB, free: 4.051 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.91e-05/0.6329, allocations: 15.69 kB / 0.5711 GB, free: 4.039 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.6329, allocations: 0 / 0.5711 GB, free: 4.039 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.6329, allocations: 4 kB / 0.5711 GB, free: 4.035 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008873/0.6338, allocations: 457.6 kB / 0.5715 GB, free: 3.602 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001337/0.634, allocations: 115.8 kB / 0.5716 GB, free: 3.477 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.335e-05/0.6341, allocations: 11.31 kB / 0.5716 GB, free: 3.469 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.6343, allocations: 31.88 kB / 0.5717 GB, free: 3.438 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.6344, allocations: 19.36 kB / 0.5717 GB, free: 3.426 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.968e-05/0.6345, allocations: 11.98 kB / 0.5717 GB, free: 3.414 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003687/0.6349, allocations: 228.5 kB / 0.5719 GB, free: 3.238 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6349, allocations: 0 / 0.5719 GB, free: 3.238 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004739/0.6354, allocations: 75.17 kB / 0.572 GB, free: 3.172 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.001138/0.6365, allocations: 397.4 kB / 0.5724 GB, free: 2.836 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007224/0.6373, allocations: 385 kB / 0.5727 GB, free: 2.496 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.6373, allocations: 4 kB / 0.5727 GB, free: 2.492 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005128/0.6378, allocations: 334.5 kB / 0.5731 GB, free: 2.207 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004384/0.6383, allocations: 46.34 kB / 0.5731 GB, free: 2.172 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/0.6393, allocations: 401.8 kB / 0.5735 GB, free: 1.801 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004034/0.6397, allocations: 0.7594 MB / 0.5742 GB, free: 1.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.6398, allocations: 19.44 kB / 0.5743 GB, free: 1 MB / 378.7 MB Notification: Performance of SimCode: time 1.022e-06/0.6398, allocations: 0 / 0.5743 GB, free: 1 MB / 378.7 MB Notification: Performance of Templates: time 0.008977/0.6488, allocations: 3.567 MB / 0.5777 GB, free: 13.45 MB / 394.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