Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001364/0.001364, allocations: 199 kB / 18.07 MB, free: 3.637 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.274/1.274, allocations: 226.5 MB / 245.4 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007592/0.0007593, allocations: 95.95 kB / 297.4 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002098/0.0002098, allocations: 8 kB / 357.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2108/0.211, allocations: 51.28 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0876/0.2987, allocations: 76.91 MB / 485.6 MB, free: 14.7 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002367/0.2989, allocations: 78.23 kB / 485.6 MB, free: 14.62 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002254/0.3012, allocations: 0.8777 MB / 486.5 MB, free: 13.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3012, allocations: 0 / 486.5 MB, free: 13.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.3012, allocations: 0 / 486.5 MB, free: 13.75 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.0003435/0.3016, allocations: 341 kB / 486.9 MB, free: 13.37 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.3016, allocations: 16.81 kB / 486.9 MB, free: 13.35 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.218e-05/0.3017, allocations: 4.938 kB / 486.9 MB, free: 13.35 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/0.3018, allocations: 177.2 kB / 487.1 MB, free: 13.14 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.0001155/0.302, allocations: 34.25 kB / 487.1 MB, free: 13.1 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.302, allocations: 9.625 kB / 487.1 MB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002729/0.3023, allocations: 130.5 kB / 487.2 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.3023, allocations: 7.922 kB / 487.2 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.3023, allocations: 0 / 487.2 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.3023, allocations: 3.984 kB / 487.2 MB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.528e-05/0.3024, allocations: 16 kB / 487.2 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001421/0.3025, allocations: 169.2 kB / 487.4 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001913/0.3027, allocations: 139.7 kB / 487.6 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.148e-05/0.3028, allocations: 20.86 kB / 487.6 MB, free: 12.53 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.018e-05/0.3028, allocations: 0 / 487.6 MB, free: 12.53 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.162e-05/0.3028, allocations: 38.56 kB / 487.6 MB, free: 12.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=5): time 9.22e-07/0.3029, allocations: 1.688 kB / 487.6 MB, free: 12.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001873/0.3031, allocations: 73.8 kB / 487.7 MB, free: 12.4 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.114e-05/0.3031, allocations: 67.31 kB / 487.7 MB, free: 12.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.04e-05/0.3032, allocations: 109.8 kB / 487.9 MB, free: 12.21 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.3032, allocations: 29.64 kB / 487.9 MB, free: 12.17 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.884e-05/0.3033, allocations: 88.08 kB / 488 MB, free: 12.08 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.307e-05/0.3033, allocations: 4 kB / 488 MB, free: 12.08 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.725e-06/0.3033, allocations: 0 / 488 MB, free: 12.08 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.3034, allocations: 314.8 kB / 488.3 MB, free: 11.76 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.662e-05/0.3034, allocations: 7.984 kB / 488.3 MB, free: 11.75 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.67e-05/0.3035, allocations: 40.3 kB / 488.3 MB, free: 11.7 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.412e-05/0.3035, allocations: 48.22 kB / 488.4 MB, free: 11.64 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.3035, allocations: 4 kB / 488.4 MB, free: 11.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000108/0.3037, allocations: 77.47 kB / 488.5 MB, free: 11.55 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.3037, allocations: 7.938 kB / 488.5 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.3037, allocations: 0 / 488.5 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.3037, allocations: 4 kB / 488.5 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.845e-05/0.3038, allocations: 4 kB / 488.5 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.3038, allocations: 0 / 488.5 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.274e-05/0.3038, allocations: 4 kB / 488.5 MB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/0.3038, allocations: 4 kB / 488.5 MB, free: 11.53 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 8.102e-05/0.3039, allocations: 129.9 kB / 488.6 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.952e-05/0.304, allocations: 57.62 kB / 488.7 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.525e-05/0.304, allocations: 15.95 kB / 488.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.304, allocations: 0 / 488.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.304, allocations: 0 / 488.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.3041, allocations: 0 / 488.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.471e-05/0.3042, allocations: 157.7 kB / 488.8 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3042, allocations: 0 / 488.8 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.721e-06/0.3042, allocations: 0 / 488.8 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.231e-06/0.3042, allocations: 7.938 kB / 488.8 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.3042, allocations: 0 / 488.8 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.3042, allocations: 4 kB / 488.8 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.3042, allocations: 0 / 488.8 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001214/0.3043, allocations: 93.22 kB / 488.9 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.663e-05/0.3044, allocations: 89.03 kB / 489 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.753e-05/0.3044, allocations: 7.938 kB / 489 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.109e-05/0.3045, allocations: 7.938 kB / 489 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.454e-06/0.3045, allocations: 0 / 489 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.211e-06/0.3045, allocations: 0 / 489 MB, free: 10.86 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.074e-05/0.3045, allocations: 95.27 kB / 489.1 MB, free: 10.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3045, allocations: 0 / 489.1 MB, free: 10.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001761/0.3047, allocations: 8 kB / 489.1 MB, free: 10.76 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.0001169/0.3048, allocations: 99.25 kB / 489.2 MB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001029/0.305, allocations: 31.92 kB / 489.3 MB, free: 10.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.305, allocations: 4 kB / 489.3 MB, free: 10.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.61e-07/0.305, allocations: 320 / 489.3 MB, free: 10.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006372/0.3056, allocations: 0.7278 MB / 490 MB, free: 9.871 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002814/0.3059, allocations: 158.5 kB / 490.2 MB, free: 9.684 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002365/0.3062, allocations: 0.6848 MB / 490.8 MB, free: 8.973 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.315e-05/0.3062, allocations: 15.5 kB / 490.9 MB, free: 8.957 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3062, allocations: 0 / 490.9 MB, free: 8.957 MB / 362.7 MB Notification: Performance of Templates: time 0.001808/0.308, allocations: 0.7633 MB / 491.6 MB, free: 8.203 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches