Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.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.002715/0.002715, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.003109/0.003109, allocations: 165.3 kB / 24.28 MB, free: 152 kB / 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.548/1.548, allocations: 177.2 MB / 204.6 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.084e-06/2.084e-06, allocations: 0 / 272.3 MB, free: 1.867 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.744e-05/2.953e-05, allocations: 2.312 kB / 272.3 MB, free: 1.863 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.003071/0.003101, allocations: 1.462 MB / 273.8 MB, free: 404 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002264/0.003327, allocations: 31.91 kB / 273.8 MB, free: 372 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.482e-05/0.003392, allocations: 0 / 273.8 MB, free: 372 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.712e-05/0.003419, allocations: 3.938 kB / 273.8 MB, free: 368 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.846e-05/0.003468, allocations: 3.938 kB / 273.8 MB, free: 364 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002755/0.003743, allocations: 27.91 kB / 273.8 MB, free: 336 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.403e-05/0.003837, allocations: 35.86 kB / 273.9 MB, free: 300 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.02e-05/0.003927, allocations: 4 kB / 273.9 MB, free: 296 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.648e-05/0.003994, allocations: 19.97 kB / 273.9 MB, free: 276 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.457e-05/0.004038, allocations: 7.984 kB / 273.9 MB, free: 268 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.307e-05/0.004061, allocations: 4 kB / 273.9 MB, free: 264 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.012e-05/0.004071, allocations: 0 / 273.9 MB, free: 264 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.644e-05/0.004098, allocations: 11.94 kB / 273.9 MB, free: 252 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.063e-05/0.004129, allocations: 8 kB / 273.9 MB, free: 244 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001056/0.004234, allocations: 31.88 kB / 274 MB, free: 212 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.004237, allocations: 4 kB / 274 MB, free: 208 kB / 250.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.004238, allocations: 4 kB / 274 MB, free: 204 kB / 250.7 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.004243, allocations: 0 / 274 MB, free: 204 kB / 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.0005562/0.004799, allocations: 364.2 kB / 274.3 MB, free: 15.8 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.004841, allocations: 12.03 kB / 274.3 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.687e-05/0.004898, allocations: 12.89 kB / 274.3 MB, free: 15.78 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002295/0.005127, allocations: 120.5 kB / 274.5 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.092e-05/0.005148, allocations: 384 / 274.5 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.715e-05/0.005165, allocations: 8.375 kB / 274.5 MB, free: 15.63 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003503/0.005515, allocations: 117.5 kB / 274.6 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.005525, allocations: 192 / 274.6 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.005535, allocations: 4.375 kB / 274.6 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.005539, allocations: 384 / 274.6 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001056/0.005645, allocations: 27.91 kB / 274.6 MB, free: 15.47 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001591/0.005804, allocations: 112.6 kB / 274.7 MB, free: 15.32 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000192/0.005996, allocations: 67 kB / 274.8 MB, free: 15.25 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.646e-05/0.006073, allocations: 23.72 kB / 274.8 MB, free: 15.22 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.439e-05/0.006087, allocations: 0 / 274.8 MB, free: 15.22 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.998e-05/0.006127, allocations: 33.39 kB / 274.9 MB, free: 15.18 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.006128, allocations: 4 kB / 274.9 MB, free: 15.17 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002838/0.006412, allocations: 81.5 kB / 274.9 MB, free: 15.09 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.623e-05/0.006488, allocations: 63.39 kB / 275 MB, free: 15.01 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000152/0.00664, allocations: 165.9 kB / 275.2 MB, free: 14.83 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.274e-05/0.006663, allocations: 25.7 kB / 275.2 MB, free: 14.8 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.006763, allocations: 138.9 kB / 275.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.109e-05/0.006774, allocations: 0 / 275.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.213e-05/0.006826, allocations: 23.38 kB / 275.3 MB, free: 14.63 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0005563/0.007383, allocations: 492.1 kB / 275.8 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.381e-05/0.007396, allocations: 4 kB / 275.8 MB, free: 14.13 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.264e-05/0.007409, allocations: 11.98 kB / 275.8 MB, free: 14.12 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.882e-05/0.007438, allocations: 11.69 kB / 275.8 MB, free: 14.11 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.00744, allocations: 0 / 275.8 MB, free: 14.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.081e-05/0.007511, allocations: 45.59 kB / 275.9 MB, free: 14.05 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.007525, allocations: 8 kB / 275.9 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.00753, allocations: 0 / 275.9 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.007545, allocations: 0 / 275.9 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.745e-05/0.007602, allocations: 4.25 kB / 275.9 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.007607, allocations: 0 / 275.9 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.519e-05/0.007622, allocations: 7.938 kB / 275.9 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.196e-06/0.007626, allocations: 4.094 kB / 275.9 MB, free: 14.03 MB / 266.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 0.0001303/0.007756, allocations: 160.6 kB / 276.1 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000141/0.007897, allocations: 57.69 kB / 276.1 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.083e-05/0.007928, allocations: 8 kB / 276.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.007929, allocations: 0 / 276.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.115e-06/0.007932, allocations: 0 / 276.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.00794, allocations: 7.875 kB / 276.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000118/0.008058, allocations: 120.6 kB / 276.3 MB, free: 13.63 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.008059, allocations: 0 / 276.3 MB, free: 13.63 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.501e-05/0.008114, allocations: 7.984 kB / 276.3 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.008121, allocations: 8 kB / 276.3 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.008132, allocations: 7.938 kB / 276.3 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.008133, allocations: 0 / 276.3 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.008134, allocations: 0 / 276.3 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001928/0.008327, allocations: 104.3 kB / 276.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.588e-06/0.008336, allocations: 4 kB / 276.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.838e-05/0.008354, allocations: 4 kB / 276.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.355e-05/0.008378, allocations: 0 / 276.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.254e-06/0.00838, allocations: 0 / 276.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.458e-06/0.008385, allocations: 0 / 276.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.794e-05/0.008473, allocations: 135.2 kB / 276.5 MB, free: 13.34 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.008473, allocations: 4 kB / 276.5 MB, free: 13.34 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001799/0.008653, allocations: 7.938 kB / 276.5 MB, free: 13.33 MB / 266.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: 4 (assignClock1.u,assignClock1.y,step.y,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.0001367/0.008789, allocations: 99.47 kB / 276.6 MB, free: 13.22 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001384/0.008928, allocations: 27.67 kB / 276.7 MB, free: 13.19 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.00893, allocations: 0 / 276.7 MB, free: 13.19 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.61e-07/0.00893, allocations: 0 / 276.7 MB, free: 13.19 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002889/0.009219, allocations: 29.41 kB / 276.7 MB, free: 13.16 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003382/0.009557, allocations: 128.8 kB / 276.8 MB, free: 13.01 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.3e-05/0.00964, allocations: 67.41 kB / 276.9 MB, free: 12.92 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.895e-05/0.009659, allocations: 0 / 276.9 MB, free: 12.92 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.401e-05/0.009693, allocations: 12.5 kB / 276.9 MB, free: 12.91 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.009694, allocations: 0 / 276.9 MB, free: 12.91 MB / 266.7 MB Notification: Performance of Templates: time 0.003396/0.01309, allocations: 444.9 kB / 277.3 MB, free: 12.48 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.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: 4.411603515036404]