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.002366/0.002366, allocations: 99.53 kB / 20.96 MB, free: 3.457 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.002433/0.002433, allocations: 156.8 kB / 24.27 MB, free: 156 kB / 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.604/1.604, allocations: 177 MB / 204.5 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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.843e-06/1.843e-06, allocations: 0 / 272.2 MB, free: 1.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.472e-05/3.656e-05, allocations: 2.312 kB / 272.2 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002935/0.002972, allocations: 1.454 MB / 273.7 MB, free: 344 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002092/0.003181, allocations: 43.83 kB / 273.7 MB, free: 300 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.647e-05/0.003237, allocations: 4 kB / 273.7 MB, free: 296 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.589e-05/0.003263, allocations: 3.938 kB / 273.7 MB, free: 292 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.349e-05/0.003327, allocations: 7.984 kB / 273.7 MB, free: 284 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002396/0.003566, allocations: 31.84 kB / 273.7 MB, free: 252 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.491e-05/0.003661, allocations: 35.92 kB / 273.8 MB, free: 216 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.003763, allocations: 7.984 kB / 273.8 MB, free: 208 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.414e-05/0.003847, allocations: 27.91 kB / 273.8 MB, free: 180 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.921e-05/0.003886, allocations: 15.98 kB / 273.8 MB, free: 164 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.917e-05/0.003905, allocations: 0 / 273.8 MB, free: 164 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.102e-05/0.003917, allocations: 11.94 kB / 273.8 MB, free: 152 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.613e-05/0.003943, allocations: 11.94 kB / 273.9 MB, free: 140 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.442e-05/0.003977, allocations: 15.97 kB / 273.9 MB, free: 124 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000114/0.004091, allocations: 39.88 kB / 273.9 MB, free: 84 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.004094, allocations: 0 / 273.9 MB, free: 84 kB / 250.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.004094, allocations: 0 / 273.9 MB, free: 84 kB / 250.7 MB Notification: Performance of Transformations before backend: time 3.336e-06/0.004098, allocations: 0 / 273.9 MB, free: 84 kB / 250.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.0005882/0.004686, allocations: 372.2 kB / 274.3 MB, free: 15.68 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.004723, allocations: 11.98 kB / 274.3 MB, free: 15.67 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.364e-05/0.004776, allocations: 16.89 kB / 274.3 MB, free: 15.65 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001966/0.004973, allocations: 128.5 kB / 274.4 MB, free: 15.5 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 0.0001041/0.005077, allocations: 38.19 kB / 274.5 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.753e-05/0.005094, allocations: 8.312 kB / 274.5 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003238/0.005418, allocations: 133.5 kB / 274.6 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.005426, allocations: 192 / 274.6 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.097e-06/0.005435, allocations: 384 / 274.6 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.005444, allocations: 4.125 kB / 274.6 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.648e-05/0.00552, allocations: 27.92 kB / 274.6 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001845/0.005705, allocations: 124.6 kB / 274.8 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002283/0.005933, allocations: 67.17 kB / 274.8 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.367e-05/0.005997, allocations: 27.62 kB / 274.8 MB, free: 15.01 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.453e-05/0.006011, allocations: 4 kB / 274.9 MB, free: 15 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.584e-05/0.006047, allocations: 33.39 kB / 274.9 MB, free: 14.96 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 9.91e-07/0.006048, allocations: 0 / 274.9 MB, free: 14.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002513/0.006299, allocations: 81.61 kB / 275 MB, free: 14.88 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.549e-05/0.006365, allocations: 55.41 kB / 275 MB, free: 14.81 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001558/0.00652, allocations: 177.9 kB / 275.2 MB, free: 14.62 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/0.006549, allocations: 25.7 kB / 275.2 MB, free: 14.59 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.3e-05/0.006632, allocations: 134.9 kB / 275.3 MB, free: 14.45 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.593e-05/0.006648, allocations: 7.953 kB / 275.4 MB, free: 14.44 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.365e-05/0.006692, allocations: 23.38 kB / 275.4 MB, free: 14.41 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002741/0.006966, allocations: 496.1 kB / 275.9 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.798e-05/0.006984, allocations: 8 kB / 275.9 MB, free: 13.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.743e-05/0.007022, allocations: 23.38 kB / 275.9 MB, free: 13.88 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.955e-05/0.007071, allocations: 27.31 kB / 275.9 MB, free: 13.84 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.177e-06/0.007075, allocations: 3.984 kB / 275.9 MB, free: 13.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.853e-05/0.007164, allocations: 57.64 kB / 276 MB, free: 13.77 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.007183, allocations: 8 kB / 276 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.007188, allocations: 0 / 276 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.0072, allocations: 0 / 276 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.022e-05/0.00724, allocations: 4 kB / 276 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.00725, allocations: 7.922 kB / 276 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.429e-05/0.007264, allocations: 0 / 276 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.007271, allocations: 4 kB / 276 MB, free: 13.75 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 0.0001242/0.007395, allocations: 160.6 kB / 276.2 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.007529, allocations: 61.78 kB / 276.2 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.98e-05/0.007558, allocations: 24.16 kB / 276.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.00756, allocations: 0 / 276.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.007563, allocations: 448 / 276.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.007568, allocations: 3.938 kB / 276.2 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001158/0.007683, allocations: 124.6 kB / 276.4 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.007688, allocations: 4 kB / 276.4 MB, free: 13.33 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.502e-06/0.007695, allocations: 0 / 276.4 MB, free: 13.33 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-06/0.007696, allocations: 4 kB / 276.4 MB, free: 13.33 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.007704, allocations: 0 / 276.4 MB, free: 13.33 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.007705, allocations: 0 / 276.4 MB, free: 13.33 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.007706, allocations: 0 / 276.4 MB, free: 13.33 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001688/0.007875, allocations: 112.4 kB / 276.5 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.322e-05/0.007888, allocations: 3.953 kB / 276.5 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.852e-05/0.007906, allocations: 4 kB / 276.5 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.945e-05/0.007946, allocations: 4 kB / 276.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.484e-06/0.007948, allocations: 0 / 276.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.007958, allocations: 4 kB / 276.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.548e-05/0.008043, allocations: 135.1 kB / 276.6 MB, free: 13.05 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.008043, allocations: 0 / 276.6 MB, free: 13.05 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001801/0.008223, allocations: 11.94 kB / 276.6 MB, free: 13.04 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 0.0001171/0.008341, allocations: 95.25 kB / 276.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001308/0.008471, allocations: 39.67 kB / 276.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.008473, allocations: 0 / 276.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.51e-07/0.008474, allocations: 0 / 276.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001241/0.009714, allocations: 1.065 MB / 277.8 MB, free: 11.79 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003207/0.01004, allocations: 144 kB / 278 MB, free: 11.62 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.232e-05/0.01011, allocations: 67.34 kB / 278.1 MB, free: 11.54 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.243e-05/0.01013, allocations: 3.906 kB / 278.1 MB, free: 11.54 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.968e-05/0.01016, allocations: 12.69 kB / 278.1 MB, free: 11.52 MB / 266.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01016, allocations: 0 / 278.1 MB, free: 11.52 MB / 266.7 MB Notification: Performance of Templates: time 0.003673/0.01383, allocations: 0.766 MB / 278.8 MB, free: 10.77 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.492881397018209]