Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001431/0.001431, allocations: 96.2 kB / 20.21 MB, free: 4.195 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.001541/0.001541, allocations: 157.3 kB / 23.51 MB, free: 0.8945 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.521/1.521, allocations: 158.6 MB / 185.3 MB, free: 2.883 MB / 170.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2786/0.2786, allocations: 32.37 MB / 270 MB, free: 14.79 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Blocks.OnDelay") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.524e-06/2.524e-06, allocations: 0 / 346.9 MB, free: 9.824 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.312e-05/3.565e-05, allocations: 2.312 kB / 346.9 MB, free: 9.82 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003607/0.003642, allocations: 1.854 MB / 348.8 MB, free: 7.961 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001819/0.005461, allocations: 0.9205 MB / 349.7 MB, free: 7.031 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.005585, allocations: 4 kB / 349.7 MB, free: 7.027 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008714/0.006456, allocations: 199.3 kB / 349.9 MB, free: 6.832 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004558/0.006912, allocations: 131.4 kB / 350 MB, free: 6.703 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000559/0.007471, allocations: 171.6 kB / 350.2 MB, free: 6.535 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003759/0.007847, allocations: 267.3 kB / 350.4 MB, free: 6.273 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001491/0.007996, allocations: 25.73 kB / 350.5 MB, free: 6.246 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002266/0.008223, allocations: 147.7 kB / 350.6 MB, free: 6.102 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001975/0.00842, allocations: 103.8 kB / 350.7 MB, free: 6 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.712e-05/0.008467, allocations: 16 kB / 350.7 MB, free: 5.984 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001882/0.008656, allocations: 63.89 kB / 350.8 MB, free: 5.922 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001392/0.008795, allocations: 71.75 kB / 350.9 MB, free: 5.852 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001345/0.008929, allocations: 67.83 kB / 350.9 MB, free: 5.785 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004559/0.009385, allocations: 303 kB / 351.2 MB, free: 5.488 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.009392, allocations: 4 kB / 351.2 MB, free: 5.484 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.009393, allocations: 4 kB / 351.2 MB, free: 5.48 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.009401, allocations: 0 / 351.2 MB, free: 5.48 MB / 282.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.001086/0.01049, allocations: 0.5855 MB / 351.8 MB, free: 4.84 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.01053, allocations: 8.031 kB / 351.8 MB, free: 4.832 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.01065, allocations: 40.8 kB / 351.9 MB, free: 4.793 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003797/0.01103, allocations: 224.7 kB / 352.1 MB, free: 4.547 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001159/0.01115, allocations: 170.8 kB / 352.3 MB, free: 4.344 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.48e-05/0.01119, allocations: 16.38 kB / 352.3 MB, free: 4.328 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003971/0.01158, allocations: 249.5 kB / 352.5 MB, free: 4.051 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.01159, allocations: 0 / 352.5 MB, free: 4.051 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.572e-05/0.01162, allocations: 8 kB / 352.5 MB, free: 4.043 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.01163, allocations: 0 / 352.5 MB, free: 4.043 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003122/0.01194, allocations: 177 kB / 352.7 MB, free: 3.852 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000836/0.01278, allocations: 0.5201 MB / 353.2 MB, free: 3.293 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004287/0.0132, allocations: 249 kB / 353.5 MB, free: 3.004 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002222/0.01343, allocations: 163.6 kB / 353.6 MB, free: 2.816 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.01346, allocations: 7.938 kB / 353.6 MB, free: 2.809 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005142/0.01397, allocations: 0.518 MB / 354.1 MB, free: 2.199 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.714e-06/0.01397, allocations: 0 / 354.1 MB, free: 2.199 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.001104/0.01508, allocations: 0.6334 MB / 354.8 MB, free: 1.504 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.727e-05/0.01514, allocations: 187.9 kB / 355 MB, free: 1.277 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000354/0.0155, allocations: 325.8 kB / 355.3 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.48e-05/0.01553, allocations: 33.7 kB / 355.3 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.745e-05/0.01562, allocations: 132.6 kB / 355.4 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.331e-05/0.01567, allocations: 51.59 kB / 355.5 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.963e-05/0.01576, allocations: 57.62 kB / 355.5 MB, free: 0.668 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.497e-05/0.01584, allocations: 338.8 kB / 355.9 MB, free: 336 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002021/0.01604, allocations: 137.1 kB / 356 MB, free: 180 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003557/0.01639, allocations: 256.2 kB / 356.3 MB, free: 15.87 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007081/0.0171, allocations: 374.5 kB / 356.6 MB, free: 15.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.01711, allocations: 384 / 356.6 MB, free: 15.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0009779/0.01808, allocations: 451.6 kB / 357.1 MB, free: 14.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001255/0.01821, allocations: 101.1 kB / 357.2 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.01822, allocations: 0 / 357.2 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.969e-05/0.01825, allocations: 4 kB / 357.2 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001484/0.0184, allocations: 23.88 kB / 357.2 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.942e-05/0.01842, allocations: 7.984 kB / 357.2 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002148/0.01863, allocations: 23.89 kB / 357.2 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.226e-05/0.01866, allocations: 11.98 kB / 357.2 MB, free: 14.76 MB / 298.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.0003633/0.01903, allocations: 265.6 kB / 357.5 MB, free: 14.47 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001259/0.01915, allocations: 55.73 kB / 357.5 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005933/0.01975, allocations: 234.8 kB / 357.8 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.01975, allocations: 4 kB / 357.8 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.639e-06/0.01976, allocations: 3.938 kB / 357.8 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.01977, allocations: 3.984 kB / 357.8 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003837/0.02016, allocations: 201.2 kB / 358 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.02016, allocations: 0 / 358 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.234e-05/0.02021, allocations: 11.94 kB / 358 MB, free: 13.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.643e-06/0.02022, allocations: 8 kB / 358 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.415e-05/0.02025, allocations: 8 kB / 358 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.02025, allocations: 0 / 358 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.02026, allocations: 0 / 358 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001209/0.02146, allocations: 0.5437 MB / 358.6 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.687e-05/0.02153, allocations: 27.78 kB / 358.6 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.061e-05/0.0216, allocations: 12 kB / 358.6 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.02177, allocations: 23.92 kB / 358.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.02189, allocations: 23.91 kB / 358.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.183e-05/0.02195, allocations: 23.94 kB / 358.7 MB, free: 13.19 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004047/0.02235, allocations: 237.2 kB / 358.9 MB, free: 12.96 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.02235, allocations: 0 / 358.9 MB, free: 12.96 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005348/0.02289, allocations: 60 kB / 359 MB, free: 12.9 MB / 298.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.002665/0.02555, allocations: 457.4 kB / 359.4 MB, free: 12.55 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001076/0.02663, allocations: 0.5393 MB / 359.9 MB, free: 11.94 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.02663, allocations: 0 / 359.9 MB, free: 11.94 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000636/0.02726, allocations: 371.2 kB / 360.3 MB, free: 11.52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005551/0.02782, allocations: 71.66 kB / 360.4 MB, free: 11.45 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001384/0.0292, allocations: 0.5499 MB / 360.9 MB, free: 10.85 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002151/0.02942, allocations: 136.4 kB / 361.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001272/0.02955, allocations: 33.7 kB / 361.1 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.124e-05/0.02964, allocations: 20.5 kB / 361.1 MB, free: 10.64 MB / 298.7 MB Notification: Performance of SimCode: time 5.21e-07/0.02964, allocations: 0 / 361.1 MB, free: 10.64 MB / 298.7 MB Notification: Performance of Templates: time 0.01244/0.04208, allocations: 3.622 MB / 364.7 MB, free: 7.035 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 5.0155731360428035]