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.001922/0.001922, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 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.002167/0.002167, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 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.498/1.498, allocations: 230.3 MB / 258 MB, free: 8.238 MB / 206.1 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 0.002229/0.002229, allocations: 75.88 kB / 378.8 MB, free: 2.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2558, allocations: 53.36 MB / 432.1 MB, free: 7.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002752/0.2585, allocations: 1.453 MB / 433.6 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002168/0.2588, allocations: 43.91 kB / 433.6 MB, free: 5.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.732e-05/0.2588, allocations: 3.938 kB / 433.6 MB, free: 5.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.665e-05/0.2589, allocations: 3.984 kB / 433.6 MB, free: 5.582 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.196e-05/0.2589, allocations: 3.938 kB / 433.6 MB, free: 5.578 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.2592, allocations: 31.89 kB / 433.7 MB, free: 5.547 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001045/0.2593, allocations: 39.92 kB / 433.7 MB, free: 5.508 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.2594, allocations: 15.91 kB / 433.7 MB, free: 5.492 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.724e-05/0.2594, allocations: 12 kB / 433.7 MB, free: 5.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.098e-05/0.2595, allocations: 19.92 kB / 433.7 MB, free: 5.461 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.027e-05/0.2595, allocations: 4 kB / 433.7 MB, free: 5.457 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.325e-05/0.2595, allocations: 8 kB / 433.7 MB, free: 5.449 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.585e-05/0.2595, allocations: 11.92 kB / 433.8 MB, free: 5.438 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.606e-05/0.2596, allocations: 15.92 kB / 433.8 MB, free: 5.422 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001114/0.2597, allocations: 43.62 kB / 433.8 MB, free: 5.383 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.2597, allocations: 3.984 kB / 433.8 MB, free: 5.379 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2597, allocations: 0 / 433.8 MB, free: 5.379 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.2597, allocations: 0 / 433.8 MB, free: 5.379 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.0004872/0.2602, allocations: 268.2 kB / 434.1 MB, free: 5.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.2602, allocations: 12.03 kB / 434.1 MB, free: 5.078 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.181e-05/0.2603, allocations: 8.891 kB / 434.1 MB, free: 5.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002081/0.2605, allocations: 126.5 kB / 434.2 MB, free: 4.922 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.0001059/0.2606, allocations: 42.25 kB / 434.3 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.211e-05/0.2606, allocations: 384 / 434.3 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003306/0.2609, allocations: 119.9 kB / 434.4 MB, free: 4.746 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.2609, allocations: 3.938 kB / 434.4 MB, free: 4.742 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.2609, allocations: 0 / 434.4 MB, free: 4.742 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.261, allocations: 7.938 kB / 434.4 MB, free: 4.734 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.914e-05/0.261, allocations: 19.92 kB / 434.4 MB, free: 4.715 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001679/0.2612, allocations: 148.6 kB / 434.6 MB, free: 4.527 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001792/0.2614, allocations: 54.69 kB / 434.6 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.154e-05/0.2614, allocations: 24.84 kB / 434.6 MB, free: 4.438 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.058e-05/0.2614, allocations: 0 / 434.6 MB, free: 4.438 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.2615, allocations: 38.5 kB / 434.7 MB, free: 4.391 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 9.72e-07/0.2615, allocations: 0 / 434.7 MB, free: 4.391 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002262/0.2617, allocations: 77.62 kB / 434.8 MB, free: 4.309 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.355e-05/0.2618, allocations: 59.41 kB / 434.8 MB, free: 4.238 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.843e-05/0.2619, allocations: 105.8 kB / 434.9 MB, free: 4.125 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.648e-05/0.2619, allocations: 25.7 kB / 434.9 MB, free: 4.094 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.568e-05/0.2619, allocations: 84.14 kB / 435 MB, free: 4.008 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.753e-05/0.2619, allocations: 7.938 kB / 435 MB, free: 4 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.809e-05/0.262, allocations: 25.72 kB / 435.1 MB, free: 3.969 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.2621, allocations: 310.8 kB / 435.4 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.194e-05/0.2621, allocations: 11.98 kB / 435.4 MB, free: 3.645 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.78e-05/0.2622, allocations: 40.23 kB / 435.4 MB, free: 3.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.043e-05/0.2623, allocations: 56.22 kB / 435.5 MB, free: 3.52 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.2623, allocations: 0 / 435.5 MB, free: 3.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001101/0.2624, allocations: 69.58 kB / 435.5 MB, free: 3.445 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.2624, allocations: 7.938 kB / 435.5 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.2624, allocations: 8.156 kB / 435.5 MB, free: 3.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.2624, allocations: 0 / 435.5 MB, free: 3.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.544e-05/0.2624, allocations: 7.938 kB / 435.6 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.2625, allocations: 4 kB / 435.6 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.287e-05/0.2625, allocations: 0 / 435.6 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.102e-06/0.2625, allocations: 4.156 kB / 435.6 MB, free: 3.414 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 8.9e-05/0.2626, allocations: 113.8 kB / 435.7 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.2627, allocations: 69.56 kB / 435.7 MB, free: 3.219 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.544e-05/0.2627, allocations: 8.047 kB / 435.8 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.2627, allocations: 4 kB / 435.8 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.2627, allocations: 4.375 kB / 435.8 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.2627, allocations: 4 kB / 435.8 MB, free: 3.195 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001078/0.2628, allocations: 132.8 kB / 435.9 MB, free: 3.023 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.2628, allocations: 4 kB / 435.9 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.047e-06/0.2628, allocations: 3.984 kB / 435.9 MB, free: 3.016 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.2628, allocations: 3.938 kB / 435.9 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.2629, allocations: 0 / 435.9 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.2629, allocations: 4 kB / 435.9 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.2629, allocations: 3.984 kB / 435.9 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001426/0.263, allocations: 89.08 kB / 436 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.211e-05/0.263, allocations: 15.86 kB / 436 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.167e-05/0.263, allocations: 7.938 kB / 436 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.669e-05/0.2631, allocations: 4 kB / 436 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.747e-06/0.2631, allocations: 0 / 436 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.2631, allocations: 0 / 436 MB, free: 2.871 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.518e-05/0.2631, allocations: 87.27 kB / 436.1 MB, free: 2.785 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2631, allocations: 0 / 436.1 MB, free: 2.785 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001921/0.2633, allocations: 12 kB / 436.1 MB, free: 2.773 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.0001297/0.2635, allocations: 99.25 kB / 436.2 MB, free: 2.668 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001411/0.2636, allocations: 35.92 kB / 436.3 MB, free: 2.633 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2636, allocations: 0 / 436.3 MB, free: 2.633 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.11e-07/0.2636, allocations: 0 / 436.3 MB, free: 2.633 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007562/0.2644, allocations: 0.7183 MB / 437 MB, free: 1.891 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000327/0.2647, allocations: 128.6 kB / 437.1 MB, free: 1.742 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003103/0.265, allocations: 0.6807 MB / 437.8 MB, free: 1.035 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.248e-05/0.265, allocations: 4 kB / 437.8 MB, free: 1.031 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.499e-05/0.2651, allocations: 11.44 kB / 437.8 MB, free: 1.02 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2651, allocations: 0 / 437.8 MB, free: 1.02 MB / 334.1 MB Notification: Performance of Templates: time 0.003304/0.2684, allocations: 0.7208 MB / 438.5 MB, free: 312 kB / 334.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 480] 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.567296690307558]