Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008909/0.0008909, allocations: 93.25 kB / 17.31 MB, free: 6.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009527/0.0009527, allocations: 176.8 kB / 18.21 MB, free: 5.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.272/1.272, allocations: 223.3 MB / 242.3 MB, free: 228 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002248/0.0002249, allocations: 8 kB / 302.1 MB, free: 6.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07222/0.07246, allocations: 50.41 MB / 352.5 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.001305/0.07378, allocations: 1.151 MB / 353.6 MB, free: 2.566 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002072/0.074, allocations: 104.4 kB / 353.7 MB, free: 2.465 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.583e-05/0.07406, allocations: 4 kB / 353.7 MB, free: 2.461 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.45e-05/0.07408, allocations: 3.938 kB / 353.7 MB, free: 2.457 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 2.833e-05/0.07411, allocations: 0 / 353.7 MB, free: 2.457 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001977/0.07432, allocations: 23.91 kB / 353.8 MB, free: 2.434 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.068e-05/0.07439, allocations: 19.98 kB / 353.8 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.467e-05/0.07447, allocations: 8 kB / 353.8 MB, free: 2.406 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.502e-05/0.0745, allocations: 15.86 kB / 353.8 MB, free: 2.391 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.396e-05/0.07454, allocations: 11.92 kB / 353.8 MB, free: 2.379 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.252e-05/0.07456, allocations: 0 / 353.8 MB, free: 2.379 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.113e-06/0.07457, allocations: 4 kB / 353.8 MB, free: 2.375 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.539e-05/0.07459, allocations: 11.94 kB / 353.8 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.254e-05/0.07463, allocations: 33.64 kB / 353.9 MB, free: 2.324 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 4.742e-05/0.07468, allocations: 15.97 kB / 353.9 MB, free: 2.309 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.07469, allocations: 0 / 353.9 MB, free: 2.309 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.07469, allocations: 0 / 353.9 MB, free: 2.309 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.164e-06/0.0747, allocations: 0 / 353.9 MB, free: 2.309 MB / 286.1 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.0003058/0.07501, allocations: 343.7 kB / 354.2 MB, free: 1.922 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.019e-05/0.07505, allocations: 8.031 kB / 354.2 MB, free: 1.914 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.838e-05/0.07508, allocations: 16.84 kB / 354.3 MB, free: 1.898 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001295/0.07522, allocations: 172.4 kB / 354.4 MB, free: 1.691 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.116e-06/0.07523, allocations: 384 / 354.4 MB, free: 1.691 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.291e-05/0.07525, allocations: 8.375 kB / 354.4 MB, free: 1.684 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002779/0.07554, allocations: 107.9 kB / 354.5 MB, free: 1.566 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.981e-06/0.07555, allocations: 192 / 354.5 MB, free: 1.566 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.828e-06/0.07557, allocations: 7.922 kB / 354.5 MB, free: 1.559 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.07558, allocations: 4 kB / 354.5 MB, free: 1.555 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.072e-05/0.07566, allocations: 27.91 kB / 354.6 MB, free: 1.527 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001102/0.07578, allocations: 153.7 kB / 354.7 MB, free: 1.328 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001503/0.07594, allocations: 62.55 kB / 354.8 MB, free: 1.258 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.923e-05/0.07601, allocations: 20.94 kB / 354.8 MB, free: 1.234 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.578e-05/0.07603, allocations: 3.984 kB / 354.8 MB, free: 1.23 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.07606, allocations: 34.56 kB / 354.8 MB, free: 1.188 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.062e-06/0.07606, allocations: 4 kB / 354.8 MB, free: 1.184 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002048/0.07627, allocations: 81.45 kB / 354.9 MB, free: 1.098 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.745e-05/0.07632, allocations: 63.34 kB / 355 MB, free: 1.023 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.652e-05/0.07639, allocations: 105.8 kB / 355.1 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.839e-06/0.07641, allocations: 25.7 kB / 355.1 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.898e-05/0.07644, allocations: 84.14 kB / 355.2 MB, free: 0.793 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.783e-06/0.07645, allocations: 4 kB / 355.2 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.207e-05/0.07648, allocations: 13.72 kB / 355.2 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.069e-05/0.07657, allocations: 314.8 kB / 355.5 MB, free: 464 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.081e-05/0.07659, allocations: 11.94 kB / 355.5 MB, free: 452 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.123e-05/0.07661, allocations: 23.44 kB / 355.6 MB, free: 416 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.554e-05/0.07665, allocations: 35.38 kB / 355.6 MB, free: 368 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.07666, allocations: 0 / 355.6 MB, free: 368 kB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.474e-05/0.07674, allocations: 57.56 kB / 355.6 MB, free: 304 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.07676, allocations: 8 kB / 355.7 MB, free: 296 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.07677, allocations: 3.938 kB / 355.7 MB, free: 292 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.416e-06/0.07678, allocations: 128 / 355.7 MB, free: 292 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.561e-05/0.07683, allocations: 15.98 kB / 355.7 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.07684, allocations: 0 / 355.7 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.947e-05/0.07687, allocations: 3.906 kB / 355.7 MB, free: 272 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.211e-06/0.07688, allocations: 8 kB / 355.7 MB, free: 264 kB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (assignClock1.y,assignClock1.u,step.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 6.188e-05/0.07694, allocations: 113.8 kB / 355.8 MB, free: 140 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.07706, allocations: 61.62 kB / 355.9 MB, free: 72 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.607e-05/0.07709, allocations: 11.83 kB / 355.9 MB, free: 52 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.0771, allocations: 8 kB / 355.9 MB, free: 44 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.07711, allocations: 0 / 355.9 MB, free: 44 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.07712, allocations: 0 / 355.9 MB, free: 44 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.178e-05/0.07722, allocations: 153.7 kB / 356 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.07722, allocations: 0 / 356 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.265e-05/0.07728, allocations: 12.23 kB / 356 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.07729, allocations: 0 / 356 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.0773, allocations: 8.266 kB / 356 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.07731, allocations: 0 / 356 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.07731, allocations: 0 / 356 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001343/0.07745, allocations: 97.03 kB / 356.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.048e-05/0.07749, allocations: 85.02 kB / 356.2 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.285e-05/0.07751, allocations: 7.938 kB / 356.2 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.678e-05/0.07754, allocations: 0 / 356.2 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.727e-06/0.07755, allocations: 7.938 kB / 356.2 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.07756, allocations: 0 / 356.2 MB, free: 15.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.56e-05/0.0776, allocations: 87.27 kB / 356.3 MB, free: 15.51 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.07761, allocations: 0 / 356.3 MB, free: 15.51 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001889/0.0778, allocations: 8 kB / 356.3 MB, free: 15.5 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (step.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * 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 6.514e-05/0.07787, allocations: 99.19 kB / 356.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 9.521e-05/0.07797, allocations: 27.92 kB / 356.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.07798, allocations: 256 / 356.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.51e-07/0.07799, allocations: 4 kB / 356.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002125/0.07821, allocations: 27.36 kB / 356.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002302/0.07845, allocations: 146.4 kB / 356.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001797/0.07864, allocations: 0.6848 MB / 357.3 MB, free: 14.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.73e-05/0.07867, allocations: 11.38 kB / 357.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.07867, allocations: 0 / 357.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of Templates: time 0.001549/0.08023, allocations: 0.5395 MB / 357.9 MB, free: 13.9 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches