Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 181.7 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 90.7 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003102/0.0003102, allocations: 11.94 kB / 351.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.29/0.2903, allocations: 50.41 MB / 401.5 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1055/0.3958, allocations: 76.07 MB / 477.6 MB, free: 4.41 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002778/0.3961, allocations: 77.17 kB / 477.6 MB, free: 4.336 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002279/0.3984, allocations: 0.754 MB / 478.4 MB, free: 3.582 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.3985, allocations: 0 / 478.4 MB, free: 3.582 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.56e-05/0.3985, allocations: 4 kB / 478.4 MB, free: 3.578 MB / 346.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.0003876/0.3989, allocations: 323.3 kB / 478.7 MB, free: 3.215 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.085e-05/0.399, allocations: 8.031 kB / 478.7 MB, free: 3.207 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.065e-05/0.399, allocations: 10.98 kB / 478.7 MB, free: 3.199 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002563/0.3993, allocations: 176.5 kB / 478.9 MB, free: 2.988 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.237e-05/0.3993, allocations: 0 / 478.9 MB, free: 2.988 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.083e-05/0.3993, allocations: 4 kB / 478.9 MB, free: 2.984 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004231/0.3998, allocations: 126.3 kB / 479 MB, free: 2.852 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.3998, allocations: 0 / 479 MB, free: 2.852 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.3998, allocations: 0 / 479 MB, free: 2.852 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.74e-06/0.3998, allocations: 0 / 479 MB, free: 2.852 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001099/0.3999, allocations: 23.94 kB / 479.1 MB, free: 2.828 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001927/0.4001, allocations: 161.6 kB / 479.2 MB, free: 2.621 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001771/0.4003, allocations: 50.5 kB / 479.3 MB, free: 2.562 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.283e-05/0.4004, allocations: 4.031 kB / 479.3 MB, free: 2.559 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.4004, allocations: 34.56 kB / 479.3 MB, free: 2.516 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.373e-06/0.4004, allocations: 0 / 479.3 MB, free: 2.516 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003361/0.4007, allocations: 81.83 kB / 479.4 MB, free: 2.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.904e-05/0.4008, allocations: 59.41 kB / 479.4 MB, free: 2.359 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.174e-05/0.4009, allocations: 97 kB / 479.5 MB, free: 2.258 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.599e-05/0.4009, allocations: 25.7 kB / 479.6 MB, free: 2.227 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.863e-05/0.401, allocations: 84.12 kB / 479.6 MB, free: 2.141 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.703e-05/0.401, allocations: 4 kB / 479.6 MB, free: 2.137 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.146e-06/0.401, allocations: 4 kB / 479.7 MB, free: 2.133 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.4012, allocations: 318.8 kB / 480 MB, free: 1.812 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.369e-05/0.4012, allocations: 4 kB / 480 MB, free: 1.809 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.691e-05/0.4013, allocations: 35.41 kB / 480 MB, free: 1.762 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.921e-05/0.4013, allocations: 12 kB / 480 MB, free: 1.75 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.4013, allocations: 0 / 480 MB, free: 1.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.692e-05/0.4014, allocations: 65.47 kB / 480.1 MB, free: 1.68 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.4014, allocations: 4 kB / 480.1 MB, free: 1.676 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.4015, allocations: 4 kB / 480.1 MB, free: 1.672 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.4015, allocations: 3.938 kB / 480.1 MB, free: 1.668 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.275e-05/0.4015, allocations: 4 kB / 480.1 MB, free: 1.664 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.757e-06/0.4016, allocations: 0 / 480.1 MB, free: 1.664 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.547e-05/0.4016, allocations: 8 kB / 480.1 MB, free: 1.656 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.1e-06/0.4016, allocations: 4.125 kB / 480.1 MB, free: 1.652 MB / 346.7 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 (step.counter,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001131/0.4017, allocations: 113.8 kB / 480.2 MB, free: 1.531 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001393/0.4019, allocations: 65.61 kB / 480.3 MB, free: 1.461 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.465e-05/0.4019, allocations: 3.5 kB / 480.3 MB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.4019, allocations: 4 kB / 480.3 MB, free: 1.449 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-06/0.4019, allocations: 3.938 kB / 480.3 MB, free: 1.445 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.402, allocations: 3.984 kB / 480.3 MB, free: 1.441 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001588/0.4021, allocations: 157.6 kB / 480.4 MB, free: 1.238 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.4021, allocations: 0 / 480.4 MB, free: 1.238 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.38e-05/0.4022, allocations: 8 kB / 480.5 MB, free: 1.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.4022, allocations: 0 / 480.5 MB, free: 1.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.4022, allocations: 7.984 kB / 480.5 MB, free: 1.223 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.4022, allocations: 0 / 480.5 MB, free: 1.223 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.4022, allocations: 0 / 480.5 MB, free: 1.223 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001711/0.4024, allocations: 96.91 kB / 480.6 MB, free: 1.109 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.458e-05/0.4025, allocations: 77.11 kB / 480.6 MB, free: 1.016 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.514e-05/0.4025, allocations: 4 kB / 480.6 MB, free: 1.012 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.799e-05/0.4025, allocations: 4 kB / 480.6 MB, free: 1.008 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.348e-06/0.4026, allocations: 0 / 480.6 MB, free: 1.008 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.4026, allocations: 4.375 kB / 480.6 MB, free: 1.004 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.11e-05/0.4026, allocations: 91.27 kB / 480.7 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4026, allocations: 0 / 480.7 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002064/0.4029, allocations: 4 kB / 480.7 MB, free: 0.9102 MB / 346.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002267/0.4031, allocations: 95.25 kB / 480.8 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001641/0.4033, allocations: 31.98 kB / 480.9 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.4033, allocations: 0 / 480.9 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.997e-06/0.4033, allocations: 4 kB / 480.9 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.4036, allocations: 23.94 kB / 480.9 MB, free: 0.75 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003752/0.4039, allocations: 128.6 kB / 481 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003568/0.4043, allocations: 0.6848 MB / 481.7 MB, free: 15.88 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.379e-05/0.4043, allocations: 4.188 kB / 481.7 MB, free: 15.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.749e-05/0.4044, allocations: 11.44 kB / 481.7 MB, free: 15.87 MB / 362.7 MB Notification: Performance of SimCode: time 4.21e-07/0.4044, allocations: 0 / 481.7 MB, free: 15.87 MB / 362.7 MB Notification: Performance of Templates: time 0.002268/0.4067, allocations: 339.4 kB / 482 MB, free: 15.54 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches