Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009899/0.0009899, allocations: 83.58 kB / 21.19 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9619/0.9619, allocations: 177.1 MB / 205 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2705/0.2705, allocations: 32.8 MB / 294.3 MB, free: 1.273 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Blocks.OnDelay") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.854e-06/1.854e-06, allocations: 0 / 376 MB, free: 4.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.064e-05/3.249e-05, allocations: 6.25 kB / 376 MB, free: 4.672 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003868/0.0039, allocations: 1.932 MB / 377.9 MB, free: 2.727 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001381/0.005281, allocations: 1.161 MB / 379.1 MB, free: 1.559 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.871e-05/0.00537, allocations: 4 kB / 379.1 MB, free: 1.555 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005843/0.005954, allocations: 183.4 kB / 379.3 MB, free: 1.375 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00029/0.006244, allocations: 183.2 kB / 379.5 MB, free: 1.195 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000248/0.006492, allocations: 167.5 kB / 379.6 MB, free: 1.031 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002447/0.006737, allocations: 283.2 kB / 379.9 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.775e-05/0.006834, allocations: 17.8 kB / 379.9 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000138/0.006972, allocations: 151.7 kB / 380.1 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001196/0.007092, allocations: 107.7 kB / 380.2 MB, free: 496 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.704e-05/0.007119, allocations: 16 kB / 380.2 MB, free: 480 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.007225, allocations: 67.89 kB / 380.3 MB, free: 412 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.961e-05/0.007295, allocations: 67.7 kB / 380.3 MB, free: 344 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 6.815e-05/0.007363, allocations: 75.83 kB / 380.4 MB, free: 268 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002459/0.007609, allocations: 227.1 kB / 380.6 MB, free: 40 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.007614, allocations: 11.98 kB / 380.6 MB, free: 28 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.007615, allocations: 0 / 380.6 MB, free: 28 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.00762, allocations: 0 / 380.6 MB, free: 28 kB / 346.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.0007109/0.008331, allocations: 0.6893 MB / 381.3 MB, free: 15.28 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.008367, allocations: 15.98 kB / 381.3 MB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.232e-05/0.00844, allocations: 48.75 kB / 381.4 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002508/0.00869, allocations: 236.2 kB / 381.6 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.788e-05/0.008788, allocations: 174.8 kB / 381.8 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.052e-05/0.008809, allocations: 16.36 kB / 381.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002466/0.009055, allocations: 234.1 kB / 382 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.009064, allocations: 0 / 382 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.009078, allocations: 4 kB / 382 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.009087, allocations: 4 kB / 382 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001143/0.009202, allocations: 148.9 kB / 382.2 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005155/0.009717, allocations: 0.6653 MB / 382.9 MB, free: 13.58 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002138/0.009931, allocations: 242.5 kB / 383.1 MB, free: 13.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.445e-05/0.01003, allocations: 144.1 kB / 383.2 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.377e-05/0.01004, allocations: 4 kB / 383.2 MB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002851/0.01032, allocations: 0.511 MB / 383.7 MB, free: 12.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.363e-06/0.01033, allocations: 0 / 383.7 MB, free: 12.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004869/0.01081, allocations: 0.571 MB / 384.3 MB, free: 11.87 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.667e-05/0.01089, allocations: 195.9 kB / 384.5 MB, free: 11.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002071/0.0111, allocations: 316.3 kB / 384.8 MB, free: 11.31 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.797e-05/0.01111, allocations: 37.7 kB / 384.9 MB, free: 11.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.027e-05/0.01119, allocations: 183.3 kB / 385 MB, free: 11.08 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.957e-05/0.01123, allocations: 55.58 kB / 385.1 MB, free: 11.03 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.475e-05/0.01129, allocations: 63.28 kB / 385.1 MB, free: 10.96 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.01141, allocations: 0.5118 MB / 385.7 MB, free: 10.43 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.704e-05/0.01149, allocations: 121.1 kB / 385.8 MB, free: 10.3 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.01161, allocations: 255.3 kB / 386 MB, free: 9.977 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001971/0.01181, allocations: 347.3 kB / 386.4 MB, free: 9.559 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.01181, allocations: 4 kB / 386.4 MB, free: 9.555 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002912/0.0121, allocations: 407.5 kB / 386.8 MB, free: 9.113 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.005e-05/0.01215, allocations: 97.08 kB / 386.9 MB, free: 9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.01216, allocations: 4 kB / 386.9 MB, free: 8.996 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.01218, allocations: 8.219 kB / 386.9 MB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.445e-05/0.01225, allocations: 23.88 kB / 386.9 MB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.01226, allocations: 7.984 kB / 386.9 MB, free: 8.957 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.886e-05/0.01233, allocations: 23.89 kB / 386.9 MB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.138e-05/0.01234, allocations: 8 kB / 386.9 MB, free: 8.926 MB / 362.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,$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.000124/0.01246, allocations: 280.2 kB / 387.2 MB, free: 8.621 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.164e-05/0.01251, allocations: 51.8 kB / 387.3 MB, free: 8.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002085/0.01271, allocations: 223 kB / 387.5 MB, free: 8.336 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.01272, allocations: 4 kB / 387.5 MB, free: 8.332 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.01272, allocations: 7.938 kB / 387.5 MB, free: 8.324 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.01272, allocations: 0 / 387.5 MB, free: 8.324 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001523/0.01288, allocations: 212.5 kB / 387.7 MB, free: 8.082 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.01288, allocations: 0 / 387.7 MB, free: 8.082 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.933e-05/0.0129, allocations: 4 kB / 387.7 MB, free: 8.078 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.0129, allocations: 8.172 kB / 387.7 MB, free: 8.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/0.01292, allocations: 8 kB / 387.7 MB, free: 8.062 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.01292, allocations: 4 kB / 387.7 MB, free: 8.059 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.01292, allocations: 3.938 kB / 387.7 MB, free: 8.055 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003617/0.01328, allocations: 0.5445 MB / 388.3 MB, free: 7.441 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.377e-05/0.0133, allocations: 23.86 kB / 388.3 MB, free: 7.418 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.151e-05/0.01334, allocations: 12 kB / 388.3 MB, free: 7.406 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.496e-05/0.01339, allocations: 19.98 kB / 388.3 MB, free: 7.387 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.939e-05/0.01345, allocations: 27.91 kB / 388.4 MB, free: 7.359 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.896e-05/0.01347, allocations: 12 kB / 388.4 MB, free: 7.348 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001147/0.01358, allocations: 221.1 kB / 388.6 MB, free: 7.133 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01358, allocations: 3.938 kB / 388.6 MB, free: 7.129 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002017/0.01379, allocations: 67.89 kB / 388.6 MB, free: 7.062 MB / 362.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 (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.0008357/0.01462, allocations: 402.7 kB / 389 MB, free: 6.805 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003404/0.01496, allocations: 0.5038 MB / 389.5 MB, free: 6.223 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.01496, allocations: 0 / 389.5 MB, free: 6.223 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001744/0.01514, allocations: 354.9 kB / 389.9 MB, free: 5.816 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000223/0.01536, allocations: 71.48 kB / 390 MB, free: 5.75 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005386/0.0159, allocations: 0.5187 MB / 390.5 MB, free: 5.176 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.112e-05/0.01595, allocations: 83.97 kB / 390.6 MB, free: 5.074 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.136e-05/0.016, allocations: 26.64 kB / 390.6 MB, free: 5.047 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.314e-05/0.01605, allocations: 28.48 kB / 390.6 MB, free: 5.016 MB / 362.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01605, allocations: 0 / 390.6 MB, free: 5.016 MB / 362.7 MB Notification: Performance of Templates: time 0.006161/0.02221, allocations: 3.911 MB / 394.5 MB, free: 1.137 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0797245102003217]