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.001133/0.001133, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001008/0.001008, allocations: 167.7 kB / 24.99 MB, free: 8.219 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 1.043/1.043, allocations: 177 MB / 205.2 MB, free: 5.523 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 2.124e-06/2.124e-06, allocations: 0 / 273 MB, free: 1.723 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.574e-05/2.786e-05, allocations: 2.312 kB / 273 MB, free: 1.719 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002131/0.002159, allocations: 1.493 MB / 274.5 MB, free: 220 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002021/0.002361, allocations: 39.84 kB / 274.5 MB, free: 180 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.332e-05/0.002425, allocations: 0 / 274.5 MB, free: 180 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.752e-05/0.002452, allocations: 7.922 kB / 274.5 MB, free: 172 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.776e-05/0.00251, allocations: 7.938 kB / 274.5 MB, free: 164 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002292/0.002739, allocations: 23.97 kB / 274.6 MB, free: 140 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.343e-05/0.002833, allocations: 43.84 kB / 274.6 MB, free: 96 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.267e-05/0.002925, allocations: 11.98 kB / 274.6 MB, free: 84 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.885e-05/0.002994, allocations: 19.98 kB / 274.6 MB, free: 64 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.182e-05/0.003026, allocations: 19.91 kB / 274.7 MB, free: 44 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.278e-05/0.003049, allocations: 4 kB / 274.7 MB, free: 40 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.227e-06/0.003058, allocations: 4 kB / 274.7 MB, free: 36 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.865e-05/0.003077, allocations: 4 kB / 274.7 MB, free: 32 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.695e-05/0.003103, allocations: 15.92 kB / 274.7 MB, free: 16 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001085/0.003212, allocations: 35.89 kB / 274.7 MB, free: 15.98 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.043e-06/0.003214, allocations: 0 / 274.7 MB, free: 15.98 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.003215, allocations: 0 / 274.7 MB, free: 15.98 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.003219, allocations: 0 / 274.7 MB, free: 15.98 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.0003962/0.003615, allocations: 376.6 kB / 275.1 MB, free: 15.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.003655, allocations: 11.98 kB / 275.1 MB, free: 15.56 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.967e-05/0.003705, allocations: 12.89 kB / 275.1 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001547/0.003859, allocations: 132.5 kB / 275.2 MB, free: 15.39 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 8.686e-05/0.003946, allocations: 42.25 kB / 275.3 MB, free: 15.35 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.839e-06/0.003956, allocations: 4.375 kB / 275.3 MB, free: 15.34 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002254/0.004181, allocations: 126.2 kB / 275.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.004191, allocations: 4.172 kB / 275.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.0042, allocations: 4.375 kB / 275.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.004208, allocations: 4.125 kB / 275.4 MB, free: 15.19 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.451e-05/0.004243, allocations: 8 kB / 275.4 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001005/0.004343, allocations: 124.6 kB / 275.5 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001428/0.004486, allocations: 55.17 kB / 275.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.452e-05/0.004521, allocations: 27.61 kB / 275.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.831e-06/0.004526, allocations: 0 / 275.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.138e-05/0.004548, allocations: 37.39 kB / 275.7 MB, free: 14.88 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 9.42e-07/0.004549, allocations: 0 / 275.7 MB, free: 14.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001661/0.004715, allocations: 69.69 kB / 275.7 MB, free: 14.81 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.68e-05/0.004762, allocations: 55.41 kB / 275.8 MB, free: 14.74 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.021e-05/0.004842, allocations: 169.9 kB / 276 MB, free: 14.56 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.137e-05/0.004853, allocations: 29.7 kB / 276 MB, free: 14.52 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.722e-05/0.00489, allocations: 134.8 kB / 276.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.126e-05/0.004902, allocations: 3.953 kB / 276.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.654e-05/0.004928, allocations: 23.38 kB / 276.1 MB, free: 14.35 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.005035, allocations: 0.4884 MB / 276.6 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.11e-05/0.005046, allocations: 7.922 kB / 276.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.989e-05/0.005066, allocations: 23.41 kB / 276.7 MB, free: 13.81 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.216e-05/0.005099, allocations: 31.38 kB / 276.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.005101, allocations: 0 / 276.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.479e-05/0.005155, allocations: 53.62 kB / 276.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.005167, allocations: 4 kB / 276.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.005172, allocations: 0 / 276.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.005184, allocations: 0 / 276.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.6e-05/0.00522, allocations: 4 kB / 276.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.503e-06/0.005227, allocations: 3.938 kB / 276.8 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.132e-05/0.005238, allocations: 4 kB / 276.8 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.086e-06/0.005241, allocations: 4.062 kB / 276.8 MB, free: 13.7 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 6.985e-05/0.005311, allocations: 169 kB / 276.9 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.798e-05/0.005379, allocations: 61.64 kB / 277 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.073e-05/0.0054, allocations: 8.125 kB / 277 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.005402, allocations: 3.984 kB / 277 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.005405, allocations: 0 / 277 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.005409, allocations: 3.938 kB / 277 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.309e-05/0.005462, allocations: 116.6 kB / 277.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.005464, allocations: 3.984 kB / 277.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.737e-06/0.005468, allocations: 0 / 277.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.00547, allocations: 4 kB / 277.1 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.054e-06/0.005477, allocations: 0 / 277.1 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.005478, allocations: 0 / 277.1 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.005478, allocations: 0 / 277.1 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.147e-05/0.00556, allocations: 104.3 kB / 277.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.405e-06/0.005568, allocations: 4 kB / 277.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.472e-05/0.005583, allocations: 4 kB / 277.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.226e-05/0.005615, allocations: 7.984 kB / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.304e-06/0.005618, allocations: 0 / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.457e-06/0.005621, allocations: 0 / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.717e-05/0.005658, allocations: 127.2 kB / 277.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005658, allocations: 7.938 kB / 277.4 MB, free: 13.01 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001201/0.005778, allocations: 11.94 kB / 277.4 MB, free: 13 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.549e-05/0.005864, allocations: 107.2 kB / 277.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.739e-05/0.005951, allocations: 23.62 kB / 277.5 MB, free: 12.85 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.005953, allocations: 0 / 277.5 MB, free: 12.85 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.2e-07/0.005954, allocations: 4 kB / 277.5 MB, free: 12.85 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005265/0.00648, allocations: 1.068 MB / 278.6 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002368/0.006717, allocations: 132.3 kB / 278.7 MB, free: 11.6 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.274e-05/0.00675, allocations: 67.34 kB / 278.8 MB, free: 11.51 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.869e-05/0.006768, allocations: 0 / 278.8 MB, free: 11.51 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.221e-05/0.00679, allocations: 8.5 kB / 278.8 MB, free: 11.5 MB / 266.7 MB Notification: Performance of SimCode: time 8.32e-07/0.006791, allocations: 4 kB / 278.8 MB, free: 11.5 MB / 266.7 MB Notification: Performance of Templates: time 0.002279/0.00907, allocations: 0.7579 MB / 279.5 MB, free: 10.75 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.873083301819861]