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.001421/0.001421, allocations: 80.31 kB / 22.21 MB, free: 2.289 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.001577/0.001577, allocations: 168.4 kB / 25.61 MB, free: 8.902 MB / 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.9911/0.9911, allocations: 177.1 MB / 206 MB, free: 4.488 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.1407/0.1407, allocations: 32.8 MB / 295.4 MB, free: 15.46 MB / 282.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.843e-06/1.843e-06, allocations: 0 / 377.3 MB, free: 25.62 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.033e-05/2.217e-05, allocations: 2.312 kB / 377.3 MB, free: 25.62 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.001981/0.002003, allocations: 1.931 MB / 379.2 MB, free: 23.68 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001189/0.003192, allocations: 1.13 MB / 380.3 MB, free: 22.54 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.003293, allocations: 0 / 380.3 MB, free: 22.54 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004885/0.003781, allocations: 199.3 kB / 380.5 MB, free: 22.34 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002688/0.00405, allocations: 175.2 kB / 380.7 MB, free: 22.17 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002735/0.004323, allocations: 167.4 kB / 380.8 MB, free: 22.01 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002211/0.004545, allocations: 287.3 kB / 381.1 MB, free: 21.73 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.665e-05/0.004631, allocations: 17.8 kB / 381.1 MB, free: 21.71 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001226/0.004754, allocations: 155.6 kB / 381.3 MB, free: 21.55 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001061/0.00486, allocations: 107.7 kB / 381.4 MB, free: 21.45 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.405e-05/0.004884, allocations: 16 kB / 381.4 MB, free: 21.43 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001058/0.00499, allocations: 71.89 kB / 381.5 MB, free: 21.36 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.05e-05/0.00505, allocations: 67.77 kB / 381.5 MB, free: 21.3 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 5.379e-05/0.005104, allocations: 67.83 kB / 381.6 MB, free: 21.23 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001947/0.005299, allocations: 231.2 kB / 381.8 MB, free: 21 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.784e-06/0.005301, allocations: 0 / 381.8 MB, free: 21 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.005301, allocations: 0 / 381.8 MB, free: 21 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.005305, allocations: 0 / 381.8 MB, free: 21 MB / 314.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.000462/0.005767, allocations: 0.7009 MB / 382.5 MB, free: 20.24 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.697e-05/0.005794, allocations: 12.03 kB / 382.6 MB, free: 20.23 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.332e-05/0.005847, allocations: 40.75 kB / 382.6 MB, free: 20.19 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001756/0.006023, allocations: 224.4 kB / 382.8 MB, free: 19.94 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.695e-05/0.00608, allocations: 178.7 kB / 383 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.562e-05/0.006095, allocations: 16.38 kB / 383 MB, free: 19.71 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001596/0.006255, allocations: 222.1 kB / 383.2 MB, free: 19.46 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.006263, allocations: 0 / 383.2 MB, free: 19.46 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.006273, allocations: 8 kB / 383.2 MB, free: 19.45 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.006279, allocations: 4 kB / 383.2 MB, free: 19.45 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.752e-05/0.006346, allocations: 133 kB / 383.4 MB, free: 19.3 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003548/0.006701, allocations: 0.6308 MB / 384 MB, free: 18.63 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000135/0.006836, allocations: 234.5 kB / 384.2 MB, free: 18.35 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.216e-05/0.006898, allocations: 144.1 kB / 384.4 MB, free: 18.18 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.238e-05/0.006911, allocations: 0 / 384.4 MB, free: 18.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001746/0.007085, allocations: 0.4992 MB / 384.9 MB, free: 17.58 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 9.22e-07/0.007086, allocations: 0 / 384.9 MB, free: 17.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.000329/0.007415, allocations: 0.5437 MB / 385.4 MB, free: 16.97 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.227e-05/0.007448, allocations: 195.9 kB / 385.6 MB, free: 16.74 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.007572, allocations: 304.2 kB / 385.9 MB, free: 16.43 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.306e-05/0.007585, allocations: 41.62 kB / 385.9 MB, free: 16.38 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.877e-05/0.007634, allocations: 183.3 kB / 386.1 MB, free: 16.2 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.923e-05/0.007663, allocations: 55.61 kB / 386.2 MB, free: 16.14 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.33e-05/0.007706, allocations: 55.33 kB / 386.2 MB, free: 16.08 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.998e-05/0.007756, allocations: 0.5195 MB / 386.7 MB, free: 15.55 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.028e-05/0.007797, allocations: 117.1 kB / 386.9 MB, free: 15.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.824e-05/0.007885, allocations: 250 kB / 387.1 MB, free: 15.1 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001416/0.008027, allocations: 342.9 kB / 387.4 MB, free: 14.69 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.008029, allocations: 0 / 387.4 MB, free: 14.69 MB / 314.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002221/0.008251, allocations: 406.1 kB / 387.8 MB, free: 14.25 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.077e-05/0.008282, allocations: 97.12 kB / 387.9 MB, free: 14.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.008287, allocations: 4 kB / 387.9 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.008298, allocations: 4 kB / 387.9 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.297e-05/0.008361, allocations: 27.92 kB / 388 MB, free: 14.1 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.497e-06/0.008364, allocations: 3.938 kB / 388 MB, free: 14.1 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.113e-05/0.008436, allocations: 31.88 kB / 388 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.007e-05/0.008446, allocations: 8 kB / 388 MB, free: 14.06 MB / 314.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 8.983e-05/0.008536, allocations: 288.2 kB / 388.3 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.697e-05/0.008572, allocations: 47.81 kB / 388.3 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001523/0.008725, allocations: 206.7 kB / 388.5 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.008728, allocations: 4 kB / 388.5 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.00873, allocations: 0 / 388.5 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.008733, allocations: 7.922 kB / 388.5 MB, free: 13.46 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001201/0.008853, allocations: 173.2 kB / 388.7 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.008855, allocations: 4 kB / 388.7 MB, free: 13.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.907e-05/0.008874, allocations: 7.984 kB / 388.7 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.008876, allocations: 0 / 388.7 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.008889, allocations: 12 kB / 388.7 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.008891, allocations: 8 kB / 388.7 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.008892, allocations: 0 / 388.7 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002428/0.009135, allocations: 0.521 MB / 389.3 MB, free: 12.64 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.098e-05/0.009156, allocations: 19.8 kB / 389.3 MB, free: 12.62 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.956e-05/0.009185, allocations: 16 kB / 389.3 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.459e-05/0.00924, allocations: 15.98 kB / 389.3 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.336e-05/0.009283, allocations: 19.97 kB / 389.3 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.596e-05/0.009299, allocations: 16 kB / 389.4 MB, free: 12.56 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.779e-05/0.009367, allocations: 209 kB / 389.6 MB, free: 12.36 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.009367, allocations: 0 / 389.6 MB, free: 12.36 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001977/0.009565, allocations: 71.94 kB / 389.6 MB, free: 12.29 MB / 314.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.0007992/0.01036, allocations: 420.5 kB / 390 MB, free: 12.02 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000211/0.01057, allocations: 495.8 kB / 390.5 MB, free: 11.46 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.01058, allocations: 0 / 390.5 MB, free: 11.46 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001047/0.01068, allocations: 346.9 kB / 390.9 MB, free: 11.06 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002179/0.0109, allocations: 64.59 kB / 390.9 MB, free: 11 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004019/0.0113, allocations: 0.5125 MB / 391.4 MB, free: 10.43 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.113e-05/0.01133, allocations: 88.41 kB / 391.5 MB, free: 10.32 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.718e-05/0.01138, allocations: 21.95 kB / 391.5 MB, free: 10.3 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001245/0.0115, allocations: 146.2 kB / 391.7 MB, free: 10.16 MB / 314.7 MB Notification: Performance of SimCode: time 6.71e-07/0.0115, allocations: 0 / 391.7 MB, free: 10.16 MB / 314.7 MB Notification: Performance of Templates: time 0.004929/0.01643, allocations: 4.05 MB / 395.7 MB, free: 6.148 MB / 314.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.342497264035046]