Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0008656/0.0008656, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001188/0.002054, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007329/0.0007329, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009849/0.001718, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9916/0.9916, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0946/1.086, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2883/0.2883, allocations: 34.25 MB / 278.2 MB, free: 15.28 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02109/0.3094, allocations: 13.1 MB / 291.3 MB, free: 7.367 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Blocks.OnDelay") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.253e-06/1.253e-06, allocations: 0 / 292.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.288e-05/1.413e-05, allocations: 3.188 kB / 292.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002225/0.002239, allocations: 1.977 MB / 294.6 MB, free: 4.316 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001384/0.003623, allocations: 1.185 MB / 295.8 MB, free: 3.125 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.369e-05/0.003717, allocations: 0 / 295.8 MB, free: 3.125 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004069/0.004124, allocations: 175.4 kB / 296 MB, free: 2.953 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000269/0.004393, allocations: 187.2 kB / 296.1 MB, free: 2.77 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002924/0.004685, allocations: 168.2 kB / 296.3 MB, free: 2.605 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002637/0.004949, allocations: 279.3 kB / 296.6 MB, free: 2.332 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.927e-05/0.005038, allocations: 26.34 kB / 296.6 MB, free: 2.305 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000184/0.005222, allocations: 191.7 kB / 296.8 MB, free: 2.117 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001258/0.005348, allocations: 111.7 kB / 296.9 MB, free: 2.008 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.593e-05/0.005374, allocations: 16 kB / 296.9 MB, free: 1.992 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001285/0.005502, allocations: 67.89 kB / 297 MB, free: 1.926 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.291e-05/0.005575, allocations: 55.8 kB / 297 MB, free: 1.871 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.402e-05/0.005639, allocations: 59.81 kB / 297.1 MB, free: 1.812 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002259/0.005865, allocations: 203.3 kB / 297.3 MB, free: 1.613 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.596e-05/0.005881, allocations: 3.984 kB / 297.3 MB, free: 1.609 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.005881, allocations: 0 / 297.3 MB, free: 1.609 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.434e-05/0.005896, allocations: 0 / 297.3 MB, free: 1.609 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.0006507/0.006546, allocations: 0.6045 MB / 297.9 MB, free: 0.957 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.951e-05/0.006576, allocations: 8.031 kB / 297.9 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.763e-05/0.006624, allocations: 36.91 kB / 297.9 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002342/0.006858, allocations: 213.5 kB / 298.2 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.222e-05/0.00695, allocations: 174.8 kB / 298.3 MB, free: 480 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.716e-05/0.006967, allocations: 12.38 kB / 298.3 MB, free: 468 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001987/0.007166, allocations: 224.4 kB / 298.6 MB, free: 208 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.007175, allocations: 0 / 298.6 MB, free: 208 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.222e-05/0.007187, allocations: 7.938 kB / 298.6 MB, free: 200 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.007194, allocations: 3.984 kB / 298.6 MB, free: 196 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001008/0.007294, allocations: 139.8 kB / 298.7 MB, free: 36 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004053/0.0077, allocations: 422 kB / 299.1 MB, free: 15.6 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001695/0.007869, allocations: 251.7 kB / 299.4 MB, free: 15.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.332e-05/0.007942, allocations: 135.7 kB / 299.5 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.567e-05/0.007958, allocations: 7.984 kB / 299.5 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002919/0.00825, allocations: 0.5047 MB / 300 MB, free: 14.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.353e-06/0.008251, allocations: 0 / 300 MB, free: 14.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003205/0.008572, allocations: 497 kB / 300.5 MB, free: 13.99 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.834e-05/0.00864, allocations: 191.9 kB / 300.7 MB, free: 13.76 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001562/0.008796, allocations: 250.7 kB / 300.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/0.008814, allocations: 33.7 kB / 301 MB, free: 13.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.63e-05/0.008861, allocations: 117 kB / 301.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.56e-05/0.008896, allocations: 55.56 kB / 301.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.046e-05/0.008947, allocations: 53.61 kB / 301.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.992e-05/0.009027, allocations: 346.7 kB / 301.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.952e-05/0.009086, allocations: 119.9 kB / 301.6 MB, free: 12.74 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.634e-05/0.009183, allocations: 212.2 kB / 301.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001701/0.009353, allocations: 343.8 kB / 302.2 MB, free: 12.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.009355, allocations: 0 / 302.2 MB, free: 12.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002006/0.009555, allocations: 354.5 kB / 302.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.004e-05/0.009605, allocations: 93.09 kB / 302.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.009611, allocations: 4 kB / 302.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.357e-06/0.00962, allocations: 4 kB / 302.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.674e-05/0.009687, allocations: 23.92 kB / 302.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.009691, allocations: 4 kB / 302.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.554e-05/0.009757, allocations: 31.81 kB / 302.7 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.152e-05/0.009769, allocations: 12 kB / 302.7 MB, free: 11.5 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.0001131/0.009882, allocations: 240.3 kB / 302.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.108e-05/0.009913, allocations: 35.97 kB / 303 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001383/0.01005, allocations: 174.9 kB / 303.1 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.01005, allocations: 4 kB / 303.1 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.01006, allocations: 4 kB / 303.1 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.01006, allocations: 3.938 kB / 303.1 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001219/0.01018, allocations: 133.7 kB / 303.3 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.01018, allocations: 0 / 303.3 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.461e-05/0.01021, allocations: 11.98 kB / 303.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.203e-05/0.01023, allocations: 27.81 kB / 303.3 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.586e-06/0.01023, allocations: 8 kB / 303.3 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.01025, allocations: 8 kB / 303.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.01025, allocations: 4 kB / 303.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.01025, allocations: 3.938 kB / 303.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000235/0.01049, allocations: 435.4 kB / 303.8 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.883e-05/0.01052, allocations: 12 kB / 303.8 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.928e-05/0.01056, allocations: 15.98 kB / 303.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.419e-05/0.01061, allocations: 19.98 kB / 303.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.01063, allocations: 11.98 kB / 303.8 MB, free: 10.24 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.096e-05/0.0107, allocations: 93.61 kB / 303.9 MB, free: 10.14 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0107, allocations: 8 kB / 303.9 MB, free: 10.14 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001708/0.01087, allocations: 67.92 kB / 304 MB, free: 10.07 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.001161/0.01203, allocations: 0.5673 MB / 304.6 MB, free: 9.809 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003141/0.01234, allocations: 0.4888 MB / 305 MB, free: 9.246 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.937e-06/0.01235, allocations: 8.375 kB / 305 MB, free: 9.238 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002/0.01255, allocations: 352 kB / 305.4 MB, free: 8.836 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002178/0.01277, allocations: 84.16 kB / 305.5 MB, free: 8.758 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007442/0.01351, allocations: 0.5137 MB / 306 MB, free: 8.188 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.153e-05/0.01357, allocations: 95.91 kB / 306.1 MB, free: 8.074 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.476e-05/0.01364, allocations: 22.11 kB / 306.1 MB, free: 8.051 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001662/0.01381, allocations: 127.3 kB / 306.2 MB, free: 7.926 MB / 298.7 MB Notification: Performance of SimCode: time 7.12e-07/0.01381, allocations: 0 / 306.2 MB, free: 7.926 MB / 298.7 MB Notification: Performance of Templates: time 0.006429/0.02024, allocations: 3.908 MB / 310.1 MB, free: 4.078 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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: 2.9524832451716065]