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.0009963/0.0009963, allocations: 79.59 kB / 21.18 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.001086/0.001086, allocations: 165 kB / 24.56 MB, free: 12 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.033/1.033, allocations: 177.1 MB / 205 MB, free: 5.613 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.232/0.232, allocations: 32.8 MB / 294.3 MB, free: 1.207 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.343e-06/1.343e-06, allocations: 0 / 376 MB, free: 4.648 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.835e-05/1.97e-05, allocations: 6.25 kB / 376 MB, free: 4.641 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002198/0.002218, allocations: 1.94 MB / 377.9 MB, free: 2.684 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001342/0.003559, allocations: 1.153 MB / 379.1 MB, free: 1.523 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.591e-05/0.003645, allocations: 4 kB / 379.1 MB, free: 1.52 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005425/0.004188, allocations: 191.3 kB / 379.3 MB, free: 1.332 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002879/0.004476, allocations: 187.2 kB / 379.5 MB, free: 1.148 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002833/0.004759, allocations: 159.5 kB / 379.6 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002596/0.005018, allocations: 275.3 kB / 379.9 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.382e-05/0.005112, allocations: 21.73 kB / 379.9 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001467/0.005259, allocations: 159.6 kB / 380.1 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001173/0.005376, allocations: 103.8 kB / 380.2 MB, free: 456 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.781e-05/0.005404, allocations: 19.98 kB / 380.2 MB, free: 436 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00012/0.005524, allocations: 67.89 kB / 380.3 MB, free: 368 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.569e-05/0.0056, allocations: 63.83 kB / 380.3 MB, free: 304 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 7.211e-05/0.005672, allocations: 67.83 kB / 380.4 MB, free: 236 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002841/0.005956, allocations: 239.2 kB / 380.6 MB, free: 15.99 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.005958, allocations: 0 / 380.6 MB, free: 15.99 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.005959, allocations: 0 / 380.6 MB, free: 15.99 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.005963, allocations: 0 / 380.6 MB, free: 15.99 MB / 362.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.00073/0.006693, allocations: 0.7048 MB / 381.3 MB, free: 15.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.006727, allocations: 15.98 kB / 381.3 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.304e-05/0.0068, allocations: 44.75 kB / 381.4 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002593/0.007059, allocations: 232.4 kB / 381.6 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.427e-05/0.007154, allocations: 174.7 kB / 381.8 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.196e-05/0.007176, allocations: 12.38 kB / 381.8 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002357/0.007411, allocations: 237.1 kB / 382 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.00742, allocations: 4 kB / 382 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.007436, allocations: 4 kB / 382 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-06/0.007443, allocations: 4 kB / 382 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001206/0.007564, allocations: 148.9 kB / 382.2 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005303/0.008094, allocations: 0.6653 MB / 382.8 MB, free: 13.54 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002056/0.0083, allocations: 242.5 kB / 383.1 MB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.008404, allocations: 148.1 kB / 383.2 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.008421, allocations: 4 kB / 383.2 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002931/0.008715, allocations: 0.5071 MB / 383.7 MB, free: 12.46 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.243e-06/0.008716, allocations: 0 / 383.7 MB, free: 12.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004983/0.009214, allocations: 0.5748 MB / 384.3 MB, free: 11.83 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.749e-05/0.009282, allocations: 195.9 kB / 384.5 MB, free: 11.59 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002178/0.009499, allocations: 320.2 kB / 384.8 MB, free: 11.26 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.009518, allocations: 33.7 kB / 384.9 MB, free: 11.22 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.151e-05/0.009599, allocations: 183.3 kB / 385 MB, free: 11.04 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.206e-05/0.009641, allocations: 59.58 kB / 385.1 MB, free: 10.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.647e-05/0.009698, allocations: 55.3 kB / 385.1 MB, free: 10.92 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.009823, allocations: 0.5196 MB / 385.7 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.006e-05/0.009903, allocations: 113.1 kB / 385.8 MB, free: 10.26 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001297/0.01003, allocations: 255.3 kB / 386 MB, free: 9.938 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002188/0.01025, allocations: 350.9 kB / 386.4 MB, free: 9.516 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.01025, allocations: 384 / 386.4 MB, free: 9.516 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003133/0.01057, allocations: 411.5 kB / 386.8 MB, free: 9.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.437e-05/0.01061, allocations: 97.09 kB / 386.9 MB, free: 8.957 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.01062, allocations: 0 / 386.9 MB, free: 8.957 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.01063, allocations: 4 kB / 386.9 MB, free: 8.953 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.226e-05/0.0107, allocations: 31.8 kB / 386.9 MB, free: 8.922 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.01071, allocations: 4 kB / 386.9 MB, free: 8.918 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.203e-05/0.01078, allocations: 24.09 kB / 386.9 MB, free: 8.895 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/0.0108, allocations: 20 kB / 386.9 MB, free: 8.875 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.0001307/0.01093, allocations: 280.2 kB / 387.2 MB, free: 8.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.671e-05/0.01097, allocations: 43.81 kB / 387.3 MB, free: 8.527 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000213/0.01119, allocations: 223.1 kB / 387.5 MB, free: 8.293 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.01119, allocations: 4 kB / 387.5 MB, free: 8.289 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.0112, allocations: 3.938 kB / 387.5 MB, free: 8.285 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.0112, allocations: 0 / 387.5 MB, free: 8.285 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001625/0.01136, allocations: 212.5 kB / 387.7 MB, free: 8.043 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.01136, allocations: 4 kB / 387.7 MB, free: 8.039 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.105e-05/0.01138, allocations: 8 kB / 387.7 MB, free: 8.031 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.01139, allocations: 0 / 387.7 MB, free: 8.031 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.896e-05/0.01141, allocations: 15.98 kB / 387.7 MB, free: 8.016 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.01141, allocations: 0 / 387.7 MB, free: 8.016 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.01141, allocations: 0 / 387.7 MB, free: 8.016 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003761/0.01178, allocations: 0.5405 MB / 388.3 MB, free: 7.406 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.534e-05/0.01181, allocations: 23.86 kB / 388.3 MB, free: 7.383 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.131e-05/0.01184, allocations: 12 kB / 388.3 MB, free: 7.371 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.822e-05/0.0119, allocations: 19.98 kB / 388.3 MB, free: 7.352 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.17e-05/0.01196, allocations: 31.91 kB / 388.3 MB, free: 7.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.8e-05/0.01198, allocations: 12 kB / 388.4 MB, free: 7.309 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001237/0.0121, allocations: 221.1 kB / 388.6 MB, free: 7.094 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0121, allocations: 0 / 388.6 MB, free: 7.094 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002342/0.01234, allocations: 71.89 kB / 388.6 MB, free: 7.023 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.0008023/0.01314, allocations: 411.2 kB / 389 MB, free: 6.758 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000356/0.01349, allocations: 0.4921 MB / 389.5 MB, free: 6.188 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.492e-06/0.0135, allocations: 0 / 389.5 MB, free: 6.188 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001882/0.01368, allocations: 366.8 kB / 389.9 MB, free: 5.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002305/0.01391, allocations: 69.7 kB / 390 MB, free: 5.711 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005554/0.01447, allocations: 0.5265 MB / 390.5 MB, free: 5.129 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.773e-05/0.01453, allocations: 87.97 kB / 390.6 MB, free: 5.023 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.091e-05/0.01458, allocations: 17.95 kB / 390.6 MB, free: 5.004 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.339e-05/0.01462, allocations: 28.48 kB / 390.6 MB, free: 4.973 MB / 362.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01462, allocations: 0 / 390.6 MB, free: 4.973 MB / 362.7 MB Notification: Performance of Templates: time 0.005482/0.0201, allocations: 3.659 MB / 394.3 MB, free: 1.344 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.4324275790713727]