Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001335/0.001335, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001416/0.001416, allocations: 207.9 kB / 23.73 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.519/1.519, allocations: 230.5 MB / 257.4 MB, free: 7.766 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2479/0.2479, allocations: 46.95 MB / 360.8 MB, free: 4.008 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5020,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_trunk_ModelicaTest.Blocks.OnDelay") translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5020,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_trunk_ModelicaTest.Blocks.OnDelay") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002295/0.002295, allocations: 79.88 kB / 0.4966 GB, free: 7.062 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5279/0.5302, allocations: 66.09 MB / 0.5612 GB, free: 3.945 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003997/0.5341, allocations: 1.867 MB / 0.563 GB, free: 2.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002253/0.5364, allocations: 1.133 MB / 0.5641 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001138/0.5365, allocations: 0 / 0.5641 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008088/0.5373, allocations: 191.4 kB / 0.5643 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004473/0.5378, allocations: 171.3 kB / 0.5644 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004594/0.5382, allocations: 167.5 kB / 0.5646 GB, free: 424 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003931/0.5386, allocations: 275.3 kB / 0.5649 GB, free: 148 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000138/0.5388, allocations: 17.81 kB / 0.5649 GB, free: 128 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001718/0.5389, allocations: 123.5 kB / 0.565 GB, free: 4 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002099/0.5391, allocations: 115.7 kB / 0.5651 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.876e-05/0.5392, allocations: 20 kB / 0.5651 GB, free: 15.87 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001765/0.5394, allocations: 71.77 kB / 0.5652 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001141/0.5395, allocations: 63.77 kB / 0.5653 GB, free: 15.74 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001353/0.5396, allocations: 91.56 kB / 0.5653 GB, free: 15.65 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004453/0.5401, allocations: 285.3 kB / 0.5656 GB, free: 15.38 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.5401, allocations: 8 kB / 0.5656 GB, free: 15.37 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.604e-06/0.5401, allocations: 0 / 0.5656 GB, free: 15.37 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.395e-06/0.5401, allocations: 3.938 kB / 0.5656 GB, free: 15.36 MB / 414.1 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.001145/0.5412, allocations: 0.5971 MB / 0.5662 GB, free: 14.71 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.5413, allocations: 16.03 kB / 0.5662 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.663e-05/0.5414, allocations: 28.8 kB / 0.5663 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004064/0.5418, allocations: 213.6 kB / 0.5665 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000169/0.5419, allocations: 170.8 kB / 0.5666 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.522e-05/0.542, allocations: 20.31 kB / 0.5666 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003906/0.5424, allocations: 241.4 kB / 0.5669 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.5424, allocations: 0 / 0.5669 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.988e-05/0.5424, allocations: 4 kB / 0.5669 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.5424, allocations: 0 / 0.5669 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002985/0.5427, allocations: 185 kB / 0.5671 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008615/0.5436, allocations: 0.5279 MB / 0.5676 GB, free: 13.17 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004279/0.544, allocations: 245 kB / 0.5678 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002193/0.5442, allocations: 159.8 kB / 0.568 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.08e-05/0.5442, allocations: 7.938 kB / 0.568 GB, free: 12.69 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006203/0.5448, allocations: 0.5216 MB / 0.5685 GB, free: 12.07 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.432e-06/0.5448, allocations: 0 / 0.5685 GB, free: 12.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=23): time 0.001033/0.5459, allocations: 0.6064 MB / 0.5691 GB, free: 11.41 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000137/0.546, allocations: 191.9 kB / 0.5692 GB, free: 11.18 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004026/0.5464, allocations: 337.8 kB / 0.5696 GB, free: 10.84 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.928e-05/0.5464, allocations: 29.7 kB / 0.5696 GB, free: 10.8 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.5466, allocations: 136.6 kB / 0.5697 GB, free: 10.67 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.02e-05/0.5466, allocations: 55.58 kB / 0.5698 GB, free: 10.61 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.553e-05/0.5467, allocations: 49.7 kB / 0.5698 GB, free: 10.56 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.5469, allocations: 338.8 kB / 0.5702 GB, free: 10.22 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002024/0.5471, allocations: 157 kB / 0.5703 GB, free: 10.05 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003041/0.5474, allocations: 244.2 kB / 0.5705 GB, free: 9.75 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004786/0.5478, allocations: 370.7 kB / 0.5709 GB, free: 9.32 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.663e-06/0.5479, allocations: 4 kB / 0.5709 GB, free: 9.316 MB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000646/0.5485, allocations: 447.3 kB / 0.5713 GB, free: 8.836 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.59e-05/0.5486, allocations: 99.12 kB / 0.5714 GB, free: 8.723 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.5486, allocations: 0 / 0.5714 GB, free: 8.723 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.68e-05/0.5486, allocations: 8.156 kB / 0.5714 GB, free: 8.715 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.5488, allocations: 23.98 kB / 0.5714 GB, free: 8.691 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.374e-05/0.5488, allocations: 11.88 kB / 0.5715 GB, free: 8.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001325/0.5489, allocations: 27.88 kB / 0.5715 GB, free: 8.652 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.284e-05/0.5489, allocations: 8 kB / 0.5715 GB, free: 8.645 MB / 414.1 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,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition5,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay1.t_next,onDelay1.delaySignal,onDelay1.y,onDelay1.u,$whenCondition7,$whenCondition6,onDelay2.t_next,onDelay2.delaySignal,onDelay2.y,onDelay2.u,$whenCondition4,$whenCondition3,onDelay3.t_next,onDelay3.delaySignal,onDelay3.y,onDelay3.u,$whenCondition2,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002684/0.5492, allocations: 257.7 kB / 0.5717 GB, free: 8.367 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.769e-05/0.5493, allocations: 39.84 kB / 0.5718 GB, free: 8.328 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004144/0.5497, allocations: 243 kB / 0.572 GB, free: 8.066 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.5497, allocations: 11.94 kB / 0.572 GB, free: 8.055 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.5497, allocations: 0 / 0.572 GB, free: 8.055 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.5497, allocations: 0 / 0.572 GB, free: 8.055 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002722/0.55, allocations: 209.1 kB / 0.5722 GB, free: 7.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.55, allocations: 0 / 0.5722 GB, free: 7.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.572e-05/0.55, allocations: 8 kB / 0.5722 GB, free: 7.812 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.55, allocations: 7.875 kB / 0.5722 GB, free: 7.805 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.774e-05/0.55, allocations: 15.98 kB / 0.5722 GB, free: 7.789 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.55, allocations: 0 / 0.5722 GB, free: 7.789 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.55, allocations: 3.938 kB / 0.5723 GB, free: 7.785 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008604/0.5509, allocations: 0.5319 MB / 0.5728 GB, free: 7.191 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.8e-05/0.551, allocations: 23.81 kB / 0.5728 GB, free: 7.168 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.792e-05/0.551, allocations: 12 kB / 0.5728 GB, free: 7.156 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.5511, allocations: 15.98 kB / 0.5728 GB, free: 7.141 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.5512, allocations: 35.83 kB / 0.5729 GB, free: 7.105 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-05/0.5513, allocations: 12 kB / 0.5729 GB, free: 7.094 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003025/0.5516, allocations: 241.2 kB / 0.5731 GB, free: 6.855 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5516, allocations: 0 / 0.5731 GB, free: 6.855 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000362/0.5519, allocations: 71.92 kB / 0.5732 GB, free: 6.785 MB / 414.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001941/0.5539, allocations: 445.8 kB / 0.5736 GB, free: 6.492 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009009/0.5548, allocations: 0.5353 MB / 0.5741 GB, free: 5.883 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.5548, allocations: 0 / 0.5741 GB, free: 5.883 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004635/0.5553, allocations: 375.2 kB / 0.5745 GB, free: 5.461 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000426/0.5557, allocations: 54.61 kB / 0.5745 GB, free: 5.414 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/0.5568, allocations: 0.5489 MB / 0.5751 GB, free: 4.809 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001946/0.557, allocations: 145.1 kB / 0.5752 GB, free: 4.641 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001094/0.5571, allocations: 30.31 kB / 0.5752 GB, free: 4.609 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.327e-05/0.5572, allocations: 19.44 kB / 0.5752 GB, free: 4.594 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.5572, allocations: 0 / 0.5752 GB, free: 4.594 MB / 414.1 MB Notification: Performance of Templates: time 0.009401/0.5666, allocations: 3.807 MB / 0.579 GB, free: 0.8125 MB / 414.1 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.577194668352604]