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.0009926/0.0009926, allocations: 75.59 kB / 21.18 MB, free: 3.391 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.001539/0.001539, allocations: 161 kB / 24.56 MB, free: 20 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.9353/0.9353, allocations: 177.1 MB / 205 MB, free: 5.289 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.2446/0.2446, 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 1.082e-06/1.082e-06, allocations: 0 / 378 MB, free: 2.684 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.697e-05/1.805e-05, allocations: 2.312 kB / 378 MB, free: 2.68 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002284/0.002302, allocations: 1.943 MB / 380 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00122/0.003522, allocations: 1.157 MB / 381.1 MB, free: 15.55 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.61e-05/0.003598, allocations: 0 / 381.1 MB, free: 15.55 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005082/0.004106, allocations: 191.4 kB / 381.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002583/0.004364, allocations: 179.2 kB / 381.5 MB, free: 15.19 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002349/0.004599, allocations: 163.5 kB / 381.6 MB, free: 15.03 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002271/0.004827, allocations: 279.3 kB / 381.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.443e-05/0.004911, allocations: 21.8 kB / 381.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001296/0.005041, allocations: 151.6 kB / 382.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001138/0.005154, allocations: 107.8 kB / 382.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.684e-05/0.005181, allocations: 20 kB / 382.2 MB, free: 14.46 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001041/0.005285, allocations: 67.88 kB / 382.3 MB, free: 14.39 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 6.763e-05/0.005353, allocations: 67.77 kB / 382.3 MB, free: 14.33 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 6.589e-05/0.005419, allocations: 67.83 kB / 382.4 MB, free: 14.26 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002432/0.005662, allocations: 239.1 kB / 382.6 MB, free: 14.03 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.814e-06/0.005664, allocations: 0 / 382.6 MB, free: 14.03 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.005665, allocations: 0 / 382.6 MB, free: 14.03 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.466e-06/0.005668, allocations: 0 / 382.6 MB, free: 14.03 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.0006033/0.006271, allocations: 0.701 MB / 383.3 MB, free: 13.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.061e-05/0.006302, allocations: 8.031 kB / 383.4 MB, free: 13.26 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.778e-05/0.00637, allocations: 40.75 kB / 383.4 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002443/0.006614, allocations: 240.2 kB / 383.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.861e-05/0.006703, allocations: 170.7 kB / 383.8 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.029e-05/0.006723, allocations: 12.38 kB / 383.8 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002236/0.006946, allocations: 242.1 kB / 384 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.752e-06/0.006953, allocations: 0 / 384 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.006967, allocations: 4 kB / 384 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.006974, allocations: 0 / 384 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001155/0.007089, allocations: 152.9 kB / 384.2 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005009/0.00759, allocations: 0.6653 MB / 384.9 MB, free: 11.58 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000198/0.007788, allocations: 234.5 kB / 385.1 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.825e-05/0.007887, allocations: 152.1 kB / 385.2 MB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.007904, allocations: 4 kB / 385.2 MB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004172/0.008321, allocations: 0.508 MB / 385.8 MB, free: 10.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.262e-06/0.008322, allocations: 0 / 385.8 MB, free: 10.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004842/0.008806, allocations: 0.5675 MB / 386.3 MB, free: 9.875 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.388e-05/0.00887, allocations: 195.9 kB / 386.5 MB, free: 9.641 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002007/0.009071, allocations: 316.3 kB / 386.8 MB, free: 9.312 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.009089, allocations: 41.64 kB / 386.9 MB, free: 9.266 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.723e-05/0.009167, allocations: 183.3 kB / 387 MB, free: 9.082 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.837e-05/0.009205, allocations: 55.58 kB / 387.1 MB, free: 9.027 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.264e-05/0.009258, allocations: 55.3 kB / 387.1 MB, free: 8.965 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.009372, allocations: 0.5196 MB / 387.7 MB, free: 8.434 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.234e-05/0.009454, allocations: 121.1 kB / 387.8 MB, free: 8.297 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001203/0.009574, allocations: 250.5 kB / 388 MB, free: 7.984 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001949/0.009769, allocations: 359.2 kB / 388.4 MB, free: 7.555 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.009772, allocations: 0 / 388.4 MB, free: 7.555 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002939/0.01007, allocations: 411.4 kB / 388.8 MB, free: 7.109 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.12e-05/0.01011, allocations: 93.09 kB / 388.9 MB, free: 7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.01011, allocations: 4.188 kB / 388.9 MB, free: 6.996 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.01013, allocations: 0 / 388.9 MB, free: 6.996 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.184e-05/0.0102, allocations: 31.86 kB / 388.9 MB, free: 6.965 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.692e-06/0.01021, allocations: 4 kB / 388.9 MB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.129e-05/0.01028, allocations: 27.86 kB / 388.9 MB, free: 6.934 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.392e-05/0.01029, allocations: 20.22 kB / 389 MB, free: 6.914 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.0001301/0.01042, allocations: 280.2 kB / 389.2 MB, free: 6.609 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.53e-05/0.01047, allocations: 47.81 kB / 389.3 MB, free: 6.562 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002152/0.01068, allocations: 222.8 kB / 389.5 MB, free: 6.328 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.01068, allocations: 4 kB / 389.5 MB, free: 6.324 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.01069, allocations: 3.938 kB / 389.5 MB, free: 6.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.01069, allocations: 4 kB / 389.5 MB, free: 6.316 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00015/0.01084, allocations: 212.5 kB / 389.7 MB, free: 6.074 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.01084, allocations: 4 kB / 389.7 MB, free: 6.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.22e-05/0.01087, allocations: 8 kB / 389.7 MB, free: 6.062 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.01087, allocations: 0 / 389.7 MB, free: 6.062 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.821e-05/0.01089, allocations: 15.98 kB / 389.7 MB, free: 6.047 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.01089, allocations: 3.984 kB / 389.7 MB, free: 6.043 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.01089, allocations: 4 kB / 389.8 MB, free: 6.039 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003863/0.01128, allocations: 0.535 MB / 390.3 MB, free: 5.438 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.531e-05/0.0113, allocations: 23.86 kB / 390.3 MB, free: 5.414 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.428e-05/0.01134, allocations: 8 kB / 390.3 MB, free: 5.406 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.606e-05/0.01139, allocations: 23.92 kB / 390.3 MB, free: 5.383 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.153e-05/0.01145, allocations: 31.91 kB / 390.4 MB, free: 5.352 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.672e-05/0.01147, allocations: 8 kB / 390.4 MB, free: 5.344 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001209/0.01159, allocations: 225.1 kB / 390.6 MB, free: 5.125 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01159, allocations: 0 / 390.6 MB, free: 5.125 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002/0.01179, allocations: 67.89 kB / 390.7 MB, free: 5.059 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.0007791/0.01257, allocations: 418.1 kB / 391.1 MB, free: 4.793 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003576/0.01293, allocations: 0.4998 MB / 391.6 MB, free: 4.215 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.01293, allocations: 0 / 391.6 MB, free: 4.215 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001973/0.01313, allocations: 358.9 kB / 391.9 MB, free: 3.805 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002376/0.01336, allocations: 60.89 kB / 392 MB, free: 3.746 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005251/0.01389, allocations: 0.5148 MB / 392.5 MB, free: 3.176 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000183/0.01407, allocations: 91.95 kB / 392.6 MB, free: 3.066 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.68e-05/0.01412, allocations: 18.11 kB / 392.6 MB, free: 3.047 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.471e-05/0.01416, allocations: 28.48 kB / 392.6 MB, free: 3.016 MB / 362.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01416, allocations: 0 / 392.6 MB, free: 3.016 MB / 362.7 MB Notification: Performance of Templates: time 0.00509/0.01926, allocations: 3.664 MB / 396.3 MB, free: 15.38 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.2003670185804367]