Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000829/0.000829, allocations: 88.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00108/0.00108, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.044/1.044, allocations: 177 MB / 205.2 MB, free: 5.047 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2909/0.2909, allocations: 34.86 MB / 296.6 MB, free: 468 kB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.OnDelay") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.004e-06/2.004e-06, allocations: 0 / 325.9 MB, free: 7.137 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.498e-05/2.698e-05, allocations: 6.312 kB / 325.9 MB, free: 7.129 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.004003/0.00403, allocations: 1.978 MB / 327.9 MB, free: 5.137 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00211/0.00614, allocations: 1.176 MB / 329.1 MB, free: 3.953 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001573/0.006297, allocations: 0 / 329.1 MB, free: 3.953 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007334/0.007031, allocations: 179.4 kB / 329.3 MB, free: 3.777 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004758/0.007507, allocations: 179.1 kB / 329.5 MB, free: 3.602 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004972/0.008004, allocations: 163.5 kB / 329.6 MB, free: 3.441 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004319/0.008436, allocations: 284 kB / 329.9 MB, free: 3.164 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000127/0.008563, allocations: 30.36 kB / 329.9 MB, free: 3.133 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000267/0.00883, allocations: 151.7 kB / 330.1 MB, free: 2.984 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000197/0.009027, allocations: 111.7 kB / 330.2 MB, free: 2.875 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.228e-05/0.009069, allocations: 16 kB / 330.2 MB, free: 2.859 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002073/0.009276, allocations: 63.95 kB / 330.3 MB, free: 2.797 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.666e-05/0.009373, allocations: 67.81 kB / 330.3 MB, free: 2.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.134e-05/0.009464, allocations: 71.77 kB / 330.4 MB, free: 2.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003996/0.009864, allocations: 235.1 kB / 330.6 MB, free: 2.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.009869, allocations: 0 / 330.6 MB, free: 2.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.009871, allocations: 0 / 330.6 MB, free: 2.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.009877, allocations: 0 / 330.6 MB, free: 2.43 MB / 298.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.0008373/0.01071, allocations: 0.566 MB / 331.2 MB, free: 1.816 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.01075, allocations: 8.031 kB / 331.2 MB, free: 1.809 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.312e-05/0.01083, allocations: 36.91 kB / 331.2 MB, free: 1.773 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002898/0.01112, allocations: 201.5 kB / 331.4 MB, free: 1.551 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.895e-05/0.01121, allocations: 166.8 kB / 331.6 MB, free: 1.352 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.958e-05/0.01123, allocations: 20.38 kB / 331.6 MB, free: 1.332 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000229/0.01146, allocations: 227.2 kB / 331.8 MB, free: 1.078 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.01147, allocations: 0 / 331.8 MB, free: 1.078 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.01148, allocations: 11.94 kB / 331.8 MB, free: 1.066 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.01149, allocations: 0 / 331.8 MB, free: 1.066 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.251e-05/0.01158, allocations: 139.9 kB / 332 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004527/0.01203, allocations: 414.1 kB / 332.4 MB, free: 488 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001794/0.01221, allocations: 255.6 kB / 332.6 MB, free: 184 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.09e-05/0.01229, allocations: 127.7 kB / 332.8 MB, free: 28 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.0123, allocations: 4 kB / 332.8 MB, free: 24 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003249/0.01263, allocations: 0.4931 MB / 333.3 MB, free: 15.43 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.433e-06/0.01263, allocations: 0 / 333.3 MB, free: 15.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004183/0.01305, allocations: 484.2 kB / 333.7 MB, free: 14.9 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.127e-05/0.01314, allocations: 187.9 kB / 333.9 MB, free: 14.67 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/0.01331, allocations: 258.6 kB / 334.2 MB, free: 14.41 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.029e-05/0.01333, allocations: 37.69 kB / 334.2 MB, free: 14.36 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.633e-05/0.01341, allocations: 101.1 kB / 334.3 MB, free: 14.26 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.139e-05/0.01345, allocations: 59.56 kB / 334.4 MB, free: 14.2 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.172e-05/0.0135, allocations: 49.67 kB / 334.4 MB, free: 14.14 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.63e-05/0.01359, allocations: 350.7 kB / 334.7 MB, free: 13.79 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.394e-05/0.01365, allocations: 115.9 kB / 334.9 MB, free: 13.66 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.756e-05/0.01375, allocations: 212.2 kB / 335.1 MB, free: 13.39 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000245/0.01399, allocations: 330 kB / 335.4 MB, free: 13 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.014, allocations: 0 / 335.4 MB, free: 13 MB / 314.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002299/0.01423, allocations: 339 kB / 335.7 MB, free: 12.63 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.774e-05/0.01429, allocations: 97.09 kB / 335.8 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.01429, allocations: 4.188 kB / 335.8 MB, free: 12.51 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.01431, allocations: 4 kB / 335.8 MB, free: 12.51 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.195e-05/0.01439, allocations: 23.92 kB / 335.8 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.0144, allocations: 4 kB / 335.9 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.089e-05/0.01448, allocations: 31.86 kB / 335.9 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.208e-05/0.01449, allocations: 12.22 kB / 335.9 MB, free: 12.44 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 0.0001441/0.01463, allocations: 240.2 kB / 336.1 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.005e-05/0.01467, allocations: 35.97 kB / 336.2 MB, free: 12.14 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001706/0.01484, allocations: 174 kB / 336.3 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.01485, allocations: 0 / 336.3 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.01486, allocations: 4 kB / 336.3 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.01486, allocations: 3.984 kB / 336.3 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001376/0.015, allocations: 129.7 kB / 336.5 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.015, allocations: 0 / 336.5 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.171e-05/0.01503, allocations: 16 kB / 336.5 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.01503, allocations: 0 / 336.5 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.01505, allocations: 11.98 kB / 336.5 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.01505, allocations: 3.938 kB / 336.5 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.01505, allocations: 0 / 336.5 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003806/0.01543, allocations: 414.5 kB / 336.9 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.882e-05/0.01546, allocations: 31.8 kB / 336.9 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.034e-05/0.01549, allocations: 12 kB / 336.9 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.499e-05/0.01555, allocations: 15.98 kB / 337 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.541e-05/0.0156, allocations: 31.89 kB / 337 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.01562, allocations: 16 kB / 337 MB, free: 11.2 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.933e-05/0.0157, allocations: 89.61 kB / 337.1 MB, free: 11.11 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0157, allocations: 0 / 337.1 MB, free: 11.11 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002171/0.01592, allocations: 67.92 kB / 337.2 MB, free: 11.04 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.001118/0.01704, allocations: 0.5107 MB / 337.7 MB, free: 10.78 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003268/0.01736, allocations: 493.1 kB / 338.2 MB, free: 10.22 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.01737, allocations: 3.938 kB / 338.2 MB, free: 10.22 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001687/0.01754, allocations: 348 kB / 338.5 MB, free: 9.82 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002011/0.01774, allocations: 64.72 kB / 338.6 MB, free: 9.762 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005578/0.0183, allocations: 0.4988 MB / 339.1 MB, free: 9.207 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.48e-05/0.01835, allocations: 87.97 kB / 339.1 MB, free: 9.102 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.45e-05/0.01842, allocations: 30.17 kB / 339.2 MB, free: 9.07 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001476/0.01856, allocations: 123.3 kB / 339.3 MB, free: 8.949 MB / 314.7 MB Notification: Performance of SimCode: time 1.312e-06/0.01857, allocations: 0 / 339.3 MB, free: 8.949 MB / 314.7 MB Notification: Performance of Templates: time 0.005981/0.02455, allocations: 3.862 MB / 343.2 MB, free: 5.145 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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.2192333918064833]