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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001132/0.001132, allocations: 81.91 kB / 21.42 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001108/0.001108, allocations: 169.7 kB / 24.82 MB, free: 9.273 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.029/1.029, allocations: 177 MB / 205.1 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] 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) 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=5011,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=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.873e-06/1.873e-06, allocations: 0 / 273.3 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.042e-05/2.229e-05, allocations: 2.312 kB / 273.3 MB, free: 1.227 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002032/0.002054, allocations: 1.494 MB / 274.8 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001864/0.002241, allocations: 43.83 kB / 274.9 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.54e-05/0.002306, allocations: 3.938 kB / 274.9 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.454e-05/0.002331, allocations: 0 / 274.9 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.804e-05/0.002389, allocations: 3.938 kB / 274.9 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002089/0.002598, allocations: 27.97 kB / 274.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 7.739e-05/0.002675, allocations: 43.84 kB / 274.9 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.188e-05/0.002757, allocations: 8 kB / 274.9 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.689e-05/0.002834, allocations: 23.97 kB / 275 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.97e-05/0.002864, allocations: 15.92 kB / 275 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.846e-05/0.002882, allocations: 4 kB / 275 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.003e-06/0.002889, allocations: 0 / 275 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.174e-05/0.002911, allocations: 15.97 kB / 275 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.405e-05/0.002935, allocations: 11.94 kB / 275 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 8.91e-05/0.003024, allocations: 35.83 kB / 275 MB, free: 15.48 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.003027, allocations: 0 / 275 MB, free: 15.48 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.003028, allocations: 4 kB / 275.1 MB, free: 15.48 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.376e-06/0.003031, allocations: 0 / 275.1 MB, free: 15.48 MB / 266.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.0003328/0.003364, allocations: 372.6 kB / 275.4 MB, free: 15.08 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.003401, allocations: 15.98 kB / 275.4 MB, free: 15.06 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.181e-05/0.003433, allocations: 8.891 kB / 275.4 MB, free: 15.05 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001236/0.003557, allocations: 128.5 kB / 275.6 MB, free: 14.9 MB / 266.7 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 7.292e-05/0.00363, allocations: 41.38 kB / 275.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.646e-06/0.003638, allocations: 4.375 kB / 275.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001776/0.003816, allocations: 126.2 kB / 275.7 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.003822, allocations: 192 / 275.7 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.472e-06/0.003829, allocations: 384 / 275.7 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.003834, allocations: 4.125 kB / 275.7 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.75e-05/0.003862, allocations: 15.98 kB / 275.8 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.945e-05/0.003941, allocations: 101.2 kB / 275.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001114/0.004053, allocations: 63.08 kB / 275.9 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.218e-05/0.004075, allocations: 15.69 kB / 275.9 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.502e-06/0.004081, allocations: 4 kB / 275.9 MB, free: 14.47 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.066e-05/0.004102, allocations: 37.39 kB / 276 MB, free: 14.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 7.81e-07/0.004103, allocations: 0 / 276 MB, free: 14.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001268/0.00423, allocations: 69.61 kB / 276 MB, free: 14.35 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.234e-05/0.004272, allocations: 55.41 kB / 276.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.256e-05/0.004335, allocations: 166.3 kB / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.526e-06/0.004343, allocations: 29.7 kB / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.371e-05/0.004377, allocations: 130.9 kB / 276.4 MB, free: 13.94 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.092e-05/0.004388, allocations: 7.891 kB / 276.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.531e-05/0.004413, allocations: 23.38 kB / 276.4 MB, free: 13.9 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.004527, allocations: 0.4961 MB / 276.9 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.464e-06/0.004534, allocations: 0 / 276.9 MB, free: 13.39 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.297e-05/0.004557, allocations: 23.38 kB / 277 MB, free: 13.36 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.968e-05/0.004587, allocations: 31.38 kB / 277 MB, free: 13.32 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.00459, allocations: 4 kB / 277 MB, free: 13.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.137e-05/0.004641, allocations: 45.69 kB / 277 MB, free: 13.27 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/0.004653, allocations: 4 kB / 277 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.004657, allocations: 7.938 kB / 277.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.426e-06/0.004666, allocations: 0 / 277.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.936e-05/0.004695, allocations: 4 kB / 277.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.256e-06/0.004698, allocations: 4.062 kB / 277.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.183e-05/0.00471, allocations: 3.938 kB / 277.1 MB, free: 13.24 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.826e-06/0.004713, allocations: 0 / 277.1 MB, free: 13.24 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,pulse.counter) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 6.335e-05/0.004776, allocations: 164.6 kB / 277.2 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.067e-05/0.004827, allocations: 53.66 kB / 277.3 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.203e-05/0.004849, allocations: 12.11 kB / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.00485, allocations: 0 / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-06/0.004852, allocations: 0 / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.004855, allocations: 4 kB / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.253e-05/0.004907, allocations: 97.2 kB / 277.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.004908, allocations: 7.938 kB / 277.4 MB, free: 12.87 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.408e-06/0.004913, allocations: 3.984 kB / 277.4 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.004914, allocations: 0 / 277.4 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.42e-06/0.00492, allocations: 4 kB / 277.4 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.81e-07/0.00492, allocations: 0 / 277.4 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.004922, allocations: 0 / 277.4 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.133e-05/0.004963, allocations: 68.39 kB / 277.5 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.385e-06/0.004971, allocations: 3.953 kB / 277.5 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.264e-05/0.004984, allocations: 7.922 kB / 277.5 MB, free: 12.76 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.458e-05/0.005018, allocations: 8 kB / 277.5 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.194e-06/0.005021, allocations: 0 / 277.5 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.721e-06/0.005026, allocations: 8 kB / 277.5 MB, free: 12.74 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.556e-05/0.005062, allocations: 131.2 kB / 277.6 MB, free: 12.61 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.005062, allocations: 0 / 277.6 MB, free: 12.61 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001187/0.005181, allocations: 4 kB / 277.6 MB, free: 12.61 MB / 266.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.147e-05/0.005262, allocations: 107.2 kB / 277.7 MB, free: 12.49 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 6.318e-05/0.005325, allocations: 19.69 kB / 277.8 MB, free: 12.47 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.005327, allocations: 0 / 277.8 MB, free: 12.47 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.11e-07/0.005327, allocations: 0 / 277.8 MB, free: 12.47 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004727/0.0058, allocations: 1.065 MB / 278.8 MB, free: 11.38 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000204/0.006004, allocations: 136.2 kB / 279 MB, free: 11.21 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.116e-05/0.006035, allocations: 59.34 kB / 279 MB, free: 11.14 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.851e-05/0.006054, allocations: 0 / 279 MB, free: 11.14 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.085e-05/0.006105, allocations: 82.19 kB / 279.1 MB, free: 11.05 MB / 266.7 MB Notification: Performance of SimCode: time 6.52e-07/0.006105, allocations: 0 / 279.1 MB, free: 11.05 MB / 266.7 MB Notification: Performance of Templates: time 0.002042/0.008147, allocations: 0.7962 MB / 279.9 MB, free: 10.28 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.618363071233034]