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.001344/0.001344, allocations: 88.28 kB / 21.43 MB, free: 3.133 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.006027/0.006027, allocations: 158 kB / 24.7 MB, free: 9.418 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 0.861/0.861, allocations: 177 MB / 204.9 MB, free: 5.734 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.343e-06/1.343e-06, allocations: 0 / 325.8 MB, free: 15.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.75e-05/1.884e-05, allocations: 7.203 kB / 325.8 MB, free: 15.26 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001604/0.001623, allocations: 1.458 MB / 327.2 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001468/0.001769, allocations: 39.84 kB / 327.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.503e-05/0.001815, allocations: 4 kB / 327.3 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.144e-05/0.001836, allocations: 3.938 kB / 327.3 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.351e-05/0.001879, allocations: 7.938 kB / 327.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001852/0.002065, allocations: 27.95 kB / 327.3 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.894e-05/0.002134, allocations: 35.92 kB / 327.4 MB, free: 13.67 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.374e-05/0.002207, allocations: 11.98 kB / 327.4 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.585e-05/0.002263, allocations: 23.92 kB / 327.4 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.441e-05/0.002288, allocations: 7.984 kB / 327.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.076e-05/0.002308, allocations: 4 kB / 327.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.685e-06/0.002316, allocations: 7.938 kB / 327.4 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.141e-05/0.002337, allocations: 19.91 kB / 327.4 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.984e-05/0.002357, allocations: 16 kB / 327.4 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.821e-05/0.002445, allocations: 47.8 kB / 327.5 MB, free: 13.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.703e-06/0.002447, allocations: 0 / 327.5 MB, free: 13.53 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.002448, allocations: 0 / 327.5 MB, free: 13.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.995e-06/0.002451, allocations: 4 kB / 327.5 MB, free: 13.53 MB / 298.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.0003112/0.002762, allocations: 266.3 kB / 327.8 MB, free: 13.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.002794, allocations: 11.98 kB / 327.8 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.98e-05/0.002824, allocations: 8.891 kB / 327.8 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001386/0.002962, allocations: 121.7 kB / 327.9 MB, free: 13.07 MB / 298.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.338e-05/0.003036, allocations: 34.25 kB / 327.9 MB, free: 13.03 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.347e-06/0.003045, allocations: 8.375 kB / 327.9 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001995/0.003244, allocations: 127.8 kB / 328.1 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.653e-06/0.003251, allocations: 192 / 328.1 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.003259, allocations: 8.375 kB / 328.1 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.003264, allocations: 4.125 kB / 328.1 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.123e-05/0.003305, allocations: 19.98 kB / 328.1 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.398e-05/0.003379, allocations: 109.2 kB / 328.2 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001116/0.00349, allocations: 62.61 kB / 328.3 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.891e-05/0.003519, allocations: 20.86 kB / 328.3 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.174e-06/0.003526, allocations: 4 kB / 328.3 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.287e-05/0.003539, allocations: 30.56 kB / 328.3 MB, free: 12.58 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 7.11e-07/0.00354, allocations: 0 / 328.3 MB, free: 12.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001364/0.003676, allocations: 81.56 kB / 328.4 MB, free: 12.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.722e-05/0.003714, allocations: 55.39 kB / 328.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.026e-05/0.003764, allocations: 105.8 kB / 328.5 MB, free: 12.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.081e-05/0.003775, allocations: 33.7 kB / 328.6 MB, free: 12.28 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.433e-05/0.003799, allocations: 84.12 kB / 328.7 MB, free: 12.19 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.989e-06/0.003809, allocations: 3.953 kB / 328.7 MB, free: 12.19 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.134e-05/0.00383, allocations: 21.72 kB / 328.7 MB, free: 12.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.746e-05/0.003908, allocations: 318.8 kB / 329 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.041e-05/0.003918, allocations: 3.984 kB / 329 MB, free: 11.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.406e-05/0.003932, allocations: 13.72 kB / 329 MB, free: 11.82 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.549e-05/0.003958, allocations: 29.66 kB / 329 MB, free: 11.78 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.003959, allocations: 0 / 329 MB, free: 11.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 4.627e-05/0.004005, allocations: 53.69 kB / 329.1 MB, free: 11.72 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.758e-06/0.004015, allocations: 4 kB / 329.1 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.004019, allocations: 4.062 kB / 329.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.275e-06/0.004028, allocations: 4 kB / 329.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.132e-05/0.004059, allocations: 7.938 kB / 329.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.004064, allocations: 3.938 kB / 329.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.947e-06/0.004073, allocations: 0 / 329.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.786e-06/0.004075, allocations: 0 / 329.1 MB, free: 11.7 MB / 298.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 5.141e-05/0.004127, allocations: 113.8 kB / 329.2 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.468e-05/0.004182, allocations: 61.64 kB / 329.3 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.534e-05/0.004197, allocations: 12.73 kB / 329.3 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.0042, allocations: 7.984 kB / 329.3 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.004203, allocations: 7.938 kB / 329.3 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.004206, allocations: 3.938 kB / 329.3 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.335e-05/0.004249, allocations: 109.3 kB / 329.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.00425, allocations: 0 / 329.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.234e-06/0.004252, allocations: 0 / 329.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.22e-07/0.004253, allocations: 0 / 329.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.769e-06/0.004258, allocations: 3.938 kB / 329.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.81e-07/0.004258, allocations: 4 kB / 329.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-07/0.004259, allocations: 0 / 329.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.727e-05/0.004326, allocations: 85.06 kB / 329.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.815e-06/0.004334, allocations: 7.953 kB / 329.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.364e-05/0.004347, allocations: 11.98 kB / 329.5 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.279e-05/0.00437, allocations: 4 kB / 329.5 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.523e-06/0.004372, allocations: 0 / 329.5 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-06/0.004376, allocations: 4 kB / 329.5 MB, free: 11.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.448e-05/0.004401, allocations: 87.27 kB / 329.6 MB, free: 11.12 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.004401, allocations: 0 / 329.6 MB, free: 11.12 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001198/0.004521, allocations: 11.88 kB / 329.6 MB, free: 11.11 MB / 298.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 5.626e-05/0.004577, allocations: 95.25 kB / 329.7 MB, free: 11.01 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.037e-05/0.004647, allocations: 31.98 kB / 329.8 MB, free: 10.98 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-06/0.004649, allocations: 4.062 kB / 329.8 MB, free: 10.97 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.8e-07/0.004649, allocations: 0 / 329.8 MB, free: 10.97 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000385/0.005034, allocations: 0.7142 MB / 330.5 MB, free: 10.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000186/0.00522, allocations: 154.4 kB / 330.6 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.581e-05/0.005256, allocations: 71.33 kB / 330.7 MB, free: 9.961 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.705e-05/0.005273, allocations: 8.5 kB / 330.7 MB, free: 9.953 MB / 298.7 MB Notification: Performance of SimCode: time 5.71e-07/0.005273, allocations: 0 / 330.7 MB, free: 9.953 MB / 298.7 MB Notification: Performance of Templates: time 0.001281/0.006554, allocations: 0.7546 MB / 331.5 MB, free: 9.207 MB / 298.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=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.122174360789359]