Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.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.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 221.5 MB / 230.3 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009767/0.0009767, allocations: 93.84 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.758e-05/1.76e-05, allocations: 4 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1136, allocations: 50.42 MB / 387.5 MB, free: 7.555 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3404/0.4541, allocations: 75.45 MB / 462.9 MB, free: 3.398 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002353/0.4544, allocations: 71.95 kB / 463 MB, free: 3.328 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002269/0.4566, allocations: 0.8792 MB / 463.9 MB, free: 2.457 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4567, allocations: 0 / 463.9 MB, free: 2.457 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.4567, allocations: 0 / 463.9 MB, free: 2.457 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003535/0.457, allocations: 335.2 kB / 464.2 MB, free: 2.086 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.4571, allocations: 8.031 kB / 464.2 MB, free: 2.078 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.897e-05/0.4571, allocations: 11.86 kB / 464.2 MB, free: 2.066 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001755/0.4573, allocations: 175 kB / 464.4 MB, free: 1.859 MB / 330.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= -1 + pulse.startTick to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.4574, allocations: 35.41 kB / 464.4 MB, free: 1.82 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.4575, allocations: 7.938 kB / 464.4 MB, free: 1.812 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.581e-05/0.4576, allocations: 23.94 kB / 464.4 MB, free: 1.789 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002188/0.4578, allocations: 104 kB / 464.5 MB, free: 1.676 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.934e-06/0.4578, allocations: 4 kB / 464.5 MB, free: 1.672 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.4578, allocations: 0 / 464.5 MB, free: 1.672 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.4578, allocations: 3.953 kB / 464.6 MB, free: 1.668 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001169/0.458, allocations: 138.2 kB / 464.7 MB, free: 1.496 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001539/0.4581, allocations: 131.7 kB / 464.8 MB, free: 1.34 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.936e-05/0.4582, allocations: 24.92 kB / 464.8 MB, free: 1.312 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.007e-05/0.4582, allocations: 0 / 464.8 MB, free: 1.312 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.057e-05/0.4582, allocations: 34.56 kB / 464.9 MB, free: 1.27 MB / 330.7 MB Notification: Performance of pre-optimization done (n=5): time 1.032e-06/0.4582, allocations: 0 / 464.9 MB, free: 1.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001431/0.4584, allocations: 53.64 kB / 464.9 MB, free: 1.211 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.148e-05/0.4584, allocations: 63.34 kB / 465 MB, free: 1.137 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.622e-05/0.4585, allocations: 92.98 kB / 465.1 MB, free: 1.039 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.001e-05/0.4585, allocations: 25.7 kB / 465.1 MB, free: 1.008 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.391e-05/0.4586, allocations: 92.14 kB / 465.2 MB, free: 0.9141 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.405e-05/0.4586, allocations: 3.906 kB / 465.2 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.685e-06/0.4586, allocations: 0 / 465.2 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.4587, allocations: 322.8 kB / 465.5 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.318e-05/0.4587, allocations: 4 kB / 465.5 MB, free: 0.582 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.642e-05/0.4588, allocations: 37.33 kB / 465.6 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.342e-05/0.4588, allocations: 12 kB / 465.6 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.4588, allocations: 4 kB / 465.6 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 8.132e-05/0.4589, allocations: 61.56 kB / 465.6 MB, free: 460 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.4589, allocations: 9.25 kB / 465.6 MB, free: 452 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.4589, allocations: 0 / 465.6 MB, free: 452 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.4589, allocations: 4.141 kB / 465.6 MB, free: 448 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.266e-05/0.459, allocations: 8 kB / 465.7 MB, free: 440 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/0.459, allocations: 4.156 kB / 465.7 MB, free: 436 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.31e-05/0.459, allocations: 3.938 kB / 465.7 MB, free: 432 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.626e-06/0.459, allocations: 11.98 kB / 465.7 MB, free: 420 kB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (pulse.startOutput,$CLKPRE.pulse.startOutput,pulse.counter,$CLKPRE.pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 8.136e-05/0.4591, allocations: 120.8 kB / 465.8 MB, free: 292 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.002e-05/0.4592, allocations: 57.53 kB / 465.8 MB, free: 228 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.24e-05/0.4592, allocations: 8.406 kB / 465.9 MB, free: 220 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.4592, allocations: 0 / 465.9 MB, free: 220 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.4593, allocations: 5.375 kB / 465.9 MB, free: 216 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.4593, allocations: 0 / 465.9 MB, free: 216 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.83e-05/0.4594, allocations: 142.2 kB / 466 MB, free: 36 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.4594, allocations: 0 / 466 MB, free: 36 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.072e-06/0.4594, allocations: 0 / 466 MB, free: 36 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.4594, allocations: 0 / 466 MB, free: 36 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.215e-06/0.4594, allocations: 7.984 kB / 466 MB, free: 28 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.4594, allocations: 0 / 466 MB, free: 28 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4594, allocations: 0 / 466 MB, free: 28 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001105/0.4595, allocations: 85.31 kB / 466.1 MB, free: 15.93 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.233e-05/0.4596, allocations: 85.06 kB / 466.2 MB, free: 15.82 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.041e-05/0.4596, allocations: 4 kB / 466.2 MB, free: 15.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.561e-05/0.4596, allocations: 4 kB / 466.2 MB, free: 15.82 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.829e-06/0.4597, allocations: 3.984 kB / 466.2 MB, free: 15.81 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.4597, allocations: 0 / 466.2 MB, free: 15.81 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.336e-05/0.4597, allocations: 79.28 kB / 466.3 MB, free: 15.73 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4597, allocations: 4 kB / 466.3 MB, free: 15.73 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001787/0.4599, allocations: 8 kB / 466.3 MB, free: 15.72 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: 5 (assignClock1.u,assignClock1.y,pulse.y,pulse.counter,pulse.startOutput) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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.0001046/0.46, allocations: 100.5 kB / 466.4 MB, free: 15.62 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.431e-05/0.4601, allocations: 27.94 kB / 466.4 MB, free: 15.59 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4601, allocations: 0 / 466.4 MB, free: 15.59 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.41e-07/0.4601, allocations: 0 / 466.4 MB, free: 15.59 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005319/0.4607, allocations: 0.7101 MB / 467.1 MB, free: 14.86 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001838/0.4608, allocations: 84.23 kB / 467.2 MB, free: 14.75 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000256/0.4611, allocations: 0.6885 MB / 467.9 MB, free: 14.04 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.52e-05/0.4611, allocations: 4.172 kB / 467.9 MB, free: 14.03 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.972e-05/0.4612, allocations: 11.44 kB / 467.9 MB, free: 14.02 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4612, allocations: 0 / 467.9 MB, free: 14.02 MB / 346.7 MB Notification: Performance of Templates: time 0.002184/0.4634, allocations: 0.5863 MB / 468.5 MB, free: 13.43 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches