Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001337/0.001337, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001446/0.001447, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.614/1.614, allocations: 227.7 MB / 247.2 MB, free: 10.14 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002004/0.002004, allocations: 63.91 kB / 359 MB, free: 12.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3623/0.3643, allocations: 50.55 MB / 409.6 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003099/0.3674, allocations: 1.439 MB / 411 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001964/0.3677, allocations: 35.91 kB / 411 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.686e-05/0.3678, allocations: 3.938 kB / 411 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.06e-05/0.3678, allocations: 0 / 411 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.732e-05/0.3679, allocations: 7.938 kB / 411 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002734/0.3681, allocations: 38.83 kB / 411.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001122/0.3683, allocations: 39.86 kB / 411.1 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.3684, allocations: 7.984 kB / 411.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.148e-05/0.3684, allocations: 15.92 kB / 411.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.091e-05/0.3685, allocations: 27.91 kB / 411.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.296e-05/0.3685, allocations: 4 kB / 411.2 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.376e-05/0.3686, allocations: 4 kB / 411.2 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.812e-05/0.3686, allocations: 11.92 kB / 411.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.635e-05/0.3686, allocations: 15.94 kB / 411.2 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001214/0.3688, allocations: 39.88 kB / 411.2 MB, free: 15.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3688, allocations: 0 / 411.2 MB, free: 15.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3688, allocations: 0 / 411.2 MB, free: 15.72 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.3688, allocations: 0 / 411.2 MB, free: 15.72 MB / 334.1 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.0005629/0.3694, allocations: 355.3 kB / 411.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.3694, allocations: 8.031 kB / 411.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.255e-05/0.3695, allocations: 16.88 kB / 411.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002455/0.3697, allocations: 176.4 kB / 411.8 MB, free: 15.09 MB / 334.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= pulse.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001056/0.3698, allocations: 42.19 kB / 411.8 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.434e-05/0.3698, allocations: 8.375 kB / 411.8 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003184/0.3702, allocations: 119.9 kB / 412 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.3702, allocations: 3.938 kB / 412 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.083e-05/0.3702, allocations: 0 / 412 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.3702, allocations: 0 / 412 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.104e-05/0.3703, allocations: 23.92 kB / 412 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002558/0.3706, allocations: 173.5 kB / 412.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002262/0.3708, allocations: 135.8 kB / 412.3 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.59e-05/0.3709, allocations: 20.86 kB / 412.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.05e-05/0.3709, allocations: 0 / 412.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.272e-05/0.3709, allocations: 38.56 kB / 412.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.143e-06/0.3709, allocations: 4 kB / 412.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002627/0.3712, allocations: 77.55 kB / 412.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.741e-05/0.3713, allocations: 63.34 kB / 412.5 MB, free: 14.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002038/0.3715, allocations: 101.9 kB / 412.6 MB, free: 14.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.755e-05/0.3715, allocations: 29.69 kB / 412.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.916e-05/0.3716, allocations: 84.14 kB / 412.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.754e-05/0.3716, allocations: 7.953 kB / 412.7 MB, free: 14.03 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.938e-05/0.3717, allocations: 17.72 kB / 412.7 MB, free: 14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.3718, allocations: 322.8 kB / 413 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.984e-05/0.3719, allocations: 8 kB / 413 MB, free: 13.67 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.859e-05/0.3719, allocations: 36.28 kB / 413.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.754e-05/0.372, allocations: 56.17 kB / 413.1 MB, free: 13.55 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.372, allocations: 0 / 413.1 MB, free: 13.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001904/0.3722, allocations: 69.58 kB / 413.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.3722, allocations: 11.94 kB / 413.2 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.3722, allocations: 0 / 413.2 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.3723, allocations: 4 kB / 413.2 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.195e-05/0.3723, allocations: 12.09 kB / 413.2 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.3723, allocations: 448 / 413.2 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.532e-05/0.3724, allocations: 4 kB / 413.2 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-06/0.3724, allocations: 0 / 413.2 MB, free: 13.45 MB / 334.1 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 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001118/0.3725, allocations: 121.8 kB / 413.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001752/0.3727, allocations: 69.56 kB / 413.4 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.211e-05/0.3727, allocations: 8.062 kB / 413.4 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.72e-06/0.3727, allocations: 7.984 kB / 413.4 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3727, allocations: 3.938 kB / 413.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.544e-06/0.3727, allocations: 4 kB / 413.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001856/0.3729, allocations: 157.7 kB / 413.6 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-06/0.3729, allocations: 0 / 413.6 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.212e-06/0.3729, allocations: 0 / 413.6 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.167e-06/0.373, allocations: 3.938 kB / 413.6 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.373, allocations: 4 kB / 413.6 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.373, allocations: 0 / 413.6 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.373, allocations: 3.938 kB / 413.6 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001495/0.3731, allocations: 93.06 kB / 413.7 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.954e-05/0.3732, allocations: 81.11 kB / 413.8 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.397e-05/0.3732, allocations: 7.938 kB / 413.8 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.208e-05/0.3733, allocations: 4 kB / 413.8 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.856e-06/0.3733, allocations: 0 / 413.8 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/0.3733, allocations: 3.984 kB / 413.8 MB, free: 12.77 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.236e-05/0.3734, allocations: 91.22 kB / 413.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3734, allocations: 0 / 413.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001929/0.3736, allocations: 4 kB / 413.9 MB, free: 12.68 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001294/0.3737, allocations: 107.2 kB / 414 MB, free: 12.57 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001387/0.3739, allocations: 35.92 kB / 414 MB, free: 12.53 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3739, allocations: 0 / 414 MB, free: 12.53 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.41e-07/0.3739, allocations: 0 / 414 MB, free: 12.53 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007678/0.3747, allocations: 0.726 MB / 414.8 MB, free: 11.78 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003112/0.375, allocations: 125.9 kB / 414.9 MB, free: 11.63 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003767/0.3754, allocations: 0.6846 MB / 415.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.744e-05/0.3754, allocations: 3.984 kB / 415.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.714e-05/0.3754, allocations: 11.44 kB / 415.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3755, allocations: 0 / 415.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of Templates: time 0.003309/0.3788, allocations: 0.6792 MB / 416.3 MB, free: 10.24 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches