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.001956/0.001956, allocations: 84.34 kB / 20.95 MB, free: 3.453 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.002504/0.002504, allocations: 165.7 kB / 24.27 MB, free: 144 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 1.565/1.565, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] 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.337/0.337, allocations: 32.79 MB / 293.9 MB, free: 1.219 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.022e-06/1.022e-06, allocations: 0 / 375.2 MB, free: 5 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.57e-05/2.672e-05, allocations: 9.203 kB / 375.2 MB, free: 4.992 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003622/0.003649, allocations: 1.87 MB / 377.1 MB, free: 3.105 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002207/0.005856, allocations: 1.126 MB / 378.2 MB, free: 1.973 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.558e-05/0.005931, allocations: 0 / 378.2 MB, free: 1.973 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005854/0.006517, allocations: 191.4 kB / 378.4 MB, free: 1.785 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004425/0.006959, allocations: 183.2 kB / 378.6 MB, free: 1.605 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003978/0.007357, allocations: 163.5 kB / 378.8 MB, free: 1.445 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003682/0.007725, allocations: 279.3 kB / 379 MB, free: 1.172 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.007826, allocations: 29.72 kB / 379.1 MB, free: 1.145 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002176/0.008044, allocations: 143.7 kB / 379.2 MB, free: 1.004 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000175/0.008219, allocations: 111.7 kB / 379.3 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.765e-05/0.008256, allocations: 20 kB / 379.3 MB, free: 0.875 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001481/0.008405, allocations: 63.91 kB / 379.4 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.008507, allocations: 71.75 kB / 379.5 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.008615, allocations: 75.77 kB / 379.5 MB, free: 0.668 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004222/0.009037, allocations: 299 kB / 379.8 MB, free: 384 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.00904, allocations: 0 / 379.8 MB, free: 384 kB / 346.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.00904, allocations: 0 / 379.8 MB, free: 384 kB / 346.7 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.009044, allocations: 0 / 379.8 MB, free: 384 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.0009468/0.009991, allocations: 0.5932 MB / 380.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.973e-05/0.01002, allocations: 19.98 kB / 380.4 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001002/0.01012, allocations: 44.75 kB / 380.5 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003579/0.01048, allocations: 228.8 kB / 380.7 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000169/0.01065, allocations: 174.8 kB / 380.9 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.761e-05/0.01069, allocations: 12.38 kB / 380.9 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003989/0.01108, allocations: 241.6 kB / 381.1 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.01109, allocations: 0 / 381.1 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.069e-05/0.01111, allocations: 7.984 kB / 381.1 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.816e-06/0.01111, allocations: 0 / 381.1 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003258/0.01144, allocations: 185 kB / 381.3 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008099/0.01225, allocations: 0.5279 MB / 381.8 MB, free: 14.15 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004304/0.01268, allocations: 237 kB / 382.1 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000246/0.01293, allocations: 159.6 kB / 382.2 MB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.307e-05/0.01294, allocations: 0 / 382.2 MB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006091/0.01355, allocations: 0.5206 MB / 382.8 MB, free: 13.08 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.182e-06/0.01355, allocations: 0 / 382.8 MB, free: 13.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.001152/0.0147, allocations: 0.6257 MB / 383.4 MB, free: 12.39 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001747/0.01488, allocations: 199.8 kB / 383.6 MB, free: 12.15 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007185/0.01559, allocations: 329.8 kB / 383.9 MB, free: 11.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.566e-05/0.01563, allocations: 33.7 kB / 383.9 MB, free: 11.78 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.01575, allocations: 136.6 kB / 384.1 MB, free: 11.64 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6e-05/0.01581, allocations: 51.62 kB / 384.1 MB, free: 11.59 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.869e-05/0.0159, allocations: 53.62 kB / 384.2 MB, free: 11.54 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002036/0.0161, allocations: 342.8 kB / 384.5 MB, free: 11.19 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002311/0.01634, allocations: 145.1 kB / 384.6 MB, free: 11.03 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003336/0.01667, allocations: 255.1 kB / 384.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004938/0.01716, allocations: 362.7 kB / 385.2 MB, free: 10.3 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.01716, allocations: 4 kB / 385.2 MB, free: 10.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007674/0.01793, allocations: 455.8 kB / 385.7 MB, free: 9.812 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.877e-05/0.01802, allocations: 101.1 kB / 385.8 MB, free: 9.695 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.01803, allocations: 0 / 385.8 MB, free: 9.695 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.01804, allocations: 4 kB / 385.8 MB, free: 9.691 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.642e-05/0.01814, allocations: 28.09 kB / 385.8 MB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.01815, allocations: 7.984 kB / 385.8 MB, free: 9.656 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001406/0.01829, allocations: 19.95 kB / 385.9 MB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.945e-05/0.01831, allocations: 8 kB / 385.9 MB, free: 9.629 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.0002906/0.0186, allocations: 269.4 kB / 386.1 MB, free: 9.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.44e-05/0.01868, allocations: 47.81 kB / 386.2 MB, free: 9.293 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004225/0.01911, allocations: 247 kB / 386.4 MB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.01911, allocations: 8.188 kB / 386.4 MB, free: 9.027 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.01912, allocations: 3.938 kB / 386.4 MB, free: 9.023 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.01912, allocations: 7.969 kB / 386.4 MB, free: 9.016 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002886/0.01941, allocations: 201.2 kB / 386.6 MB, free: 8.789 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.01941, allocations: 0 / 386.6 MB, free: 8.789 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.973e-05/0.01945, allocations: 8 kB / 386.6 MB, free: 8.781 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.01946, allocations: 0 / 386.6 MB, free: 8.781 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.88e-05/0.01949, allocations: 12 kB / 386.6 MB, free: 8.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.01949, allocations: 0 / 386.6 MB, free: 8.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.246e-06/0.0195, allocations: 11.92 kB / 386.7 MB, free: 8.758 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008564/0.02035, allocations: 0.5551 MB / 387.2 MB, free: 8.141 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.678e-05/0.02041, allocations: 27.8 kB / 387.2 MB, free: 8.113 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.391e-05/0.02046, allocations: 12 kB / 387.3 MB, free: 8.102 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.02058, allocations: 15.98 kB / 387.3 MB, free: 8.086 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.984e-05/0.02067, allocations: 27.91 kB / 387.3 MB, free: 8.059 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.195e-05/0.02071, allocations: 12 kB / 387.3 MB, free: 8.047 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000301/0.02101, allocations: 241.2 kB / 387.5 MB, free: 7.812 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02101, allocations: 0 / 387.5 MB, free: 7.812 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003625/0.02137, allocations: 67.88 kB / 387.6 MB, free: 7.746 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.002108/0.02348, allocations: 458.7 kB / 388.1 MB, free: 7.477 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008232/0.0243, allocations: 0.5314 MB / 388.6 MB, free: 6.871 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.0243, allocations: 0 / 388.6 MB, free: 6.871 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005152/0.02482, allocations: 363.2 kB / 388.9 MB, free: 6.461 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003942/0.02521, allocations: 75.2 kB / 389 MB, free: 6.395 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001008/0.02622, allocations: 0.5701 MB / 389.6 MB, free: 5.773 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000175/0.02639, allocations: 140.8 kB / 389.7 MB, free: 5.613 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.332e-05/0.02649, allocations: 34.08 kB / 389.8 MB, free: 5.582 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.564e-05/0.02655, allocations: 24.5 kB / 389.8 MB, free: 5.555 MB / 362.7 MB Notification: Performance of SimCode: time 8.42e-07/0.02655, allocations: 0 / 389.8 MB, free: 5.555 MB / 362.7 MB Notification: Performance of Templates: time 0.00925/0.0358, allocations: 3.658 MB / 393.4 MB, free: 1.922 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 4.897775253048167]