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.0009597/0.0009597, 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.0009931/0.0009931, 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.962/0.962, allocations: 177 MB / 204.8 MB, free: 5.586 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.362e-06/1.362e-06, allocations: 0 / 272.9 MB, free: 1.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.792e-05/1.929e-05, allocations: 9.203 kB / 272.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001796/0.001815, allocations: 1.498 MB / 274.4 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001782/0.001993, allocations: 39.78 kB / 274.4 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.329e-05/0.002046, allocations: 0 / 274.4 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.754e-05/0.002074, allocations: 7.922 kB / 274.5 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.43e-05/0.002128, allocations: 11.94 kB / 274.5 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002054/0.002334, allocations: 27.91 kB / 274.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 8.206e-05/0.002416, allocations: 39.91 kB / 274.5 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.784e-05/0.002503, allocations: 7.984 kB / 274.5 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.036e-05/0.002574, allocations: 23.92 kB / 274.6 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.982e-05/0.002604, allocations: 15.97 kB / 274.6 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.139e-05/0.002625, allocations: 8 kB / 274.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.001e-05/0.002635, allocations: 4 kB / 274.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.81e-05/0.002653, allocations: 7.938 kB / 274.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.572e-05/0.002679, allocations: 7.984 kB / 274.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 9.951e-05/0.002778, allocations: 39.83 kB / 274.6 MB, free: 15.71 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.00278, allocations: 0 / 274.6 MB, free: 15.71 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.52e-07/0.002781, allocations: 0 / 274.6 MB, free: 15.71 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.527e-06/0.002784, allocations: 0 / 274.6 MB, free: 15.71 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.0003584/0.003143, allocations: 368.6 kB / 275 MB, free: 15.31 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.003178, allocations: 11.98 kB / 275 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.187e-05/0.00322, allocations: 16.89 kB / 275 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001372/0.003357, allocations: 136.5 kB / 275.2 MB, free: 15.12 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.986e-05/0.003437, allocations: 37.06 kB / 275.2 MB, free: 15.09 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.033e-05/0.003447, allocations: 4.375 kB / 275.2 MB, free: 15.08 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000215/0.003662, allocations: 122.2 kB / 275.3 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.003669, allocations: 4.125 kB / 275.3 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.003684, allocations: 8.359 kB / 275.3 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.003693, allocations: 4.125 kB / 275.3 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.69e-05/0.00373, allocations: 15.94 kB / 275.4 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001019/0.003832, allocations: 124.6 kB / 275.5 MB, free: 14.76 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001398/0.003972, allocations: 51.17 kB / 275.5 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.723e-05/0.004009, allocations: 27.67 kB / 275.6 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.271e-06/0.004015, allocations: 0 / 275.6 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.033e-05/0.004035, allocations: 37.33 kB / 275.6 MB, free: 14.62 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 1.163e-06/0.004037, allocations: 0 / 275.6 MB, free: 14.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001542/0.004191, allocations: 65.69 kB / 275.7 MB, free: 14.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.004237, allocations: 59.41 kB / 275.7 MB, free: 14.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.893e-05/0.004306, allocations: 169.9 kB / 275.9 MB, free: 14.29 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.069e-05/0.004316, allocations: 29.7 kB / 275.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.786e-05/0.004354, allocations: 134.9 kB / 276 MB, free: 14.12 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.195e-05/0.004366, allocations: 3.953 kB / 276 MB, free: 14.12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.809e-05/0.004394, allocations: 23.38 kB / 276.1 MB, free: 14.09 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003676/0.004762, allocations: 496.1 kB / 276.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.145e-05/0.004773, allocations: 7.922 kB / 276.6 MB, free: 13.58 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.947e-05/0.004793, allocations: 23.81 kB / 276.6 MB, free: 13.55 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.879e-05/0.004821, allocations: 23.38 kB / 276.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.004824, allocations: 0 / 276.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.492e-05/0.004879, allocations: 61.62 kB / 276.7 MB, free: 13.45 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.081e-05/0.004889, allocations: 4 kB / 276.7 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.004894, allocations: 0 / 276.7 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.004905, allocations: 0 / 276.7 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.32e-05/0.004938, allocations: 4 kB / 276.7 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.555e-06/0.004945, allocations: 7.938 kB / 276.7 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.098e-05/0.004956, allocations: 0 / 276.7 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.827e-06/0.00496, allocations: 0 / 276.7 MB, free: 13.44 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 7.046e-05/0.005031, allocations: 168.5 kB / 276.8 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.804e-05/0.005089, allocations: 69.78 kB / 276.9 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.345e-05/0.005112, allocations: 8.156 kB / 276.9 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.005115, allocations: 7.922 kB / 276.9 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.005119, allocations: 0 / 276.9 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.005124, allocations: 7.938 kB / 276.9 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.432e-05/0.005178, allocations: 112.6 kB / 277 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.00518, allocations: 3.984 kB / 277.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.836e-06/0.005183, allocations: 0 / 277.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.005184, allocations: 0 / 277.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.005198, allocations: 4 kB / 277.1 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.005199, allocations: 0 / 277.1 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.005199, allocations: 4 kB / 277.1 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.736e-05/0.005277, allocations: 104.3 kB / 277.2 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.958e-06/0.005287, allocations: 4 kB / 277.2 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.399e-05/0.005301, allocations: 0 / 277.2 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.038e-05/0.005331, allocations: 11.98 kB / 277.2 MB, free: 12.87 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.454e-06/0.005334, allocations: 0 / 277.2 MB, free: 12.87 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-06/0.005338, allocations: 4 kB / 277.2 MB, free: 12.86 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.216e-05/0.00537, allocations: 127.2 kB / 277.3 MB, free: 12.74 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.00537, allocations: 0 / 277.3 MB, free: 12.74 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001169/0.005487, allocations: 11.94 kB / 277.3 MB, free: 12.73 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 6.51e-05/0.005552, allocations: 103.2 kB / 277.4 MB, free: 12.61 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.138e-05/0.005633, allocations: 23.69 kB / 277.4 MB, free: 12.59 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.005637, allocations: 7.938 kB / 277.4 MB, free: 12.58 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.51e-07/0.005638, allocations: 0 / 277.4 MB, free: 12.58 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004939/0.006132, allocations: 1.058 MB / 278.5 MB, free: 11.49 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002245/0.006356, allocations: 132.1 kB / 278.6 MB, free: 11.34 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.221e-05/0.006388, allocations: 63.34 kB / 278.7 MB, free: 11.25 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.671e-05/0.006405, allocations: 192 / 278.7 MB, free: 11.25 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.982e-05/0.006425, allocations: 12.5 kB / 278.7 MB, free: 11.24 MB / 266.7 MB Notification: Performance of SimCode: time 7.42e-07/0.006426, allocations: 4 kB / 278.7 MB, free: 11.24 MB / 266.7 MB Notification: Performance of Templates: time 0.002155/0.008581, allocations: 0.7835 MB / 279.5 MB, free: 10.47 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.659601343795657]