Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001411/0.001411, allocations: 80.31 kB / 22.21 MB, free: 2.285 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.001478/0.001478, allocations: 174.8 kB / 25.61 MB, free: 8.91 MB / 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.9281/0.9281, allocations: 177.1 MB / 206 MB, free: 4.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.1692/0.1692, allocations: 34.26 MB / 296.8 MB, free: 13.93 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Blocks.OnDelay") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 3.938 kB / 379.3 MB, free: 23.43 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.832e-05/1.969e-05, allocations: 2.312 kB / 379.3 MB, free: 23.43 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002743/0.002762, allocations: 1.916 MB / 381.2 MB, free: 21.49 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.004126, allocations: 1.141 MB / 382.3 MB, free: 20.34 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.094e-05/0.004207, allocations: 3.938 kB / 382.3 MB, free: 20.34 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004592/0.004666, allocations: 195.4 kB / 382.5 MB, free: 20.15 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002282/0.004894, allocations: 175.2 kB / 382.7 MB, free: 19.98 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002121/0.005107, allocations: 171.4 kB / 382.9 MB, free: 19.81 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001934/0.0053, allocations: 287.3 kB / 383.1 MB, free: 19.53 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.886e-05/0.005379, allocations: 21.8 kB / 383.2 MB, free: 19.5 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.005491, allocations: 155.6 kB / 383.3 MB, free: 19.35 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.73e-05/0.005588, allocations: 99.75 kB / 383.4 MB, free: 19.25 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.267e-05/0.005611, allocations: 23.98 kB / 383.4 MB, free: 19.23 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.845e-05/0.005709, allocations: 63.91 kB / 383.5 MB, free: 19.17 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.989e-05/0.005769, allocations: 67.75 kB / 383.6 MB, free: 19.1 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 5.15e-05/0.005821, allocations: 67.83 kB / 383.6 MB, free: 19.04 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001917/0.006012, allocations: 235.2 kB / 383.9 MB, free: 18.8 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.006014, allocations: 0 / 383.9 MB, free: 18.8 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.006015, allocations: 0 / 383.9 MB, free: 18.8 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.006019, allocations: 0 / 383.9 MB, free: 18.8 MB / 314.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.0004513/0.00647, allocations: 0.6932 MB / 384.6 MB, free: 18.05 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.68e-05/0.006497, allocations: 15.97 kB / 384.6 MB, free: 18.04 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.129e-05/0.006548, allocations: 40.75 kB / 384.6 MB, free: 18 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001721/0.006721, allocations: 220.4 kB / 384.8 MB, free: 17.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.181e-05/0.006772, allocations: 174.7 kB / 385 MB, free: 17.54 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.574e-05/0.006788, allocations: 24.38 kB / 385 MB, free: 17.52 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001576/0.006946, allocations: 231.2 kB / 385.2 MB, free: 17.26 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.006953, allocations: 0 / 385.2 MB, free: 17.26 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.006964, allocations: 8 kB / 385.3 MB, free: 17.25 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.006968, allocations: 4 kB / 385.3 MB, free: 17.25 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.845e-05/0.007037, allocations: 137 kB / 385.4 MB, free: 17.1 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003462/0.007383, allocations: 0.6191 MB / 386 MB, free: 16.44 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001343/0.007517, allocations: 238.4 kB / 386.2 MB, free: 16.15 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.294e-05/0.00757, allocations: 148.1 kB / 386.4 MB, free: 15.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.136e-05/0.007581, allocations: 4 kB / 386.4 MB, free: 15.97 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00018/0.007761, allocations: 0.4915 MB / 386.9 MB, free: 15.38 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.282e-06/0.007763, allocations: 3.938 kB / 386.9 MB, free: 15.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.000327/0.00809, allocations: 0.5475 MB / 387.4 MB, free: 14.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.164e-05/0.008121, allocations: 191.9 kB / 387.6 MB, free: 14.54 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001236/0.008245, allocations: 304.2 kB / 387.9 MB, free: 14.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.008258, allocations: 41.69 kB / 388 MB, free: 14.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.127e-05/0.008309, allocations: 183.3 kB / 388.1 MB, free: 14 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.92e-05/0.008338, allocations: 55.61 kB / 388.2 MB, free: 13.94 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.275e-05/0.008381, allocations: 55.33 kB / 388.3 MB, free: 13.88 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5e-05/0.008431, allocations: 0.5195 MB / 388.8 MB, free: 13.35 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.443e-05/0.008476, allocations: 117.1 kB / 388.9 MB, free: 13.21 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.961e-05/0.008545, allocations: 247.2 kB / 389.1 MB, free: 12.9 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001188/0.008664, allocations: 342.9 kB / 389.5 MB, free: 12.49 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.008666, allocations: 0 / 389.5 MB, free: 12.49 MB / 314.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002016/0.008868, allocations: 408 kB / 389.9 MB, free: 12.05 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.008897, allocations: 93.09 kB / 390 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.008902, allocations: 4.219 kB / 390 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.147e-06/0.008911, allocations: 8 kB / 390 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.665e-05/0.008967, allocations: 15.98 kB / 390 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.908e-06/0.008971, allocations: 11.88 kB / 390 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.761e-05/0.009039, allocations: 31.88 kB / 390 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.009049, allocations: 8 kB / 390 MB, free: 11.86 MB / 314.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 8.531e-05/0.009134, allocations: 284.3 kB / 390.3 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.679e-05/0.009171, allocations: 43.81 kB / 390.3 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000155/0.009326, allocations: 218.7 kB / 390.6 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.009329, allocations: 4 kB / 390.6 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-06/0.009331, allocations: 0 / 390.6 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.009335, allocations: 7.922 kB / 390.6 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001071/0.009442, allocations: 173.2 kB / 390.7 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.009443, allocations: 0 / 390.7 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.748e-05/0.009461, allocations: 11.94 kB / 390.8 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.009463, allocations: 0 / 390.8 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.009476, allocations: 15.98 kB / 390.8 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.009477, allocations: 4 kB / 390.8 MB, free: 11.03 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.009479, allocations: 0 / 390.8 MB, free: 11.03 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002538/0.009732, allocations: 0.5133 MB / 391.3 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.125e-05/0.009754, allocations: 27.78 kB / 391.3 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.911e-05/0.009783, allocations: 12 kB / 391.3 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.51e-05/0.009838, allocations: 19.98 kB / 391.3 MB, free: 10.39 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.567e-05/0.009883, allocations: 19.97 kB / 391.4 MB, free: 10.37 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.732e-05/0.009901, allocations: 16 kB / 391.4 MB, free: 10.36 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.778e-05/0.009969, allocations: 209 kB / 391.6 MB, free: 10.15 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.009969, allocations: 3.938 kB / 391.6 MB, free: 10.15 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001974/0.01017, allocations: 67.94 kB / 391.7 MB, free: 10.08 MB / 314.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.0007496/0.01092, allocations: 418.4 kB / 392.1 MB, free: 9.812 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002093/0.01112, allocations: 491.9 kB / 392.5 MB, free: 9.254 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.01113, allocations: 0 / 392.5 MB, free: 9.254 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.01123, allocations: 350.9 kB / 392.9 MB, free: 8.852 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002046/0.01143, allocations: 70.22 kB / 393 MB, free: 8.785 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003946/0.01183, allocations: 0.497 MB / 393.5 MB, free: 8.23 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.101e-05/0.01186, allocations: 91.97 kB / 393.5 MB, free: 8.121 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.727e-05/0.01191, allocations: 26.47 kB / 393.6 MB, free: 8.098 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001199/0.01203, allocations: 146.2 kB / 393.7 MB, free: 7.953 MB / 314.7 MB Notification: Performance of SimCode: time 6.42e-07/0.01203, allocations: 0 / 393.7 MB, free: 7.953 MB / 314.7 MB Notification: Performance of Templates: time 0.00474/0.01677, allocations: 4.049 MB / 397.8 MB, free: 3.941 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.972287426702678]