Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.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.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 92.48 kB / 17.3 MB, free: 5.59 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.001096/0.001096, allocations: 177.5 kB / 18.21 MB, free: 5.191 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.323/1.323, allocations: 223.3 MB / 242.3 MB, free: 14.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002215/0.0002215, allocations: 7.938 kB / 302.1 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0753/0.07553, allocations: 50.41 MB / 352.5 MB, free: 3.453 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.00137/0.07694, allocations: 1.143 MB / 353.6 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001445/0.07709, allocations: 27.91 kB / 353.7 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.764e-05/0.07715, allocations: 4 kB / 353.7 MB, free: 2.266 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.516e-05/0.07718, allocations: 3.938 kB / 353.7 MB, free: 2.262 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 3.056e-05/0.07722, allocations: 4 kB / 353.7 MB, free: 2.258 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002117/0.07743, allocations: 27.92 kB / 353.7 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.612e-05/0.07751, allocations: 23.92 kB / 353.7 MB, free: 2.207 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.839e-05/0.0776, allocations: 15.98 kB / 353.7 MB, free: 2.191 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.931e-05/0.07763, allocations: 7.938 kB / 353.8 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.482e-05/0.07767, allocations: 7.922 kB / 353.8 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.662e-05/0.0777, allocations: 4 kB / 353.8 MB, free: 2.172 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.695e-06/0.07771, allocations: 0 / 353.8 MB, free: 2.172 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.665e-05/0.07773, allocations: 7.984 kB / 353.8 MB, free: 2.164 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.834e-05/0.07778, allocations: 37.58 kB / 353.8 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 5.513e-05/0.07784, allocations: 23.95 kB / 353.8 MB, free: 2.098 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.07785, allocations: 0 / 353.8 MB, free: 2.098 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.07785, allocations: 0 / 353.8 MB, free: 2.098 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.765e-06/0.07786, allocations: 0 / 353.8 MB, free: 2.098 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.0003466/0.07821, allocations: 339.7 kB / 354.2 MB, free: 1.715 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.083e-05/0.07825, allocations: 11.97 kB / 354.2 MB, free: 1.703 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.051e-05/0.07829, allocations: 8.844 kB / 354.2 MB, free: 1.695 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001411/0.07843, allocations: 172.4 kB / 354.4 MB, free: 1.488 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.8e-05/0.07846, allocations: 4.375 kB / 354.4 MB, free: 1.484 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.879e-06/0.07848, allocations: 8.375 kB / 354.4 MB, free: 1.477 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003173/0.0788, allocations: 119.8 kB / 354.5 MB, free: 1.348 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.78e-06/0.07882, allocations: 192 / 354.5 MB, free: 1.348 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.268e-06/0.07883, allocations: 3.938 kB / 354.5 MB, free: 1.344 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.07884, allocations: 3.984 kB / 354.5 MB, free: 1.34 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001238/0.07897, allocations: 31.91 kB / 354.5 MB, free: 1.309 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000115/0.07909, allocations: 161.7 kB / 354.7 MB, free: 1.102 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001587/0.07926, allocations: 54.61 kB / 354.7 MB, free: 1.039 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.916e-05/0.07935, allocations: 28.86 kB / 354.8 MB, free: 1.008 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.496e-06/0.07936, allocations: 0 / 354.8 MB, free: 1.008 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.043e-05/0.07939, allocations: 38.5 kB / 354.8 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 8.42e-07/0.0794, allocations: 0 / 354.8 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.000259/0.07966, allocations: 89.44 kB / 354.9 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.703e-05/0.07973, allocations: 59.41 kB / 354.9 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.442e-05/0.07981, allocations: 105.8 kB / 355 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.367e-05/0.07983, allocations: 25.7 kB / 355.1 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.842e-05/0.07987, allocations: 84.14 kB / 355.2 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.132e-05/0.07989, allocations: 4 kB / 355.2 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.186e-05/0.07991, allocations: 9.719 kB / 355.2 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.08003, allocations: 322.8 kB / 355.5 MB, free: 228 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.339e-05/0.08005, allocations: 4 kB / 355.5 MB, free: 224 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.758e-05/0.08008, allocations: 31.44 kB / 355.5 MB, free: 180 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.916e-05/0.08014, allocations: 39.36 kB / 355.6 MB, free: 128 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.08015, allocations: 0 / 355.6 MB, free: 128 kB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.619e-05/0.08024, allocations: 69.42 kB / 355.6 MB, free: 52 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.013e-05/0.08026, allocations: 4 kB / 355.6 MB, free: 48 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.08027, allocations: 3.938 kB / 355.6 MB, free: 44 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.08029, allocations: 7.984 kB / 355.6 MB, free: 36 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.266e-05/0.08034, allocations: 4 kB / 355.6 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.08036, allocations: 4 kB / 355.6 MB, free: 28 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.141e-05/0.08038, allocations: 4 kB / 355.7 MB, free: 24 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.14e-06/0.08039, allocations: 4 kB / 355.7 MB, free: 20 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: 5 ($CLKPRE.step.counter,step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.023e-05/0.08049, allocations: 117.9 kB / 355.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001543/0.08065, allocations: 65.98 kB / 355.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.704e-05/0.08069, allocations: 15.84 kB / 355.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.08069, allocations: 3.984 kB / 355.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.0807, allocations: 0 / 355.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.08071, allocations: 4 kB / 355.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.816e-05/0.08081, allocations: 153.7 kB / 356 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.08083, allocations: 0 / 356 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.131e-05/0.08089, allocations: 15.92 kB / 356 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.0809, allocations: 0 / 356 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.08092, allocations: 11.94 kB / 356 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.08093, allocations: 0 / 356 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.08093, allocations: 0 / 356 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001833/0.08112, allocations: 93.97 kB / 356.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.961e-05/0.08117, allocations: 85.14 kB / 356.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.429e-05/0.08119, allocations: 7.875 kB / 356.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.504e-05/0.08123, allocations: 4 kB / 356.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.044e-06/0.08124, allocations: 0 / 356.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.319e-06/0.08125, allocations: 4 kB / 356.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.191e-05/0.0813, allocations: 87.27 kB / 356.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.0813, allocations: 0 / 356.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001941/0.0815, allocations: 4 kB / 356.3 MB, free: 15.25 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: 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 8.216e-05/0.08159, allocations: 99.25 kB / 356.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001195/0.08171, allocations: 31.92 kB / 356.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.08172, allocations: 256 / 356.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.01e-07/0.08173, allocations: 4 kB / 356.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002784/0.08202, allocations: 35.95 kB / 356.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002717/0.0823, allocations: 148.1 kB / 356.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001931/0.08251, allocations: 0.6886 MB / 357.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.071e-05/0.08254, allocations: 15.44 kB / 357.3 MB, free: 14.17 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.08254, allocations: 0 / 357.3 MB, free: 14.17 MB / 302.1 MB Notification: Performance of Templates: time 0.001648/0.08419, allocations: 0.6193 MB / 357.9 MB, free: 13.55 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches