Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 82.28 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 145.2 kB / 25.59 MB, free: 8.918 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9933/0.9933, allocations: 173.4 MB / 202.2 MB, free: 8.277 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.943e-06/1.943e-06, allocations: 0 / 269.2 MB, free: 9.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.945e-05/3.139e-05, allocations: 5.266 kB / 269.2 MB, free: 9.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep): time 0.003047/0.003078, allocations: 1.494 MB / 270.7 MB, free: 8.297 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002918/0.00337, allocations: 35.84 kB / 270.7 MB, free: 8.262 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.352e-05/0.003464, allocations: 4.625 kB / 270.7 MB, free: 8.258 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.669e-05/0.0035, allocations: 3.938 kB / 270.7 MB, free: 8.254 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.095e-05/0.003561, allocations: 1.531 kB / 270.7 MB, free: 8.254 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003116/0.003873, allocations: 31.84 kB / 270.8 MB, free: 8.223 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000108/0.003981, allocations: 27.92 kB / 270.8 MB, free: 8.195 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001125/0.004093, allocations: 5.781 kB / 270.8 MB, free: 8.191 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.658e-05/0.00416, allocations: 23.91 kB / 270.8 MB, free: 8.168 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.883e-05/0.004209, allocations: 7.984 kB / 270.8 MB, free: 8.16 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.32e-05/0.004242, allocations: 0 / 270.8 MB, free: 8.16 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.016e-05/0.004252, allocations: 4 kB / 270.8 MB, free: 8.156 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.988e-05/0.004282, allocations: 9.969 kB / 270.9 MB, free: 8.148 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.631e-05/0.004308, allocations: 8 kB / 270.9 MB, free: 8.141 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001028/0.004411, allocations: 19.97 kB / 270.9 MB, free: 8.121 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.004415, allocations: 3.938 kB / 270.9 MB, free: 8.117 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.004417, allocations: 0 / 270.9 MB, free: 8.117 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.004421, allocations: 0 / 270.9 MB, free: 8.117 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003993/0.004821, allocations: 369.4 kB / 271.2 MB, free: 7.719 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.004869, allocations: 12.03 kB / 271.3 MB, free: 7.707 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.873e-05/0.004908, allocations: 10.97 kB / 271.3 MB, free: 7.699 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001667/0.005074, allocations: 124.5 kB / 271.4 MB, free: 7.551 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.816e-05/0.005092, allocations: 4.375 kB / 271.4 MB, free: 7.547 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.927e-06/0.005101, allocations: 384 / 271.4 MB, free: 7.547 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002333/0.005335, allocations: 111.5 kB / 271.5 MB, free: 7.422 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.005344, allocations: 192 / 271.5 MB, free: 7.422 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.865e-06/0.005351, allocations: 0.9062 kB / 271.5 MB, free: 7.422 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.005358, allocations: 1.062 kB / 271.5 MB, free: 7.422 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.665e-05/0.005385, allocations: 11.92 kB / 271.5 MB, free: 7.41 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001056/0.005491, allocations: 98.86 kB / 271.6 MB, free: 7.289 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.26e-05/0.005563, allocations: 43.02 kB / 271.7 MB, free: 7.234 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.147e-05/0.005595, allocations: 19.67 kB / 271.7 MB, free: 7.211 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.794e-06/0.005602, allocations: 0 / 271.7 MB, free: 7.211 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.005629, allocations: 38.11 kB / 271.7 MB, free: 7.164 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.00563, allocations: 0 / 271.7 MB, free: 7.164 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001553/0.005786, allocations: 50.91 kB / 271.8 MB, free: 7.109 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.82e-05/0.005844, allocations: 63.33 kB / 271.8 MB, free: 7.035 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.893e-05/0.005923, allocations: 157.9 kB / 272 MB, free: 6.863 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.045e-05/0.005933, allocations: 30.2 kB / 272 MB, free: 6.828 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.864e-05/0.005982, allocations: 134.9 kB / 272.1 MB, free: 6.691 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.392e-05/0.005996, allocations: 11.92 kB / 272.1 MB, free: 6.68 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.897e-05/0.006025, allocations: 19.38 kB / 272.2 MB, free: 6.652 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.00618, allocations: 496.1 kB / 272.7 MB, free: 6.156 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.22e-05/0.006192, allocations: 0 / 272.7 MB, free: 6.156 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.204e-05/0.006204, allocations: 4 kB / 272.7 MB, free: 6.152 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.437e-05/0.006238, allocations: 11.69 kB / 272.7 MB, free: 6.137 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.00624, allocations: 0 / 272.7 MB, free: 6.137 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.504e-05/0.006305, allocations: 45.62 kB / 272.7 MB, free: 6.086 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.00633, allocations: 4 kB / 272.7 MB, free: 6.082 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.006337, allocations: 4.094 kB / 272.7 MB, free: 6.078 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.759e-06/0.006347, allocations: 0 / 272.7 MB, free: 6.078 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.242e-05/0.006399, allocations: 4 kB / 272.7 MB, free: 6.074 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.186e-06/0.006402, allocations: 0 / 272.7 MB, free: 6.074 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.312e-05/0.006416, allocations: 0 / 272.7 MB, free: 6.074 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.11e-06/0.006421, allocations: 3.938 kB / 272.7 MB, free: 6.07 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($CLKPRE.step.counter,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 9.229e-05/0.006513, allocations: 156.6 kB / 272.9 MB, free: 5.906 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.19e-05/0.006575, allocations: 49.64 kB / 272.9 MB, free: 5.852 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.11e-05/0.006606, allocations: 4 kB / 272.9 MB, free: 5.84 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.006608, allocations: 0 / 272.9 MB, free: 5.84 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.604e-06/0.006611, allocations: 4 kB / 272.9 MB, free: 5.836 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.024e-06/0.006618, allocations: 4.234 kB / 272.9 MB, free: 5.832 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.324e-05/0.006691, allocations: 101.2 kB / 273 MB, free: 5.707 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.006694, allocations: 4 kB / 273 MB, free: 5.703 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.063e-05/0.006744, allocations: 19.92 kB / 273.1 MB, free: 5.684 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.006746, allocations: 0 / 273.1 MB, free: 5.684 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.558e-06/0.00675, allocations: 0 / 273.1 MB, free: 5.684 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.006752, allocations: 0 / 273.1 MB, free: 5.684 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.006755, allocations: 4 kB / 273.1 MB, free: 5.68 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.895e-05/0.006814, allocations: 68.39 kB / 273.1 MB, free: 5.59 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.799e-06/0.006824, allocations: 3.953 kB / 273.1 MB, free: 5.586 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.308e-05/0.006837, allocations: 4 kB / 273.1 MB, free: 5.582 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.33e-05/0.00685, allocations: 7.984 kB / 273.2 MB, free: 5.574 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.735e-06/0.006853, allocations: 3.938 kB / 273.2 MB, free: 5.57 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.617e-06/0.006857, allocations: 0 / 273.2 MB, free: 5.57 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.382e-05/0.006901, allocations: 127.2 kB / 273.3 MB, free: 5.445 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006901, allocations: 0 / 273.3 MB, free: 5.445 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001275/0.007028, allocations: 4 kB / 273.3 MB, free: 5.441 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001019/0.00713, allocations: 99.19 kB / 273.4 MB, free: 5.336 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.654e-05/0.007217, allocations: 23.67 kB / 273.4 MB, free: 5.309 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.00722, allocations: 0 / 273.4 MB, free: 5.309 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.71e-07/0.00722, allocations: 0 / 273.4 MB, free: 5.309 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002217/0.007442, allocations: 24.25 kB / 273.4 MB, free: 5.285 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002827/0.007725, allocations: 121.2 kB / 273.5 MB, free: 5.141 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.108e-05/0.007766, allocations: 63.28 kB / 273.6 MB, free: 5.059 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.873e-05/0.007795, allocations: 0 / 273.6 MB, free: 5.059 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.788e-05/0.007852, allocations: 70.2 kB / 273.7 MB, free: 4.988 MB / 250.7 MB Notification: Performance of SimCode: time 8.12e-07/0.007853, allocations: 0 / 273.7 MB, free: 4.988 MB / 250.7 MB Notification: Performance of Templates: time 0.002544/0.0104, allocations: 488 kB / 274.2 MB, free: 4.527 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedStep/TickBasedStep.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.8602453959174454]