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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001214/0.001214, allocations: 196.3 kB / 18.1 MB, free: 3.613 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.549/1.549, allocations: 226.5 MB / 245.4 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008/0.0008, allocations: 104.7 kB / 297.5 MB, free: 6.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002601/0.0002605, allocations: 4 kB / 358.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2846/0.2849, allocations: 51.29 MB / 409.4 MB, free: 27.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.11/0.3949, allocations: 76.8 MB / 486.2 MB, free: 14.68 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003356/0.3953, allocations: 72.7 kB / 486.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002039/0.3974, allocations: 0.7526 MB / 487 MB, free: 13.86 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.577e-06/0.3974, allocations: 0 / 487 MB, free: 13.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.395e-05/0.3974, allocations: 0 / 487 MB, free: 13.86 MB / 362.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.0003816/0.3978, allocations: 328.4 kB / 487.3 MB, free: 13.49 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.3979, allocations: 9.031 kB / 487.3 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.413e-05/0.3979, allocations: 4.938 kB / 487.3 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002201/0.3982, allocations: 182.8 kB / 487.5 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.532e-05/0.3982, allocations: 4.312 kB / 487.5 MB, free: 13.26 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.343e-05/0.3982, allocations: 4.375 kB / 487.5 MB, free: 13.26 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003446/0.3986, allocations: 117.4 kB / 487.6 MB, free: 13.13 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.3986, allocations: 1.25 kB / 487.6 MB, free: 13.13 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.3986, allocations: 7.922 kB / 487.6 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.782e-05/0.3987, allocations: 0 / 487.6 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001042/0.3988, allocations: 24.61 kB / 487.7 MB, free: 13.1 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001742/0.3989, allocations: 157.7 kB / 487.8 MB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001366/0.3991, allocations: 58.47 kB / 487.9 MB, free: 12.83 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.03e-05/0.3992, allocations: 24.92 kB / 487.9 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.076e-05/0.3992, allocations: 3.938 kB / 487.9 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.3992, allocations: 34.56 kB / 487.9 MB, free: 12.76 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.031e-06/0.3992, allocations: 0 / 487.9 MB, free: 12.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002684/0.3995, allocations: 89.53 kB / 488 MB, free: 12.66 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.492e-05/0.3996, allocations: 51.41 kB / 488.1 MB, free: 12.6 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.418e-05/0.3997, allocations: 101.9 kB / 488.2 MB, free: 12.49 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.7e-05/0.3997, allocations: 25.7 kB / 488.2 MB, free: 12.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.807e-05/0.3998, allocations: 84.12 kB / 488.3 MB, free: 12.38 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.573e-05/0.3998, allocations: 7.906 kB / 488.3 MB, free: 12.37 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.655e-06/0.3998, allocations: 0 / 488.3 MB, free: 12.37 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.3999, allocations: 314.8 kB / 488.6 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.502e-05/0.3999, allocations: 12 kB / 488.6 MB, free: 12.04 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.112e-05/0.4, allocations: 27.42 kB / 488.6 MB, free: 12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.067e-05/0.4, allocations: 39.38 kB / 488.7 MB, free: 11.95 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.4001, allocations: 0 / 488.7 MB, free: 11.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.387e-05/0.4001, allocations: 58 kB / 488.7 MB, free: 11.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.4002, allocations: 8 kB / 488.7 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.4002, allocations: 3.938 kB / 488.7 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.4002, allocations: 0 / 488.7 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.469e-05/0.4003, allocations: 11.94 kB / 488.8 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.4003, allocations: 4 kB / 488.8 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.781e-05/0.4003, allocations: 3.938 kB / 488.8 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-06/0.4003, allocations: 4 kB / 488.8 MB, free: 11.85 MB / 362.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 9.029e-05/0.4004, allocations: 114 kB / 488.9 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.4006, allocations: 65.67 kB / 488.9 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.262e-05/0.4006, allocations: 7.438 kB / 489 MB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.4006, allocations: 3.938 kB / 489 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.4006, allocations: 3.984 kB / 489 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.4006, allocations: 0 / 489 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001154/0.4008, allocations: 153.7 kB / 489.1 MB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.4008, allocations: 0 / 489.1 MB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.03e-05/0.4008, allocations: 4 kB / 489.1 MB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.4008, allocations: 7.984 kB / 489.1 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.898e-06/0.4008, allocations: 3.938 kB / 489.1 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.4008, allocations: 0 / 489.1 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.4009, allocations: 4 kB / 489.1 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001635/0.401, allocations: 85.02 kB / 489.2 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.014e-05/0.4011, allocations: 81.39 kB / 489.3 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.4011, allocations: 11.88 kB / 489.3 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.454e-05/0.4011, allocations: 0 / 489.3 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.296e-06/0.4012, allocations: 8 kB / 489.3 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.837e-06/0.4012, allocations: 7.969 kB / 489.3 MB, free: 11.2 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.521e-05/0.4012, allocations: 79.28 kB / 489.4 MB, free: 11.12 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4012, allocations: 3.938 kB / 489.4 MB, free: 11.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000189/0.4014, allocations: 8 kB / 489.4 MB, free: 11.11 MB / 362.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.0001335/0.4016, allocations: 95.25 kB / 489.5 MB, free: 11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000124/0.4017, allocations: 23.98 kB / 489.5 MB, free: 10.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4017, allocations: 8.25 kB / 489.5 MB, free: 10.97 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.274e-06/0.4017, allocations: 0 / 489.5 MB, free: 10.97 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002401/0.402, allocations: 30.33 kB / 489.6 MB, free: 10.94 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003082/0.4023, allocations: 120.7 kB / 489.7 MB, free: 10.79 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002817/0.4026, allocations: 0.6809 MB / 490.4 MB, free: 10.09 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.121e-05/0.4026, allocations: 0 / 490.4 MB, free: 10.09 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.439e-05/0.4027, allocations: 19.42 kB / 490.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of SimCode: time 3.31e-07/0.4027, allocations: 0 / 490.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of Templates: time 0.002349/0.405, allocations: 323.5 kB / 490.7 MB, free: 9.758 MB / 362.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedStep/TickBasedStep.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches