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.001043/0.001043, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001053/0.001053, allocations: 165 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.9589/0.9589, allocations: 177.2 MB / 205 MB, free: 5.297 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.2664/0.2664, allocations: 34.26 MB / 295.7 MB, free: 0.7109 MB / 266.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 2.445e-06/2.445e-06, allocations: 3.984 kB / 378 MB, free: 2.688 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.804e-05/2.049e-05, allocations: 2.312 kB / 378 MB, free: 2.684 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002263/0.002283, allocations: 1.939 MB / 380 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00135/0.003634, allocations: 1.153 MB / 381.1 MB, free: 15.56 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.841e-05/0.003722, allocations: 0 / 381.1 MB, free: 15.56 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005768/0.004299, allocations: 191.4 kB / 381.3 MB, free: 15.38 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003013/0.0046, allocations: 175.2 kB / 381.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002995/0.0049, allocations: 171.5 kB / 381.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002478/0.005147, allocations: 275.3 kB / 381.9 MB, free: 14.77 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.179e-05/0.005239, allocations: 25.78 kB / 381.9 MB, free: 14.74 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001423/0.005381, allocations: 155.6 kB / 382.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001173/0.005499, allocations: 99.75 kB / 382.2 MB, free: 14.49 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.627e-05/0.005525, allocations: 20 kB / 382.2 MB, free: 14.47 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001068/0.005632, allocations: 67.89 kB / 382.3 MB, free: 14.41 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 7.14e-05/0.005703, allocations: 71.75 kB / 382.4 MB, free: 14.34 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 6.778e-05/0.005771, allocations: 71.83 kB / 382.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002678/0.006039, allocations: 235.1 kB / 382.7 MB, free: 14.04 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.006041, allocations: 0 / 382.7 MB, free: 14.04 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.006042, allocations: 0 / 382.7 MB, free: 14.04 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.006046, allocations: 0 / 382.7 MB, free: 14.04 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.0006441/0.00669, allocations: 0.6971 MB / 383.3 MB, free: 13.28 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.006723, allocations: 12.02 kB / 383.4 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.868e-05/0.006792, allocations: 48.75 kB / 383.4 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002269/0.007019, allocations: 228.3 kB / 383.6 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.729e-05/0.007106, allocations: 174.7 kB / 383.8 MB, free: 12.76 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.924e-05/0.007125, allocations: 12.38 kB / 383.8 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002387/0.007364, allocations: 237.3 kB / 384 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.007372, allocations: 0 / 384 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.007389, allocations: 7.984 kB / 384.1 MB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.007397, allocations: 0 / 384.1 MB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000111/0.007508, allocations: 148.9 kB / 384.2 MB, free: 12.31 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000521/0.008029, allocations: 0.6653 MB / 384.9 MB, free: 11.6 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.008236, allocations: 238.5 kB / 385.1 MB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.1e-05/0.008327, allocations: 148.1 kB / 385.2 MB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.544e-05/0.008342, allocations: 4 kB / 385.2 MB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002817/0.008624, allocations: 0.508 MB / 385.8 MB, free: 10.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.212e-06/0.008625, allocations: 0 / 385.8 MB, free: 10.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004698/0.009095, allocations: 0.571 MB / 386.3 MB, free: 9.887 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.936e-05/0.009154, allocations: 191.9 kB / 386.5 MB, free: 9.656 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002152/0.00937, allocations: 316.3 kB / 386.8 MB, free: 9.328 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/0.009388, allocations: 41.64 kB / 386.9 MB, free: 9.281 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.583e-05/0.009463, allocations: 191.3 kB / 387 MB, free: 9.09 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.689e-05/0.0095, allocations: 51.59 kB / 387.1 MB, free: 9.039 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.064e-05/0.009551, allocations: 55.3 kB / 387.2 MB, free: 8.977 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.009669, allocations: 0.5157 MB / 387.7 MB, free: 8.449 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.65e-05/0.009745, allocations: 117.1 kB / 387.8 MB, free: 8.316 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001293/0.009875, allocations: 263.2 kB / 388 MB, free: 7.988 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001898/0.01006, allocations: 351.7 kB / 388.4 MB, free: 7.566 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.01007, allocations: 0 / 388.4 MB, free: 7.566 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002863/0.01035, allocations: 407.6 kB / 388.8 MB, free: 7.125 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.438e-05/0.0104, allocations: 107.1 kB / 388.9 MB, free: 7.004 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.0104, allocations: 4 kB / 388.9 MB, free: 7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.01042, allocations: 0 / 388.9 MB, free: 7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.875e-05/0.01048, allocations: 27.86 kB / 388.9 MB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.01049, allocations: 4 kB / 388.9 MB, free: 6.969 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.632e-05/0.01056, allocations: 20.08 kB / 388.9 MB, free: 6.949 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.509e-05/0.01057, allocations: 19.98 kB / 389 MB, free: 6.93 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.0001276/0.0107, allocations: 288.2 kB / 389.2 MB, free: 6.617 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.999e-05/0.01074, allocations: 47.81 kB / 389.3 MB, free: 6.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002028/0.01094, allocations: 222.8 kB / 389.5 MB, free: 6.336 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.01095, allocations: 4 kB / 389.5 MB, free: 6.332 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.01095, allocations: 3.938 kB / 389.5 MB, free: 6.328 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.01095, allocations: 4 kB / 389.5 MB, free: 6.324 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001436/0.0111, allocations: 208.5 kB / 389.7 MB, free: 6.086 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.0111, allocations: 0 / 389.7 MB, free: 6.086 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.496e-05/0.01112, allocations: 11.98 kB / 389.7 MB, free: 6.074 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.01113, allocations: 4 kB / 389.7 MB, free: 6.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.728e-05/0.01114, allocations: 12 kB / 389.7 MB, free: 6.059 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.01114, allocations: 4 kB / 389.8 MB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.01115, allocations: 4 kB / 389.8 MB, free: 6.051 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003549/0.0115, allocations: 0.5388 MB / 390.3 MB, free: 5.445 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.39e-05/0.01153, allocations: 23.86 kB / 390.3 MB, free: 5.422 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.179e-05/0.01156, allocations: 15.98 kB / 390.3 MB, free: 5.406 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.289e-05/0.01161, allocations: 12 kB / 390.3 MB, free: 5.395 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.909e-05/0.01167, allocations: 27.91 kB / 390.4 MB, free: 5.367 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.579e-05/0.01168, allocations: 8 kB / 390.4 MB, free: 5.359 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001148/0.0118, allocations: 225.1 kB / 390.6 MB, free: 5.141 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0118, allocations: 0 / 390.6 MB, free: 5.141 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001964/0.012, allocations: 71.89 kB / 390.7 MB, free: 5.07 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.0008157/0.01281, allocations: 415.7 kB / 391.1 MB, free: 4.805 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003324/0.01314, allocations: 0.4998 MB / 391.6 MB, free: 4.227 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.01315, allocations: 0 / 391.6 MB, free: 4.227 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001761/0.01332, allocations: 362.9 kB / 391.9 MB, free: 3.812 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000214/0.01354, allocations: 56.47 kB / 392 MB, free: 3.758 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005266/0.01406, allocations: 0.5109 MB / 392.5 MB, free: 3.191 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.394e-05/0.01412, allocations: 88.41 kB / 392.6 MB, free: 3.086 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.224e-05/0.01417, allocations: 30.08 kB / 392.6 MB, free: 3.055 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.326e-05/0.01421, allocations: 24.5 kB / 392.6 MB, free: 3.027 MB / 362.7 MB Notification: Performance of SimCode: time 5e-07/0.01421, allocations: 0 / 392.6 MB, free: 3.027 MB / 362.7 MB Notification: Performance of Templates: time 0.005408/0.01962, allocations: 3.92 MB / 396.6 MB, free: 15.14 MB / 378.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: 3.3492058548144996]