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.001466/0.001466, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001358/0.001358, allocations: 160.5 kB / 24.55 MB, free: 16 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 0.9737/0.9737, allocations: 177 MB / 204.8 MB, free: 5.566 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.513e-06/1.513e-06, allocations: 0 / 272.9 MB, free: 1.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.135e-05/2.286e-05, allocations: 9.266 kB / 272.9 MB, free: 1.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00274/0.002763, allocations: 1.49 MB / 274.4 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002159/0.002979, allocations: 35.91 kB / 274.4 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.555e-05/0.003044, allocations: 3.938 kB / 274.5 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.343e-05/0.003078, allocations: 7.938 kB / 274.5 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.06e-05/0.003138, allocations: 3.938 kB / 274.5 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002559/0.003394, allocations: 31.95 kB / 274.5 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001029/0.003497, allocations: 43.84 kB / 274.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.592e-05/0.003593, allocations: 0 / 274.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.862e-05/0.003672, allocations: 27.97 kB / 274.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.811e-05/0.00371, allocations: 15.92 kB / 274.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.521e-05/0.003735, allocations: 7.984 kB / 274.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.183e-05/0.003747, allocations: 4 kB / 274.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.252e-05/0.00377, allocations: 4 kB / 274.6 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.167e-05/0.003801, allocations: 8 kB / 274.6 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001077/0.003909, allocations: 39.83 kB / 274.6 MB, free: 15.7 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.003913, allocations: 4 kB / 274.6 MB, free: 15.69 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.003914, allocations: 0 / 274.6 MB, free: 15.69 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.003918, allocations: 0 / 274.6 MB, free: 15.69 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.0004333/0.004352, allocations: 372.6 kB / 275 MB, free: 15.29 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.004394, allocations: 15.92 kB / 275 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.713e-05/0.004441, allocations: 8.891 kB / 275 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001684/0.004609, allocations: 128.5 kB / 275.2 MB, free: 15.11 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 9.36e-05/0.004703, allocations: 34.27 kB / 275.2 MB, free: 15.07 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.664e-05/0.00472, allocations: 8.375 kB / 275.2 MB, free: 15.07 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002827/0.005002, allocations: 138.1 kB / 275.3 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.00501, allocations: 192 / 275.3 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.005022, allocations: 4.375 kB / 275.3 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.005031, allocations: 4.125 kB / 275.3 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.639e-05/0.005077, allocations: 11.98 kB / 275.4 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001107/0.005188, allocations: 120.6 kB / 275.5 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001746/0.005363, allocations: 63.11 kB / 275.5 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.791e-05/0.005411, allocations: 27.67 kB / 275.6 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.193e-06/0.005418, allocations: 0 / 275.6 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.318e-05/0.005441, allocations: 33.39 kB / 275.6 MB, free: 14.59 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 1.312e-06/0.005442, allocations: 0 / 275.6 MB, free: 14.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001879/0.00563, allocations: 65.69 kB / 275.7 MB, free: 14.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.132e-05/0.005682, allocations: 63.34 kB / 275.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.719e-05/0.005769, allocations: 165.9 kB / 275.9 MB, free: 14.27 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.341e-05/0.005782, allocations: 29.7 kB / 275.9 MB, free: 14.23 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.599e-05/0.005828, allocations: 130.9 kB / 276 MB, free: 14.1 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.718e-05/0.005845, allocations: 3.953 kB / 276 MB, free: 14.1 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.488e-05/0.00588, allocations: 27.36 kB / 276.1 MB, free: 14.06 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.006012, allocations: 0.4884 MB / 276.6 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.223e-05/0.006024, allocations: 0 / 276.6 MB, free: 13.56 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.544e-05/0.006049, allocations: 27.36 kB / 276.6 MB, free: 13.53 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.532e-05/0.006085, allocations: 23.38 kB / 276.6 MB, free: 13.5 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.006087, allocations: 3.938 kB / 276.6 MB, free: 13.49 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.344e-05/0.006161, allocations: 49.64 kB / 276.7 MB, free: 13.44 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.006174, allocations: 4 kB / 276.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.006179, allocations: 0.5 kB / 276.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.006195, allocations: 4 kB / 276.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.342e-05/0.006239, allocations: 7.984 kB / 276.7 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.006245, allocations: 3.938 kB / 276.7 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.051e-05/0.006266, allocations: 12 kB / 276.7 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.951e-06/0.006272, allocations: 3.938 kB / 276.7 MB, free: 13.4 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 8.005e-05/0.006352, allocations: 164.5 kB / 276.9 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.728e-05/0.006439, allocations: 61.64 kB / 276.9 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.672e-05/0.006466, allocations: 8.125 kB / 276.9 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.006467, allocations: 0 / 276.9 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.006471, allocations: 0 / 276.9 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.239e-06/0.006476, allocations: 7.938 kB / 276.9 MB, free: 13.15 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.639e-05/0.006543, allocations: 112.6 kB / 277 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.006546, allocations: 4 kB / 277 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.959e-06/0.006551, allocations: 0 / 277 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.006553, allocations: 0 / 277 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.487e-06/0.006563, allocations: 4 kB / 277.1 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.006564, allocations: 0 / 277.1 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.006567, allocations: 3.984 kB / 277.1 MB, free: 12.99 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000124/0.006691, allocations: 104.5 kB / 277.2 MB, free: 12.87 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.141e-05/0.006702, allocations: 4 kB / 277.2 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.511e-05/0.006727, allocations: 4.047 kB / 277.2 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.394e-05/0.006771, allocations: 11.98 kB / 277.2 MB, free: 12.85 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.826e-06/0.006774, allocations: 0 / 277.2 MB, free: 12.85 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.153e-06/0.006781, allocations: 3.984 kB / 277.2 MB, free: 12.84 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.992e-05/0.006831, allocations: 127.2 kB / 277.3 MB, free: 12.72 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.006831, allocations: 0 / 277.3 MB, free: 12.72 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002138/0.007045, allocations: 15.94 kB / 277.3 MB, free: 12.7 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.26e-05/0.007127, allocations: 95.25 kB / 277.4 MB, free: 12.6 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001124/0.00724, allocations: 35.55 kB / 277.4 MB, free: 12.56 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.007242, allocations: 4.125 kB / 277.5 MB, free: 12.55 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.22e-07/0.007243, allocations: 0 / 277.5 MB, free: 12.55 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000733/0.007976, allocations: 1.065 MB / 278.5 MB, free: 11.46 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002868/0.008262, allocations: 128.1 kB / 278.6 MB, free: 11.31 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.871e-05/0.008301, allocations: 59.34 kB / 278.7 MB, free: 11.23 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.672e-05/0.008318, allocations: 4 kB / 278.7 MB, free: 11.23 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.497e-05/0.008343, allocations: 8.5 kB / 278.7 MB, free: 11.22 MB / 266.7 MB Notification: Performance of SimCode: time 5.81e-07/0.008343, allocations: 0 / 278.7 MB, free: 11.22 MB / 266.7 MB Notification: Performance of Templates: time 0.002871/0.01121, allocations: 0.7607 MB / 279.5 MB, free: 10.48 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.796474025119096]