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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001938/0.001938, allocations: 203.5 kB / 8.541 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 225.5 MB / 234.4 MB, free: 14.92 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000861/0.0008611, allocations: 97.25 kB / 286.4 MB, free: 12.61 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.955e-06/7.985e-06, allocations: 4 kB / 343.1 MB, free: 3.801 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.2832, allocations: 51.47 MB / 394.6 MB, free: 33.22 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09932/0.3825, allocations: 76.18 MB / 470.8 MB, free: 4.93 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000269/0.3829, allocations: 68.45 kB / 470.9 MB, free: 4.863 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.002445/0.3853, allocations: 0.5656 MB / 471.4 MB, free: 4.309 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.5e-05/0.3854, allocations: 4.75 kB / 471.4 MB, free: 4.305 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003961/0.3858, allocations: 328 kB / 471.7 MB, free: 3.941 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.3858, allocations: 8.031 kB / 471.8 MB, free: 3.934 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.669e-05/0.3859, allocations: 9.219 kB / 471.8 MB, free: 3.926 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002234/0.3861, allocations: 178.9 kB / 471.9 MB, free: 3.711 MB / 346.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.000141/0.3863, allocations: 38.72 kB / 472 MB, free: 3.668 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.709e-05/0.3863, allocations: 0.9062 kB / 472 MB, free: 3.668 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.689e-05/0.3864, allocations: 16.56 kB / 472 MB, free: 3.652 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002188/0.3866, allocations: 113.2 kB / 472.1 MB, free: 3.531 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.3866, allocations: 0 / 472.1 MB, free: 3.531 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.3867, allocations: 1.219 kB / 472.1 MB, free: 3.531 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.3867, allocations: 0 / 472.1 MB, free: 3.531 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001307/0.3868, allocations: 142.9 kB / 472.2 MB, free: 3.355 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001698/0.387, allocations: 137 kB / 472.4 MB, free: 3.195 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.192e-05/0.387, allocations: 24.92 kB / 472.4 MB, free: 3.168 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.638e-06/0.3871, allocations: 0 / 472.4 MB, free: 3.168 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.706e-05/0.3871, allocations: 30.56 kB / 472.4 MB, free: 3.129 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.072e-06/0.3871, allocations: 0 / 472.4 MB, free: 3.129 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001575/0.3872, allocations: 61.64 kB / 472.5 MB, free: 3.062 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.799e-05/0.3873, allocations: 55.41 kB / 472.5 MB, free: 2.996 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.86e-05/0.3874, allocations: 97 kB / 472.6 MB, free: 2.895 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.456e-05/0.3874, allocations: 25.7 kB / 472.7 MB, free: 2.863 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.831e-05/0.3874, allocations: 84.14 kB / 472.8 MB, free: 2.777 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.415e-05/0.3875, allocations: 3.984 kB / 472.8 MB, free: 2.773 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.705e-06/0.3875, allocations: 0 / 472.8 MB, free: 2.773 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.3876, allocations: 318.8 kB / 473.1 MB, free: 2.453 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.295e-05/0.3876, allocations: 12.48 kB / 473.1 MB, free: 2.441 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.265e-05/0.3877, allocations: 40.3 kB / 473.1 MB, free: 2.387 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.918e-05/0.3877, allocations: 15.98 kB / 473.1 MB, free: 2.371 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3877, allocations: 0 / 473.1 MB, free: 2.371 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 8.731e-05/0.3878, allocations: 57.62 kB / 473.2 MB, free: 2.309 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.3878, allocations: 8.156 kB / 473.2 MB, free: 2.301 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.3878, allocations: 7.938 kB / 473.2 MB, free: 2.293 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.3878, allocations: 7.844 kB / 473.2 MB, free: 2.285 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.576e-05/0.3879, allocations: 7.938 kB / 473.2 MB, free: 2.277 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.3879, allocations: 5.484 kB / 473.2 MB, free: 2.273 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.421e-05/0.3879, allocations: 0 / 473.2 MB, free: 2.273 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-06/0.3879, allocations: 4 kB / 473.2 MB, free: 2.27 MB / 346.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 7.973e-05/0.388, allocations: 110.7 kB / 473.3 MB, free: 2.156 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.495e-05/0.3881, allocations: 61.52 kB / 473.4 MB, free: 2.09 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.098e-05/0.3882, allocations: 20.05 kB / 473.4 MB, free: 2.07 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.3882, allocations: 0 / 473.4 MB, free: 2.07 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3882, allocations: 0 / 473.4 MB, free: 2.07 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.3882, allocations: 0 / 473.4 MB, free: 2.07 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.156e-05/0.3883, allocations: 138.2 kB / 473.6 MB, free: 1.898 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3883, allocations: 0 / 473.6 MB, free: 1.898 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.674e-06/0.3883, allocations: 3.906 kB / 473.6 MB, free: 1.895 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.3883, allocations: 0 / 473.6 MB, free: 1.895 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.3883, allocations: 4 kB / 473.6 MB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.3883, allocations: 0 / 473.6 MB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.3883, allocations: 0 / 473.6 MB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.774e-05/0.3884, allocations: 81.28 kB / 473.6 MB, free: 1.793 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.797e-05/0.3885, allocations: 85.11 kB / 473.7 MB, free: 1.691 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.461e-05/0.3885, allocations: 7.984 kB / 473.7 MB, free: 1.684 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.207e-05/0.3886, allocations: 4 kB / 473.7 MB, free: 1.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.539e-06/0.3886, allocations: 3.906 kB / 473.7 MB, free: 1.676 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.3886, allocations: 0 / 473.7 MB, free: 1.676 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.865e-05/0.3886, allocations: 83.28 kB / 473.8 MB, free: 1.594 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001987/0.3889, allocations: 8 kB / 473.8 MB, free: 1.586 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.0001411/0.389, allocations: 107.2 kB / 473.9 MB, free: 1.473 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.534e-05/0.3891, allocations: 24 kB / 474 MB, free: 1.449 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3891, allocations: 0 / 474 MB, free: 1.449 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.01e-07/0.3891, allocations: 0 / 474 MB, free: 1.449 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005925/0.3897, allocations: 0.7105 MB / 474.7 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002031/0.3899, allocations: 79.66 kB / 474.7 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003137/0.3902, allocations: 0.6958 MB / 475.4 MB, free: 15.89 MB / 362.7 MB Notification: Performance of SimCode: time 3.81e-07/0.3903, allocations: 3.938 kB / 475.4 MB, free: 15.89 MB / 362.7 MB Notification: Performance of Templates: time 0.002437/0.3927, allocations: 0.6348 MB / 476.1 MB, free: 15.28 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