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.001765/0.001765, allocations: 71.75 kB / 21.24 MB, free: 0.5391 MB / 14.72 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.002047/0.002047, allocations: 162.2 kB / 24.5 MB, free: 3.707 MB / 14.72 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.487/1.487, allocations: 177.2 MB / 204.9 MB, free: 8.98 MB / 190.1 MB " [Timeout remaining time 178] 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.22/0.22, allocations: 34.28 MB / 295.5 MB, free: 14.54 MB / 286.1 MB " [Timeout remaining time 179] 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 0.002095/0.002095, allocations: 71.88 kB / 443.1 MB, free: 6.656 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3416/0.3437, allocations: 66.01 MB / 0.4972 GB, free: 29.86 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002948/0.3467, allocations: 1.878 MB / 0.4991 GB, free: 28.58 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001668/0.3483, allocations: 1.126 MB / 0.5002 GB, free: 27.85 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.3484, allocations: 3.219 kB / 0.5002 GB, free: 27.85 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006261/0.3491, allocations: 193.4 kB / 0.5003 GB, free: 27.78 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003651/0.3494, allocations: 167 kB / 0.5005 GB, free: 27.71 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003686/0.3498, allocations: 171.5 kB / 0.5007 GB, free: 27.61 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002563/0.35, allocations: 280.3 kB / 0.5009 GB, free: 27.49 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.3501, allocations: 18.77 kB / 0.5009 GB, free: 27.48 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.3503, allocations: 113.5 kB / 0.5011 GB, free: 27.43 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001433/0.3504, allocations: 116.1 kB / 0.5012 GB, free: 27.39 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.546e-05/0.3504, allocations: 18.31 kB / 0.5012 GB, free: 27.39 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001457/0.3506, allocations: 77.17 kB / 0.5013 GB, free: 27.37 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.464e-05/0.3507, allocations: 56.41 kB / 0.5013 GB, free: 27.34 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 9.15e-05/0.3508, allocations: 90.94 kB / 0.5014 GB, free: 27.29 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003258/0.3511, allocations: 288.7 kB / 0.5017 GB, free: 27.18 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3511, allocations: 7.234 kB / 0.5017 GB, free: 27.18 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3511, allocations: 0 / 0.5017 GB, free: 27.18 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.3511, allocations: 3.938 kB / 0.5017 GB, free: 27.17 MB / 446.1 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.0008188/0.3519, allocations: 0.5997 MB / 0.5023 GB, free: 26.64 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.3519, allocations: 9.438 kB / 0.5023 GB, free: 26.64 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.842e-05/0.352, allocations: 28.64 kB / 0.5023 GB, free: 26.63 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003078/0.3523, allocations: 221.8 kB / 0.5025 GB, free: 26.45 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.02e-05/0.3524, allocations: 171 kB / 0.5027 GB, free: 26.25 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.434e-05/0.3524, allocations: 16.56 kB / 0.5027 GB, free: 26.25 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002964/0.3527, allocations: 241.8 kB / 0.5029 GB, free: 26.06 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.3528, allocations: 3.094 kB / 0.5029 GB, free: 26.06 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.785e-05/0.3528, allocations: 7.047 kB / 0.5029 GB, free: 26.06 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.3528, allocations: 2.969 kB / 0.5029 GB, free: 26.06 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002401/0.353, allocations: 181.5 kB / 0.5031 GB, free: 25.93 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006169/0.3536, allocations: 0.5276 MB / 0.5036 GB, free: 25.49 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003097/0.3539, allocations: 246.3 kB / 0.5039 GB, free: 25.29 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001655/0.3541, allocations: 161.3 kB / 0.504 GB, free: 25.14 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.539e-05/0.3541, allocations: 3.938 kB / 0.504 GB, free: 25.14 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003709/0.3545, allocations: 0.5117 MB / 0.5045 GB, free: 24.64 MB / 446.1 MB Notification: Performance of pre-optimization done (n=23): time 1.412e-06/0.3545, allocations: 0 / 0.5045 GB, free: 24.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007803/0.3553, allocations: 0.6137 MB / 0.5051 GB, free: 24.21 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.159e-05/0.3553, allocations: 205.4 kB / 0.5053 GB, free: 23.97 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002858/0.3556, allocations: 329.2 kB / 0.5056 GB, free: 23.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.153e-05/0.3556, allocations: 35.73 kB / 0.5057 GB, free: 23.77 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.722e-05/0.3557, allocations: 132.6 kB / 0.5058 GB, free: 23.65 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.165e-05/0.3558, allocations: 59.33 kB / 0.5058 GB, free: 23.61 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.239e-05/0.3558, allocations: 47.09 kB / 0.5059 GB, free: 23.58 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.097e-05/0.3559, allocations: 339.1 kB / 0.5062 GB, free: 23.25 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001521/0.356, allocations: 145.3 kB / 0.5064 GB, free: 23.14 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001806/0.3562, allocations: 253.5 kB / 0.5066 GB, free: 22.89 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002921/0.3565, allocations: 368 kB / 0.5069 GB, free: 22.56 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3565, allocations: 0 / 0.5069 GB, free: 22.56 MB / 446.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004512/0.357, allocations: 447.5 kB / 0.5074 GB, free: 22.24 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.259e-05/0.357, allocations: 104.8 kB / 0.5075 GB, free: 22.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.357, allocations: 0 / 0.5075 GB, free: 22.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.3571, allocations: 6.188 kB / 0.5075 GB, free: 22.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.3572, allocations: 27.14 kB / 0.5075 GB, free: 22.13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.3572, allocations: 3.156 kB / 0.5075 GB, free: 22.13 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.3573, allocations: 23.95 kB / 0.5075 GB, free: 22.12 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.923e-05/0.3573, allocations: 13.62 kB / 0.5075 GB, free: 22.12 MB / 446.1 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.0001631/0.3575, allocations: 261.8 kB / 0.5078 GB, free: 21.88 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.993e-05/0.3575, allocations: 33.64 kB / 0.5078 GB, free: 21.86 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003365/0.3579, allocations: 242.1 kB / 0.5081 GB, free: 21.71 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.3579, allocations: 3.219 kB / 0.5081 GB, free: 21.71 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.3579, allocations: 3.938 kB / 0.5081 GB, free: 21.71 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.3579, allocations: 0 / 0.5081 GB, free: 21.71 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001859/0.3581, allocations: 212.4 kB / 0.5083 GB, free: 21.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.3581, allocations: 0 / 0.5083 GB, free: 21.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.399e-05/0.3581, allocations: 14.09 kB / 0.5083 GB, free: 21.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.3581, allocations: 7.031 kB / 0.5083 GB, free: 21.53 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/0.3581, allocations: 17.3 kB / 0.5083 GB, free: 21.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.3581, allocations: 3.031 kB / 0.5083 GB, free: 21.52 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3581, allocations: 3.984 kB / 0.5083 GB, free: 21.52 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005777/0.3587, allocations: 0.535 MB / 0.5088 GB, free: 21.14 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.102e-05/0.3587, allocations: 25.41 kB / 0.5089 GB, free: 21.12 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.812e-05/0.3588, allocations: 16.75 kB / 0.5089 GB, free: 21.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.3589, allocations: 15.67 kB / 0.5089 GB, free: 21.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.168e-05/0.359, allocations: 31.38 kB / 0.5089 GB, free: 21.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.594e-05/0.359, allocations: 16.22 kB / 0.5089 GB, free: 21.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000192/0.3592, allocations: 244.2 kB / 0.5092 GB, free: 20.97 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3592, allocations: 0 / 0.5092 GB, free: 20.97 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003133/0.3595, allocations: 62.75 kB / 0.5092 GB, free: 20.96 MB / 446.1 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.001614/0.3611, allocations: 467.4 kB / 0.5097 GB, free: 20.77 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005745/0.3617, allocations: 0.538 MB / 0.5102 GB, free: 20.31 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3617, allocations: 0 / 0.5102 GB, free: 20.31 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002979/0.362, allocations: 364.3 kB / 0.5105 GB, free: 19.99 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003723/0.3624, allocations: 56.91 kB / 0.5106 GB, free: 19.96 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000768/0.3631, allocations: 0.5411 MB / 0.5111 GB, free: 19.59 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001102/0.3632, allocations: 144.7 kB / 0.5113 GB, free: 19.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.415e-05/0.3633, allocations: 26.88 kB / 0.5113 GB, free: 19.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.943e-05/0.3634, allocations: 27.78 kB / 0.5113 GB, free: 19.48 MB / 446.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3634, allocations: 0 / 0.5113 GB, free: 19.48 MB / 446.1 MB Notification: Performance of Templates: time 0.008534/0.3719, allocations: 3.647 MB / 0.5149 GB, free: 18.98 MB / 446.1 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=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.152449793997221]