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.001208/0.001208, allocations: 88.2 kB / 20.95 MB, free: 3.602 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.001414/0.001414, allocations: 169 kB / 24.24 MB, free: 308 kB / 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.066/1.066, allocations: 158.6 MB / 186 MB, free: 2.918 MB / 170.7 MB " [Timeout remaining time 179] 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.1422/0.1422, allocations: 32.37 MB / 270.7 MB, free: 14.77 MB / 266.7 MB " [Timeout remaining time 180] 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 1.613e-06/1.613e-06, allocations: 0 / 347.6 MB, free: 9.793 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.444e-05/2.605e-05, allocations: 6.312 kB / 347.7 MB, free: 9.785 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002361/0.002387, allocations: 1.927 MB / 349.6 MB, free: 7.855 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.003746, allocations: 0.9439 MB / 350.5 MB, free: 6.902 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000113/0.003859, allocations: 0 / 350.5 MB, free: 6.902 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006248/0.004484, allocations: 191.3 kB / 350.7 MB, free: 6.715 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002702/0.004754, allocations: 131.5 kB / 350.8 MB, free: 6.586 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003766/0.005131, allocations: 175.5 kB / 351 MB, free: 6.414 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002885/0.005419, allocations: 271.2 kB / 351.3 MB, free: 6.148 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001338/0.005553, allocations: 21.8 kB / 351.3 MB, free: 6.125 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001915/0.005744, allocations: 151.7 kB / 351.4 MB, free: 5.977 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000157/0.005901, allocations: 103.8 kB / 351.5 MB, free: 5.875 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.238e-05/0.005934, allocations: 16 kB / 351.6 MB, free: 5.859 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001856/0.006119, allocations: 75.81 kB / 351.6 MB, free: 5.785 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.591e-05/0.006205, allocations: 59.83 kB / 351.7 MB, free: 5.727 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.692e-05/0.006282, allocations: 67.83 kB / 351.8 MB, free: 5.66 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003031/0.006585, allocations: 223.2 kB / 352 MB, free: 5.441 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.00659, allocations: 4 kB / 352 MB, free: 5.438 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.006591, allocations: 0 / 352 MB, free: 5.438 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.006598, allocations: 0 / 352 MB, free: 5.438 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.000736/0.007334, allocations: 0.7048 MB / 352.7 MB, free: 4.672 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.007373, allocations: 8.031 kB / 352.7 MB, free: 4.664 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.755e-05/0.007461, allocations: 44.8 kB / 352.7 MB, free: 4.621 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002722/0.007733, allocations: 224.3 kB / 353 MB, free: 4.371 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.128e-05/0.007824, allocations: 170.8 kB / 353.1 MB, free: 4.168 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.005e-05/0.007844, allocations: 12.38 kB / 353.1 MB, free: 4.156 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002601/0.008104, allocations: 238 kB / 353.4 MB, free: 3.887 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.008113, allocations: 4 kB / 353.4 MB, free: 3.883 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.548e-05/0.008129, allocations: 4 kB / 353.4 MB, free: 3.879 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.008138, allocations: 4 kB / 353.4 MB, free: 3.875 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001103/0.008248, allocations: 145 kB / 353.5 MB, free: 3.715 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005472/0.008795, allocations: 0.6576 MB / 354.2 MB, free: 3.012 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002174/0.009013, allocations: 242.4 kB / 354.4 MB, free: 2.719 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.698e-05/0.0091, allocations: 148.1 kB / 354.6 MB, free: 2.543 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.837e-05/0.009118, allocations: 4 kB / 354.6 MB, free: 2.539 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002744/0.009392, allocations: 0.5158 MB / 355.1 MB, free: 1.922 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.492e-06/0.009394, allocations: 0 / 355.1 MB, free: 1.922 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005041/0.009898, allocations: 0.5632 MB / 355.6 MB, free: 1.297 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.737e-05/0.009955, allocations: 191.9 kB / 355.8 MB, free: 1.066 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001958/0.01015, allocations: 312.3 kB / 356.1 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.701e-05/0.01017, allocations: 33.7 kB / 356.2 MB, free: 0.707 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.844e-05/0.01024, allocations: 179.4 kB / 356.3 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.067e-05/0.01028, allocations: 55.58 kB / 356.4 MB, free: 484 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.318e-05/0.01033, allocations: 59.3 kB / 356.5 MB, free: 416 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.01044, allocations: 0.5157 MB / 357 MB, free: 15.88 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002499/0.01069, allocations: 117.1 kB / 357.1 MB, free: 15.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001528/0.01084, allocations: 259.2 kB / 357.3 MB, free: 15.42 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003055/0.01114, allocations: 351.3 kB / 357.7 MB, free: 15 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.01115, allocations: 4.031 kB / 357.7 MB, free: 15 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003476/0.0115, allocations: 403.5 kB / 358.1 MB, free: 14.56 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.015e-05/0.01156, allocations: 97.09 kB / 358.2 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.01156, allocations: 4 kB / 358.2 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.01158, allocations: 0 / 358.2 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.427e-05/0.01167, allocations: 27.92 kB / 358.2 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.01168, allocations: 7.938 kB / 358.2 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.13e-05/0.01176, allocations: 28.09 kB / 358.2 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/0.01178, allocations: 16 kB / 358.3 MB, free: 14.36 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.0004973/0.01228, allocations: 276.2 kB / 358.5 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.707e-05/0.01233, allocations: 51.81 kB / 358.6 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002771/0.01261, allocations: 214.7 kB / 358.8 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.01262, allocations: 4 kB / 358.8 MB, free: 13.78 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.01262, allocations: 7.922 kB / 358.8 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.01263, allocations: 0 / 358.8 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001897/0.01282, allocations: 216.5 kB / 359 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.01282, allocations: 3.938 kB / 359 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.971e-05/0.01286, allocations: 8 kB / 359 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.154e-05/0.01287, allocations: 4 kB / 359 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.043e-05/0.01289, allocations: 12 kB / 359 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.0129, allocations: 0 / 359 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.0129, allocations: 0 / 359 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004117/0.01331, allocations: 0.5382 MB / 359.6 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.238e-05/0.01334, allocations: 27.78 kB / 359.6 MB, free: 12.87 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.476e-05/0.01338, allocations: 12 kB / 359.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.092e-05/0.01345, allocations: 19.98 kB / 359.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.448e-05/0.01352, allocations: 23.92 kB / 359.7 MB, free: 12.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.468e-05/0.01355, allocations: 19.98 kB / 359.7 MB, free: 12.79 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001317/0.01368, allocations: 209.1 kB / 359.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01368, allocations: 0 / 359.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000261/0.01394, allocations: 60 kB / 359.9 MB, free: 12.54 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.001029/0.01497, allocations: 418 kB / 360.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004516/0.01542, allocations: 0.496 MB / 360.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.01542, allocations: 0 / 360.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002035/0.01563, allocations: 363.2 kB / 361.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002985/0.01592, allocations: 76.8 kB / 361.3 MB, free: 11.15 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006528/0.01658, allocations: 0.5063 MB / 361.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.497e-05/0.01663, allocations: 83.97 kB / 361.9 MB, free: 10.48 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.405e-05/0.0167, allocations: 21.64 kB / 361.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.626e-05/0.01674, allocations: 28.48 kB / 361.9 MB, free: 10.43 MB / 298.7 MB Notification: Performance of SimCode: time 1.243e-06/0.01674, allocations: 4 kB / 361.9 MB, free: 10.43 MB / 298.7 MB Notification: Performance of Templates: time 0.006134/0.02288, allocations: 3.625 MB / 365.5 MB, free: 6.824 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 240] 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","",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.413494837936014]