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.0009594/0.0009594, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001144/0.001144, allocations: 167.3 kB / 24.99 MB, free: 8.746 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 1.04/1.04, allocations: 177.1 MB / 205.3 MB, free: 5.641 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.2879/0.2879, allocations: 32.81 MB / 294.6 MB, free: 1.172 MB / 266.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.923e-06/1.923e-06, allocations: 0 / 376 MB, free: 4.988 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.836e-05/3.029e-05, allocations: 2.312 kB / 376 MB, free: 4.984 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002649/0.00268, allocations: 1.943 MB / 377.9 MB, free: 3.027 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00154/0.00422, allocations: 1.153 MB / 379.1 MB, free: 1.867 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.004335, allocations: 7.938 kB / 379.1 MB, free: 1.859 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006234/0.004958, allocations: 183.4 kB / 379.3 MB, free: 1.68 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003148/0.005273, allocations: 179.2 kB / 379.4 MB, free: 1.504 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003068/0.00558, allocations: 167.5 kB / 379.6 MB, free: 1.34 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002714/0.005851, allocations: 279.3 kB / 379.9 MB, free: 1.066 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.005953, allocations: 21.73 kB / 379.9 MB, free: 1.047 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001569/0.00611, allocations: 159.6 kB / 380 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001344/0.006244, allocations: 103.7 kB / 380.1 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.834e-05/0.006273, allocations: 20 kB / 380.2 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000127/0.0064, allocations: 63.95 kB / 380.2 MB, free: 0.707 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.038e-05/0.00648, allocations: 63.81 kB / 380.3 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 8.091e-05/0.006561, allocations: 75.77 kB / 380.4 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003042/0.006865, allocations: 231.1 kB / 380.6 MB, free: 352 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.006869, allocations: 0 / 380.6 MB, free: 352 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.00687, allocations: 0 / 380.6 MB, free: 352 kB / 346.7 MB Notification: Performance of Transformations before backend: time 5.74e-06/0.006876, allocations: 0 / 380.6 MB, free: 352 kB / 346.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.0006614/0.007537, allocations: 0.7088 MB / 381.3 MB, free: 15.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.007571, allocations: 11.98 kB / 381.3 MB, free: 15.56 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.334e-05/0.007645, allocations: 48.75 kB / 381.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002502/0.007895, allocations: 224.4 kB / 381.6 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.114e-05/0.007986, allocations: 170.8 kB / 381.7 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.089e-05/0.008007, allocations: 16.38 kB / 381.8 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002276/0.008235, allocations: 235.9 kB / 382 MB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/0.008241, allocations: 0 / 382 MB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.008254, allocations: 4 kB / 382 MB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.008261, allocations: 8 kB / 382 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001189/0.00838, allocations: 156.9 kB / 382.2 MB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000619/0.008999, allocations: 0.6614 MB / 382.8 MB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002021/0.009201, allocations: 230.5 kB / 383 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.72e-05/0.009299, allocations: 156.1 kB / 383.2 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.432e-05/0.009313, allocations: 4 kB / 383.2 MB, free: 13.42 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002752/0.009588, allocations: 0.5119 MB / 383.7 MB, free: 12.81 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.152e-06/0.009589, allocations: 0 / 383.7 MB, free: 12.81 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004839/0.01007, allocations: 0.5672 MB / 384.3 MB, free: 12.18 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.297e-05/0.01014, allocations: 187.9 kB / 384.5 MB, free: 11.95 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002/0.01034, allocations: 316.3 kB / 384.8 MB, free: 11.62 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.785e-05/0.01035, allocations: 33.7 kB / 384.8 MB, free: 11.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.062e-05/0.01043, allocations: 187.3 kB / 385 MB, free: 11.4 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.074e-05/0.01048, allocations: 55.58 kB / 385 MB, free: 11.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.966e-05/0.01054, allocations: 63.3 kB / 385.1 MB, free: 11.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.01065, allocations: 0.5118 MB / 385.6 MB, free: 10.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.3e-05/0.01073, allocations: 121.1 kB / 385.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.01087, allocations: 258.3 kB / 386 MB, free: 10.29 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001977/0.01106, allocations: 347.3 kB / 386.3 MB, free: 9.875 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.01107, allocations: 0 / 386.3 MB, free: 9.875 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002972/0.01136, allocations: 423.5 kB / 386.7 MB, free: 9.418 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.423e-05/0.01141, allocations: 93.09 kB / 386.8 MB, free: 9.309 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.01141, allocations: 4 kB / 386.8 MB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.01143, allocations: 4 kB / 386.8 MB, free: 9.301 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.838e-05/0.0115, allocations: 23.92 kB / 386.9 MB, free: 9.277 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.0115, allocations: 3.938 kB / 386.9 MB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.24e-05/0.01158, allocations: 32.09 kB / 386.9 MB, free: 9.242 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.16e-05/0.01159, allocations: 12 kB / 386.9 MB, free: 9.23 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.0001406/0.01173, allocations: 280.2 kB / 387.2 MB, free: 8.926 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.474e-05/0.01177, allocations: 51.81 kB / 387.2 MB, free: 8.875 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002134/0.01199, allocations: 210.8 kB / 387.4 MB, free: 8.652 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.01199, allocations: 0 / 387.4 MB, free: 8.652 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.01199, allocations: 15.81 kB / 387.5 MB, free: 8.637 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.012, allocations: 3.984 kB / 387.5 MB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000161/0.01216, allocations: 208.5 kB / 387.7 MB, free: 8.395 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.01216, allocations: 8 kB / 387.7 MB, free: 8.387 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.95e-05/0.01218, allocations: 4 kB / 387.7 MB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.01218, allocations: 0 / 387.7 MB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.0122, allocations: 12 kB / 387.7 MB, free: 8.371 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.0122, allocations: 4 kB / 387.7 MB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.01221, allocations: 4 kB / 387.7 MB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003722/0.01258, allocations: 0.5392 MB / 388.2 MB, free: 7.758 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.366e-05/0.0126, allocations: 23.84 kB / 388.3 MB, free: 7.734 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.179e-05/0.01263, allocations: 12 kB / 388.3 MB, free: 7.723 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.561e-05/0.0127, allocations: 15.98 kB / 388.3 MB, free: 7.707 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.932e-05/0.01276, allocations: 27.92 kB / 388.3 MB, free: 7.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.087e-05/0.01278, allocations: 15.98 kB / 388.3 MB, free: 7.664 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001192/0.0129, allocations: 217.1 kB / 388.5 MB, free: 7.453 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0129, allocations: 0 / 388.5 MB, free: 7.453 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002524/0.01315, allocations: 71.88 kB / 388.6 MB, free: 7.383 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.0008456/0.014, allocations: 419.5 kB / 389 MB, free: 7.109 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004461/0.01444, allocations: 0.4999 MB / 389.5 MB, free: 6.531 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.01445, allocations: 0 / 389.5 MB, free: 6.531 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001885/0.01463, allocations: 358.9 kB / 389.9 MB, free: 6.121 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002549/0.01489, allocations: 72.22 kB / 389.9 MB, free: 6.055 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005641/0.01545, allocations: 0.5109 MB / 390.4 MB, free: 5.488 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.485e-05/0.01551, allocations: 87.97 kB / 390.5 MB, free: 5.383 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.418e-05/0.01556, allocations: 21.94 kB / 390.6 MB, free: 5.359 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.768e-05/0.01561, allocations: 28.44 kB / 390.6 MB, free: 5.328 MB / 362.7 MB Notification: Performance of SimCode: time 9.72e-07/0.01561, allocations: 0 / 390.6 MB, free: 5.328 MB / 362.7 MB Notification: Performance of Templates: time 0.005755/0.02137, allocations: 3.662 MB / 394.2 MB, free: 1.699 MB / 362.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.3094221618957818]