Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.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.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001012/0.001012, allocations: 197.7 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.171/1.171, allocations: 227.2 MB / 245 MB, free: 5.902 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008508/0.0008508, allocations: 103.5 kB / 297.3 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002189/0.0002193, allocations: 8 kB / 357.9 MB, free: 9.328 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1856/0.1858, allocations: 51.48 MB / 409.4 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08384/0.2697, allocations: 76.98 MB / 486.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002778/0.27, allocations: 75.95 kB / 486.5 MB, free: 13.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002428/0.2725, allocations: 0.8901 MB / 487.4 MB, free: 12.69 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2725, allocations: 0 / 487.4 MB, free: 12.69 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.219e-05/0.2726, allocations: 0 / 487.4 MB, free: 12.69 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004054/0.273, allocations: 343.2 kB / 487.7 MB, free: 12.3 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.273, allocations: 8.031 kB / 487.7 MB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.32e-05/0.2731, allocations: 4 kB / 487.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001907/0.2733, allocations: 182 kB / 487.9 MB, free: 12.08 MB / 362.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.0001381/0.2734, allocations: 33.69 kB / 487.9 MB, free: 12.04 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.751e-05/0.2734, allocations: 11.95 kB / 487.9 MB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002693/0.2737, allocations: 119.2 kB / 488 MB, free: 11.9 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.73e-06/0.2737, allocations: 2.656 kB / 488 MB, free: 11.9 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-06/0.2738, allocations: 0 / 488 MB, free: 11.9 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.2738, allocations: 0 / 488 MB, free: 11.9 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.453e-05/0.2738, allocations: 23.97 kB / 488.1 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001298/0.274, allocations: 157.7 kB / 488.2 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002193/0.2742, allocations: 147.7 kB / 488.4 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.001e-05/0.2742, allocations: 7.938 kB / 488.4 MB, free: 11.49 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.933e-05/0.2742, allocations: 34.52 kB / 488.4 MB, free: 11.45 MB / 362.7 MB Notification: Performance of pre-optimization done (n=5): time 1.293e-06/0.2742, allocations: 0 / 488.4 MB, free: 11.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002119/0.2745, allocations: 150.9 kB / 488.6 MB, free: 11.28 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.167e-05/0.2745, allocations: 51.41 kB / 488.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.978e-05/0.2746, allocations: 113.1 kB / 488.7 MB, free: 11.1 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/0.2746, allocations: 25.7 kB / 488.7 MB, free: 11.07 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.984e-05/0.2747, allocations: 88.12 kB / 488.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.249e-05/0.2747, allocations: 4 kB / 488.8 MB, free: 10.97 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.375e-06/0.2747, allocations: 0 / 488.8 MB, free: 10.97 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.2748, allocations: 318.8 kB / 489.1 MB, free: 10.65 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.79e-05/0.2748, allocations: 15.88 kB / 489.2 MB, free: 10.64 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.628e-05/0.2749, allocations: 44.28 kB / 489.2 MB, free: 10.58 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.613e-05/0.2749, allocations: 12 kB / 489.2 MB, free: 10.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2749, allocations: 0 / 489.2 MB, free: 10.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001143/0.275, allocations: 73.47 kB / 489.3 MB, free: 10.49 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.275, allocations: 4.156 kB / 489.3 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.275, allocations: 8 kB / 489.3 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.2751, allocations: 3.953 kB / 489.3 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.315e-05/0.2751, allocations: 4 kB / 489.3 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.2751, allocations: 4 kB / 489.3 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.212e-05/0.2752, allocations: 0 / 489.3 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.74e-06/0.2752, allocations: 4 kB / 489.3 MB, free: 10.46 MB / 362.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 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * 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 7.261e-05/0.2752, allocations: 128.5 kB / 489.4 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.2753, allocations: 61.69 kB / 489.5 MB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.22e-05/0.2754, allocations: 7.969 kB / 489.5 MB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.2754, allocations: 3.953 kB / 489.5 MB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.2754, allocations: 0 / 489.5 MB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.2754, allocations: 0 / 489.5 MB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.636e-05/0.2755, allocations: 161.7 kB / 489.7 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.2755, allocations: 4 kB / 489.7 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.931e-06/0.2755, allocations: 0 / 489.7 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.2755, allocations: 0 / 489.7 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.799e-06/0.2755, allocations: 0 / 489.7 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2755, allocations: 0 / 489.7 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.2756, allocations: 3.953 kB / 489.7 MB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001257/0.2757, allocations: 101 kB / 489.8 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.884e-05/0.2757, allocations: 77.11 kB / 489.8 MB, free: 9.82 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.973e-05/0.2758, allocations: 4.25 kB / 489.9 MB, free: 9.816 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.49e-05/0.2758, allocations: 8 kB / 489.9 MB, free: 9.809 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.735e-06/0.2758, allocations: 0 / 489.9 MB, free: 9.809 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/0.2758, allocations: 11.92 kB / 489.9 MB, free: 9.797 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.803e-05/0.2759, allocations: 87.23 kB / 490 MB, free: 9.711 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2759, allocations: 3.938 kB / 490 MB, free: 9.707 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001787/0.2761, allocations: 12 kB / 490 MB, free: 9.695 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: 5 (assignClock1.u,assignClock1.y,pulse.y,pulse.counter,pulse.startOutput) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.counter,pulse.startOutput) * 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.0001028/0.2762, allocations: 99.25 kB / 490.1 MB, free: 9.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000105/0.2763, allocations: 31.92 kB / 490.1 MB, free: 9.559 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2763, allocations: 0 / 490.1 MB, free: 9.559 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.42e-07/0.2763, allocations: 0 / 490.1 MB, free: 9.559 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006185/0.2769, allocations: 0.7223 MB / 490.8 MB, free: 8.812 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000256/0.2772, allocations: 125 kB / 490.9 MB, free: 8.66 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002406/0.2774, allocations: 0.6848 MB / 491.6 MB, free: 7.949 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.556e-05/0.2775, allocations: 4.406 kB / 491.6 MB, free: 7.941 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.954e-05/0.2775, allocations: 11.44 kB / 491.6 MB, free: 7.93 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2775, allocations: 4.031 kB / 491.7 MB, free: 7.926 MB / 362.7 MB Notification: Performance of Templates: time 0.002329/0.2798, allocations: 0.6067 MB / 492.3 MB, free: 7.332 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches