Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001792/0.001792, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00198/0.00198, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.688/1.688, allocations: 227.4 MB / 246.9 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 55.91 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4817/0.4831, allocations: 50.54 MB / 409.2 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep): time 0.002447/0.4856, allocations: 1.424 MB / 410.7 MB, free: 204 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001784/0.4858, allocations: 39.91 kB / 410.7 MB, free: 164 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.318e-05/0.4859, allocations: 3.938 kB / 410.7 MB, free: 160 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.054e-05/0.4859, allocations: 0 / 410.7 MB, free: 160 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.626e-05/0.486, allocations: 3.938 kB / 410.7 MB, free: 156 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002414/0.4862, allocations: 19.97 kB / 410.7 MB, free: 136 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.213e-05/0.4863, allocations: 27.92 kB / 410.8 MB, free: 108 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.4864, allocations: 11.98 kB / 410.8 MB, free: 96 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.522e-05/0.4865, allocations: 11.94 kB / 410.8 MB, free: 84 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.982e-05/0.4865, allocations: 15.92 kB / 410.8 MB, free: 68 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.78e-05/0.4865, allocations: 4 kB / 410.8 MB, free: 64 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.044e-05/0.4866, allocations: 4 kB / 410.8 MB, free: 60 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.954e-05/0.4866, allocations: 7.984 kB / 410.8 MB, free: 52 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.37e-05/0.4866, allocations: 11.94 kB / 410.8 MB, free: 40 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.479e-05/0.4867, allocations: 31.83 kB / 410.9 MB, free: 8 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.4867, allocations: 0 / 410.9 MB, free: 8 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4867, allocations: 0 / 410.9 MB, free: 8 kB / 318.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.4867, allocations: 3.938 kB / 410.9 MB, free: 4 kB / 318.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.0004599/0.4872, allocations: 339.4 kB / 411.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.4873, allocations: 8.031 kB / 411.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.494e-05/0.4873, allocations: 8.938 kB / 411.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002055/0.4875, allocations: 184.2 kB / 411.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.631e-05/0.4875, allocations: 4.375 kB / 411.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.092e-05/0.4876, allocations: 4.375 kB / 411.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003319/0.4879, allocations: 115.8 kB / 411.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.4879, allocations: 192 / 411.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.4879, allocations: 7.938 kB / 411.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.4879, allocations: 0 / 411.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001028/0.488, allocations: 23.98 kB / 411.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001453/0.4882, allocations: 153.7 kB / 411.7 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001344/0.4883, allocations: 54.53 kB / 411.7 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.807e-05/0.4884, allocations: 24.89 kB / 411.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.313e-05/0.4884, allocations: 0 / 411.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/0.4885, allocations: 34.56 kB / 411.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 7.91e-07/0.4885, allocations: 0 / 411.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002656/0.4887, allocations: 81.73 kB / 411.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.466e-05/0.4888, allocations: 59.33 kB / 411.9 MB, free: 14.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.377e-05/0.4889, allocations: 105.8 kB / 412 MB, free: 14.62 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.327e-05/0.4889, allocations: 25.7 kB / 412.1 MB, free: 14.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.654e-05/0.489, allocations: 84.14 kB / 412.2 MB, free: 14.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.66e-05/0.489, allocations: 7.938 kB / 412.2 MB, free: 14.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.061e-05/0.489, allocations: 21.72 kB / 412.2 MB, free: 14.47 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.4891, allocations: 314.8 kB / 412.5 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.459e-05/0.4891, allocations: 8 kB / 412.5 MB, free: 14.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.517e-05/0.4892, allocations: 23.44 kB / 412.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.861e-05/0.4892, allocations: 47.73 kB / 412.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.4892, allocations: 0 / 412.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.33e-05/0.4893, allocations: 57.59 kB / 412.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.4893, allocations: 4 kB / 412.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.4893, allocations: 11.92 kB / 412.6 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.4894, allocations: 4 kB / 412.6 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.952e-05/0.4894, allocations: 8.062 kB / 412.7 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.4894, allocations: 4 kB / 412.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.897e-05/0.4895, allocations: 3.938 kB / 412.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.497e-06/0.4895, allocations: 4 kB / 412.7 MB, free: 13.95 MB / 334.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 7.559e-05/0.4895, allocations: 117.8 kB / 412.8 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.4897, allocations: 61.67 kB / 412.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.433e-05/0.4897, allocations: 7.438 kB / 412.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.4897, allocations: 0 / 412.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.4897, allocations: 0 / 412.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.4897, allocations: 4 kB / 412.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.663e-05/0.4898, allocations: 157.7 kB / 413 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.4898, allocations: 0 / 413 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.023e-05/0.4899, allocations: 7.938 kB / 413 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.4899, allocations: 0 / 413 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.4899, allocations: 7.938 kB / 413 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.4899, allocations: 0 / 413 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.4899, allocations: 0 / 413 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000152/0.4901, allocations: 89.05 kB / 413.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.7e-05/0.4901, allocations: 85.11 kB / 413.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.626e-05/0.4901, allocations: 7.938 kB / 413.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.879e-05/0.4902, allocations: 0 / 413.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.855e-06/0.4902, allocations: 7.938 kB / 413.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.4902, allocations: 0 / 413.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.782e-05/0.4902, allocations: 83.27 kB / 413.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4902, allocations: 0 / 413.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001803/0.4904, allocations: 8 kB / 413.3 MB, free: 13.2 MB / 334.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 0.0001099/0.4905, allocations: 99.25 kB / 413.4 MB, free: 13.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001283/0.4907, allocations: 27.92 kB / 413.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.4907, allocations: 0 / 413.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.01e-07/0.4907, allocations: 4 kB / 413.4 MB, free: 13.06 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002255/0.4909, allocations: 23.92 kB / 413.4 MB, free: 13.04 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002635/0.4912, allocations: 113.6 kB / 413.6 MB, free: 12.9 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002159/0.4914, allocations: 0.6809 MB / 414.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.46e-05/0.4914, allocations: 4 kB / 414.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.719e-05/0.4915, allocations: 15.42 kB / 414.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4915, allocations: 0 / 414.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of Templates: time 0.002205/0.4937, allocations: 376.9 kB / 414.6 MB, free: 11.81 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches