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: 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_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_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008937/0.0008937, allocations: 175.8 kB / 16.76 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.604/1.604, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.0009099/0.0009098, allocations: 78.38 kB / 271.3 MB, free: 8.254 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.3625/0.3625, allocations: 43.57 MB / 363.1 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004033/0.0004034, allocations: 12 kB / 432.6 MB, free: 4.984 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1378, allocations: 58.86 MB / 491.5 MB, free: 10.04 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3454/0.4833, allocations: 89.14 MB / 0.567 GB, free: 12.7 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000227/0.4836, allocations: 65.88 kB / 0.5671 GB, free: 12.64 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01688/0.5005, allocations: 6.015 MB / 0.5729 GB, free: 6.664 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.5005, allocations: 4 kB / 0.5729 GB, free: 6.66 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.06e-05/0.5005, allocations: 0 / 0.5729 GB, free: 6.66 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.0008909/0.5014, allocations: 0.6367 MB / 0.5736 GB, free: 5.949 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.5015, allocations: 15.97 kB / 0.5736 GB, free: 5.934 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.776e-05/0.5016, allocations: 32.64 kB / 0.5736 GB, free: 5.902 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004538/0.502, allocations: 282.8 kB / 0.5739 GB, free: 5.59 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001054/0.5022, allocations: 89.67 kB / 0.574 GB, free: 5.484 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.48e-05/0.5022, allocations: 16.38 kB / 0.574 GB, free: 5.469 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003218/0.5025, allocations: 165.5 kB / 0.5741 GB, free: 5.289 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.5026, allocations: 4 kB / 0.5741 GB, free: 5.285 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.081e-05/0.5026, allocations: 8 kB / 0.5742 GB, free: 5.277 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.5026, allocations: 0 / 0.5742 GB, free: 5.277 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002666/0.5029, allocations: 100.7 kB / 0.5742 GB, free: 5.18 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009059/0.5038, allocations: 0.6297 MB / 0.5749 GB, free: 4.492 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003315/0.5041, allocations: 171.9 kB / 0.575 GB, free: 4.297 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001654/0.5043, allocations: 102.5 kB / 0.5751 GB, free: 4.188 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.418e-05/0.5043, allocations: 0.75 kB / 0.5751 GB, free: 4.188 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004188/0.5048, allocations: 445 kB / 0.5756 GB, free: 3.676 MB / 394.7 MB Notification: Performance of pre-optimization done (n=23): time 1.583e-06/0.5048, allocations: 0 / 0.5756 GB, free: 3.676 MB / 394.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008394/0.5056, allocations: 447.2 kB / 0.576 GB, free: 3.215 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000128/0.5058, allocations: 225.5 kB / 0.5762 GB, free: 2.945 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004006/0.5062, allocations: 316.9 kB / 0.5765 GB, free: 2.629 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.669e-05/0.5062, allocations: 37.69 kB / 0.5765 GB, free: 2.586 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.5063, allocations: 140.6 kB / 0.5767 GB, free: 2.445 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.529e-05/0.5064, allocations: 51.34 kB / 0.5767 GB, free: 2.395 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.407e-06/0.5064, allocations: 4 kB / 0.5767 GB, free: 2.391 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.5066, allocations: 338.8 kB / 0.577 GB, free: 2.051 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001918/0.5068, allocations: 59.97 kB / 0.5771 GB, free: 1.992 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001894/0.507, allocations: 150.2 kB / 0.5772 GB, free: 1.809 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003796/0.5073, allocations: 356.5 kB / 0.5776 GB, free: 1.395 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.5074, allocations: 0 / 0.5776 GB, free: 1.395 MB / 394.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005206/0.5079, allocations: 354.3 kB / 0.5779 GB, free: 1.023 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.493e-05/0.508, allocations: 97.09 kB / 0.578 GB, free: 0.9102 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.508, allocations: 0 / 0.578 GB, free: 0.9102 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.508, allocations: 7.984 kB / 0.578 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.5081, allocations: 31.86 kB / 0.578 GB, free: 0.8711 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.5081, allocations: 4.219 kB / 0.5781 GB, free: 0.8672 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001438/0.5083, allocations: 31.83 kB / 0.5781 GB, free: 0.8359 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.032e-05/0.5083, allocations: 12 kB / 0.5781 GB, free: 0.8242 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.0002182/0.5085, allocations: 261.5 kB / 0.5783 GB, free: 0.5391 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.057e-05/0.5086, allocations: 31.72 kB / 0.5784 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00035/0.5089, allocations: 208.7 kB / 0.5786 GB, free: 308 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-06/0.509, allocations: 7.938 kB / 0.5786 GB, free: 300 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.509, allocations: 0 / 0.5786 GB, free: 300 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.509, allocations: 4 kB / 0.5786 GB, free: 296 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002937/0.5093, allocations: 305.5 kB / 0.5789 GB, free: 15.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.5093, allocations: 0 / 0.5789 GB, free: 15.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4e-05/0.5093, allocations: 11.94 kB / 0.5789 GB, free: 15.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.5093, allocations: 4 kB / 0.5789 GB, free: 15.92 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.107e-05/0.5094, allocations: 4 kB / 0.5789 GB, free: 15.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.889e-06/0.5094, allocations: 7.938 kB / 0.5789 GB, free: 15.91 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.5094, allocations: 0 / 0.5789 GB, free: 15.91 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005914/0.51, allocations: 464.3 kB / 0.5793 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.007e-05/0.5101, allocations: 108.8 kB / 0.5794 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.996e-05/0.5101, allocations: 12 kB / 0.5795 GB, free: 15.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.5103, allocations: 27.92 kB / 0.5795 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.35e-05/0.5103, allocations: 23.97 kB / 0.5795 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.269e-05/0.5104, allocations: 8 kB / 0.5795 GB, free: 15.22 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002315/0.5106, allocations: 232.4 kB / 0.5797 GB, free: 14.99 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5106, allocations: 0 / 0.5797 GB, free: 14.99 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003503/0.511, allocations: 68 kB / 0.5798 GB, free: 14.93 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.0009297/0.5119, allocations: 451.8 kB / 0.5802 GB, free: 14.57 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006026/0.5125, allocations: 394 kB / 0.5806 GB, free: 14.15 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.5125, allocations: 0 / 0.5806 GB, free: 14.15 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003768/0.5129, allocations: 350.5 kB / 0.5809 GB, free: 13.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003651/0.5133, allocations: 52.78 kB / 0.581 GB, free: 13.72 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008951/0.5142, allocations: 0.4948 MB / 0.5815 GB, free: 13.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003731/0.5146, allocations: 0.7521 MB / 0.5822 GB, free: 12.43 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001658/0.5148, allocations: 37.67 kB / 0.5822 GB, free: 12.39 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.053e-05/0.5148, allocations: 19.44 kB / 0.5823 GB, free: 12.37 MB / 410.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5148, allocations: 192 / 0.5823 GB, free: 12.37 MB / 410.7 MB Notification: Performance of Templates: time 0.006985/0.5218, allocations: 3.296 MB / 0.5855 GB, free: 9.082 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches