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.001201/0.001201, allocations: 176.5 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.593/1.593, allocations: 223.3 MB / 241.4 MB, free: 9.859 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009833/0.0009834, allocations: 91.08 kB / 292.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003687/0.0003688, allocations: 8 kB / 352.3 MB, free: 14.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2946/0.295, allocations: 50.42 MB / 402.7 MB, free: 32.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.104/0.3991, allocations: 76.21 MB / 479 MB, free: 4.094 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002174/0.3993, allocations: 71.95 kB / 479 MB, free: 4.023 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002225/0.4016, allocations: 0.8896 MB / 479.9 MB, free: 3.141 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.4016, allocations: 0 / 479.9 MB, free: 3.141 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.4016, allocations: 0 / 479.9 MB, free: 3.141 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.0003673/0.402, allocations: 339.4 kB / 480.3 MB, free: 2.758 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.402, allocations: 8.031 kB / 480.3 MB, free: 2.75 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.387e-05/0.4021, allocations: 11.91 kB / 480.3 MB, free: 2.742 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001896/0.4023, allocations: 176.3 kB / 480.4 MB, free: 2.531 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.0001524/0.4024, allocations: 42.2 kB / 480.5 MB, free: 2.484 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.368e-06/0.4025, allocations: 384 / 480.5 MB, free: 2.484 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002407/0.4027, allocations: 126.8 kB / 480.6 MB, free: 2.352 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.4027, allocations: 3.938 kB / 480.6 MB, free: 2.348 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.4027, allocations: 4 kB / 480.6 MB, free: 2.344 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.4028, allocations: 0 / 480.6 MB, free: 2.344 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.161e-05/0.4028, allocations: 23.91 kB / 480.6 MB, free: 2.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001706/0.403, allocations: 161.7 kB / 480.8 MB, free: 2.113 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002119/0.4032, allocations: 139.8 kB / 480.9 MB, free: 1.949 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.925e-05/0.4033, allocations: 28.84 kB / 481 MB, free: 1.918 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.424e-06/0.4033, allocations: 0 / 481 MB, free: 1.918 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.635e-05/0.4033, allocations: 30.56 kB / 481 MB, free: 1.879 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.252e-06/0.4033, allocations: 0 / 481 MB, free: 1.879 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002536/0.4036, allocations: 77.56 kB / 481.1 MB, free: 1.797 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.067e-05/0.4037, allocations: 63.31 kB / 481.1 MB, free: 1.723 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.992e-05/0.4038, allocations: 105.8 kB / 481.2 MB, free: 1.609 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.728e-05/0.4038, allocations: 25.7 kB / 481.3 MB, free: 1.578 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.03e-05/0.4038, allocations: 88.14 kB / 481.3 MB, free: 1.488 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.584e-05/0.4039, allocations: 3.984 kB / 481.3 MB, free: 1.484 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.669e-06/0.4039, allocations: 4 kB / 481.4 MB, free: 1.48 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.404, allocations: 310.8 kB / 481.7 MB, free: 1.168 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.108e-05/0.4041, allocations: 8 kB / 481.7 MB, free: 1.16 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.849e-05/0.4041, allocations: 56.58 kB / 481.7 MB, free: 1.09 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.52e-05/0.4042, allocations: 48.23 kB / 481.8 MB, free: 1.027 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.4042, allocations: 0 / 481.8 MB, free: 1.027 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001109/0.4043, allocations: 69.53 kB / 481.8 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.4043, allocations: 11.94 kB / 481.8 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.4044, allocations: 0 / 481.8 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.4044, allocations: 3.984 kB / 481.8 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.629e-05/0.4044, allocations: 15.94 kB / 481.9 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.248e-06/0.4045, allocations: 4 kB / 481.9 MB, free: 0.918 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.26e-05/0.4045, allocations: 160 / 481.9 MB, free: 0.918 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.701e-06/0.4045, allocations: 8 kB / 481.9 MB, free: 0.9102 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 () * 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 0.0001064/0.4046, allocations: 120.7 kB / 482 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.4047, allocations: 65.56 kB / 482.1 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.576e-05/0.4047, allocations: 7.969 kB / 482.1 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.4048, allocations: 0 / 482.1 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.4048, allocations: 3.938 kB / 482.1 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.4048, allocations: 0 / 482.1 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001183/0.4049, allocations: 161.7 kB / 482.2 MB, free: 500 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.4049, allocations: 3.984 kB / 482.2 MB, free: 496 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.841e-06/0.4049, allocations: 4 kB / 482.2 MB, free: 492 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.4049, allocations: 3.938 kB / 482.2 MB, free: 488 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.4049, allocations: 4 kB / 482.2 MB, free: 484 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.4049, allocations: 0 / 482.2 MB, free: 484 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.405, allocations: 0 / 482.2 MB, free: 484 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001235/0.4051, allocations: 89.03 kB / 482.3 MB, free: 376 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.105e-05/0.4051, allocations: 77.11 kB / 482.4 MB, free: 280 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.061e-05/0.4052, allocations: 7.938 kB / 482.4 MB, free: 272 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.069e-05/0.4052, allocations: 11.98 kB / 482.4 MB, free: 260 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.526e-06/0.4052, allocations: 0 / 482.4 MB, free: 260 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.545e-06/0.4052, allocations: 7.938 kB / 482.4 MB, free: 252 kB / 346.7 MB Notification: Performance of sorting global known variables: time 3.91e-05/0.4053, allocations: 83.28 kB / 482.5 MB, free: 168 kB / 346.7 MB Notification: Performance of sort global known variables: time 1.753e-06/0.4053, allocations: 0 / 482.5 MB, free: 168 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001931/0.4055, allocations: 15.94 kB / 482.5 MB, free: 152 kB / 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 () * 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.0001242/0.4056, allocations: 99.23 kB / 482.6 MB, free: 44 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001308/0.4058, allocations: 40.05 kB / 482.7 MB, free: 4 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.4058, allocations: 0 / 482.7 MB, free: 4 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.41e-07/0.4058, allocations: 0 / 482.7 MB, free: 4 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006315/0.4064, allocations: 0.7183 MB / 483.4 MB, free: 15.26 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002403/0.4067, allocations: 132.9 kB / 483.5 MB, free: 15.1 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003771/0.4071, allocations: 0.6848 MB / 484.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.412e-05/0.4071, allocations: 7.969 kB / 484.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.117e-05/0.4071, allocations: 11.44 kB / 484.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of SimCode: time 4.81e-07/0.4071, allocations: 0 / 484.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of Templates: time 0.00274/0.4099, allocations: 0.6028 MB / 484.8 MB, free: 13.78 MB / 362.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/jenkins1/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