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.001944/0.001944, allocations: 71.75 kB / 21.24 MB, free: 400 kB / 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.002243/0.002243, allocations: 164.5 kB / 24.49 MB, free: 3.453 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.488/1.488, allocations: 177.2 MB / 204.9 MB, free: 9.047 MB / 190.1 MB " [Timeout remaining time 178] 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.2111/0.2111, allocations: 32.81 MB / 294.1 MB, free: 56 kB / 270.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00211/0.00211, allocations: 67.89 kB / 440.6 MB, free: 9.492 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3406, allocations: 65.44 MB / 0.4941 GB, free: 31.41 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.004666/0.3453, allocations: 1.88 MB / 0.496 GB, free: 30.14 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001821/0.3471, allocations: 1.126 MB / 0.4971 GB, free: 29.41 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.721e-05/0.3472, allocations: 0 / 0.4971 GB, free: 29.41 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007914/0.348, allocations: 193.8 kB / 0.4973 GB, free: 29.34 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005919/0.3486, allocations: 172 kB / 0.4974 GB, free: 29.27 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005199/0.3491, allocations: 167.1 kB / 0.4976 GB, free: 29.18 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004127/0.3495, allocations: 276.6 kB / 0.4978 GB, free: 29.05 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/0.3496, allocations: 22.77 kB / 0.4979 GB, free: 29.04 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000133/0.3498, allocations: 120.6 kB / 0.498 GB, free: 28.99 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001891/0.35, allocations: 114.4 kB / 0.4981 GB, free: 28.95 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.493e-05/0.35, allocations: 16.25 kB / 0.4981 GB, free: 28.95 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001673/0.3502, allocations: 71.67 kB / 0.4982 GB, free: 28.93 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.994e-05/0.3502, allocations: 63.78 kB / 0.4982 GB, free: 28.9 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 9.047e-05/0.3503, allocations: 87.02 kB / 0.4983 GB, free: 28.86 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003028/0.3506, allocations: 289.6 kB / 0.4986 GB, free: 28.74 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3506, allocations: 4 kB / 0.4986 GB, free: 28.74 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3506, allocations: 3.938 kB / 0.4986 GB, free: 28.73 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.3507, allocations: 4 kB / 0.4986 GB, free: 28.73 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.0007706/0.3514, allocations: 0.6032 MB / 0.4992 GB, free: 28.2 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.3515, allocations: 13.39 kB / 0.4992 GB, free: 28.2 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.918e-05/0.3515, allocations: 28.17 kB / 0.4992 GB, free: 28.18 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002959/0.3518, allocations: 213.1 kB / 0.4994 GB, free: 28 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.192e-05/0.3519, allocations: 171.4 kB / 0.4996 GB, free: 27.81 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.404e-05/0.352, allocations: 20.81 kB / 0.4996 GB, free: 27.8 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002874/0.3522, allocations: 236.5 kB / 0.4998 GB, free: 27.62 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.3523, allocations: 4 kB / 0.4998 GB, free: 27.62 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.712e-05/0.3523, allocations: 6.344 kB / 0.4999 GB, free: 27.62 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.3523, allocations: 0 / 0.4999 GB, free: 27.62 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002276/0.3525, allocations: 181.7 kB / 0.5 GB, free: 27.49 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006157/0.3531, allocations: 0.5319 MB / 0.5005 GB, free: 27.05 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003061/0.3534, allocations: 240.8 kB / 0.5008 GB, free: 26.85 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001632/0.3536, allocations: 170.3 kB / 0.5009 GB, free: 26.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.3536, allocations: 6.609 kB / 0.5009 GB, free: 26.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003969/0.354, allocations: 0.5147 MB / 0.5014 GB, free: 26.19 MB / 446.1 MB Notification: Performance of pre-optimization done (n=23): time 1.302e-06/0.354, allocations: 0 / 0.5014 GB, free: 26.19 MB / 446.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007586/0.3548, allocations: 0.6134 MB / 0.502 GB, free: 25.76 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.062e-05/0.3548, allocations: 197.6 kB / 0.5022 GB, free: 25.53 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002705/0.3551, allocations: 334.1 kB / 0.5026 GB, free: 25.35 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.3551, allocations: 31.98 kB / 0.5026 GB, free: 25.32 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.811e-05/0.3552, allocations: 133.4 kB / 0.5027 GB, free: 25.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.055e-05/0.3552, allocations: 56.45 kB / 0.5028 GB, free: 25.16 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.995e-05/0.3553, allocations: 47.25 kB / 0.5028 GB, free: 25.13 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.801e-05/0.3554, allocations: 342.5 kB / 0.5031 GB, free: 24.81 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.3555, allocations: 149.3 kB / 0.5033 GB, free: 24.69 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/0.3557, allocations: 253.3 kB / 0.5035 GB, free: 24.45 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003182/0.356, allocations: 363 kB / 0.5039 GB, free: 24.11 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.356, allocations: 0 / 0.5039 GB, free: 24.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005085/0.3565, allocations: 450.5 kB / 0.5043 GB, free: 23.79 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.617e-05/0.3566, allocations: 98.09 kB / 0.5044 GB, free: 23.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.3566, allocations: 6.641 kB / 0.5044 GB, free: 23.69 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.48e-05/0.3566, allocations: 3.094 kB / 0.5044 GB, free: 23.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/0.3567, allocations: 19.97 kB / 0.5044 GB, free: 23.69 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.3567, allocations: 6.719 kB / 0.5044 GB, free: 23.69 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.3569, allocations: 28.7 kB / 0.5045 GB, free: 23.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.346e-05/0.3569, allocations: 9.688 kB / 0.5045 GB, free: 23.68 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.0002304/0.3571, allocations: 275.8 kB / 0.5047 GB, free: 23.43 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.7e-05/0.3572, allocations: 36.02 kB / 0.5048 GB, free: 23.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000425/0.3576, allocations: 241.2 kB / 0.505 GB, free: 23.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.3576, allocations: 0 / 0.505 GB, free: 23.25 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.3576, allocations: 2.969 kB / 0.505 GB, free: 23.25 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.3576, allocations: 0 / 0.505 GB, free: 23.25 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002385/0.3579, allocations: 205.6 kB / 0.5052 GB, free: 23.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3579, allocations: 0 / 0.5052 GB, free: 23.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.752e-05/0.3579, allocations: 13.83 kB / 0.5052 GB, free: 23.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.3579, allocations: 3.281 kB / 0.5052 GB, free: 23.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.722e-05/0.358, allocations: 18.34 kB / 0.5052 GB, free: 23.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.358, allocations: 3.938 kB / 0.5052 GB, free: 23.07 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.358, allocations: 3.281 kB / 0.5052 GB, free: 23.07 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000656/0.3586, allocations: 0.5304 MB / 0.5057 GB, free: 22.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.496e-05/0.3587, allocations: 25.38 kB / 0.5058 GB, free: 22.69 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.025e-05/0.3587, allocations: 17.38 kB / 0.5058 GB, free: 22.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.3588, allocations: 12.78 kB / 0.5058 GB, free: 22.68 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.554e-05/0.3589, allocations: 24.3 kB / 0.5058 GB, free: 22.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.896e-05/0.3589, allocations: 12.75 kB / 0.5058 GB, free: 22.67 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002005/0.3591, allocations: 247.8 kB / 0.5061 GB, free: 22.54 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3591, allocations: 0 / 0.5061 GB, free: 22.54 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003074/0.3594, allocations: 71.17 kB / 0.5061 GB, free: 22.53 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.001593/0.361, allocations: 464.3 kB / 0.5066 GB, free: 22.32 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005431/0.3616, allocations: 0.5366 MB / 0.5071 GB, free: 21.87 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3616, allocations: 4.062 kB / 0.5071 GB, free: 21.87 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003125/0.3619, allocations: 368.9 kB / 0.5075 GB, free: 21.54 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003671/0.3623, allocations: 52.69 kB / 0.5075 GB, free: 21.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008178/0.3631, allocations: 0.5403 MB / 0.508 GB, free: 21.14 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001236/0.3632, allocations: 150.9 kB / 0.5082 GB, free: 21.05 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.455e-05/0.3633, allocations: 28.05 kB / 0.5082 GB, free: 21.05 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.469e-05/0.3633, allocations: 23.53 kB / 0.5082 GB, free: 21.04 MB / 446.1 MB Notification: Performance of SimCode: time 4.1e-07/0.3633, allocations: 0 / 0.5082 GB, free: 21.04 MB / 446.1 MB Notification: Performance of Templates: time 0.007249/0.3706, allocations: 3.652 MB / 0.5118 GB, free: 20.54 MB / 446.1 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=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.14293789002113]