Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008519/0.0008519, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.018/1.018, allocations: 173.3 MB / 201.1 MB, free: 8.961 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 0 / 268 MB, free: 6.301 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.192e-05/3.407e-05, allocations: 6.25 kB / 268 MB, free: 6.293 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00263/0.002664, allocations: 1.475 MB / 269.5 MB, free: 4.809 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002064/0.002871, allocations: 39.84 kB / 269.5 MB, free: 4.77 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.072e-05/0.002932, allocations: 0 / 269.5 MB, free: 4.77 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.115e-05/0.002963, allocations: 7.938 kB / 269.5 MB, free: 4.762 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.642e-05/0.003019, allocations: 0 / 269.5 MB, free: 4.762 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002296/0.003249, allocations: 31.91 kB / 269.5 MB, free: 4.73 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.465e-05/0.003343, allocations: 47.83 kB / 269.6 MB, free: 4.684 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.75e-05/0.003441, allocations: 8 kB / 269.6 MB, free: 4.676 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.492e-05/0.003516, allocations: 15.98 kB / 269.6 MB, free: 4.66 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.372e-05/0.00355, allocations: 19.91 kB / 269.6 MB, free: 4.641 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.312e-05/0.003573, allocations: 4 kB / 269.6 MB, free: 4.637 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.022e-05/0.003583, allocations: 4 kB / 269.6 MB, free: 4.633 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.195e-05/0.003605, allocations: 7.984 kB / 269.6 MB, free: 4.625 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.074e-05/0.003636, allocations: 15.94 kB / 269.7 MB, free: 4.609 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001063/0.003742, allocations: 35.89 kB / 269.7 MB, free: 4.574 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.003744, allocations: 0 / 269.7 MB, free: 4.574 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.003745, allocations: 0 / 269.7 MB, free: 4.574 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.003751, allocations: 0 / 269.7 MB, free: 4.574 MB / 250.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.0004101/0.004161, allocations: 372.6 kB / 270.1 MB, free: 4.172 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.004201, allocations: 8.031 kB / 270.1 MB, free: 4.164 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.683e-05/0.004248, allocations: 8.891 kB / 270.1 MB, free: 4.156 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001609/0.004409, allocations: 132.5 kB / 270.2 MB, free: 4 MB / 250.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.696e-05/0.004496, allocations: 42.25 kB / 270.2 MB, free: 3.953 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.283e-05/0.004509, allocations: 8.375 kB / 270.3 MB, free: 3.945 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002416/0.00475, allocations: 138.1 kB / 270.4 MB, free: 3.793 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.802e-06/0.004757, allocations: 192 / 270.4 MB, free: 3.793 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-06/0.004767, allocations: 384 / 270.4 MB, free: 3.793 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.004775, allocations: 4.125 kB / 270.4 MB, free: 3.789 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.801e-05/0.004813, allocations: 11.98 kB / 270.4 MB, free: 3.777 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001134/0.004926, allocations: 120.6 kB / 270.5 MB, free: 3.625 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000153/0.005079, allocations: 55.17 kB / 270.6 MB, free: 3.559 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.317e-05/0.005113, allocations: 23.69 kB / 270.6 MB, free: 3.531 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.921e-06/0.005119, allocations: 0 / 270.6 MB, free: 3.531 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.073e-05/0.005139, allocations: 45.31 kB / 270.6 MB, free: 3.477 MB / 250.7 MB Notification: Performance of pre-optimization done (n=5): time 7.81e-07/0.00514, allocations: 0 / 270.6 MB, free: 3.477 MB / 250.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001584/0.005298, allocations: 69.64 kB / 270.7 MB, free: 3.402 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.373e-05/0.005342, allocations: 55.41 kB / 270.8 MB, free: 3.336 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.289e-05/0.005415, allocations: 170 kB / 270.9 MB, free: 3.152 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.179e-05/0.005427, allocations: 29.7 kB / 271 MB, free: 3.117 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.8e-05/0.005465, allocations: 126.9 kB / 271.1 MB, free: 2.988 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.442e-05/0.005479, allocations: 7.891 kB / 271.1 MB, free: 2.98 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.641e-05/0.005506, allocations: 27.38 kB / 271.1 MB, free: 2.945 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.00562, allocations: 0.4923 MB / 271.6 MB, free: 2.441 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.193e-05/0.005632, allocations: 4.188 kB / 271.6 MB, free: 2.438 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.046e-05/0.005652, allocations: 19.38 kB / 271.6 MB, free: 2.41 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.832e-05/0.005691, allocations: 39.36 kB / 271.7 MB, free: 2.363 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.005693, allocations: 0 / 271.7 MB, free: 2.363 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.992e-05/0.005753, allocations: 49.64 kB / 271.7 MB, free: 2.309 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.005765, allocations: 4 kB / 271.7 MB, free: 2.305 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.00577, allocations: 4.062 kB / 271.7 MB, free: 2.301 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.005788, allocations: 0 / 271.7 MB, free: 2.301 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.777e-05/0.005826, allocations: 4 kB / 271.7 MB, free: 2.297 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.005834, allocations: 7.922 kB / 271.7 MB, free: 2.289 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.222e-05/0.005846, allocations: 4 kB / 271.7 MB, free: 2.285 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.547e-06/0.00585, allocations: 0 / 271.7 MB, free: 2.285 MB / 250.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.055e-05/0.00592, allocations: 160.6 kB / 271.9 MB, free: 2.117 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.419e-05/0.005984, allocations: 61.58 kB / 272 MB, free: 2.051 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.501e-05/0.006009, allocations: 8.125 kB / 272 MB, free: 2.039 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.006012, allocations: 0 / 272 MB, free: 2.039 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.006015, allocations: 0 / 272 MB, free: 2.039 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.006019, allocations: 7.938 kB / 272 MB, free: 2.031 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.8e-05/0.006077, allocations: 120.6 kB / 272.1 MB, free: 1.879 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.006078, allocations: 0 / 272.1 MB, free: 1.879 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.707e-06/0.006082, allocations: 0 / 272.1 MB, free: 1.879 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.006084, allocations: 0 / 272.1 MB, free: 1.879 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-06/0.006091, allocations: 0 / 272.1 MB, free: 1.879 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.006092, allocations: 0 / 272.1 MB, free: 1.879 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.006093, allocations: 0 / 272.1 MB, free: 1.879 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.667e-05/0.00618, allocations: 104.5 kB / 272.2 MB, free: 1.754 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.226e-05/0.006192, allocations: 11.98 kB / 272.2 MB, free: 1.742 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.709e-05/0.006209, allocations: 4 kB / 272.2 MB, free: 1.738 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.537e-05/0.006245, allocations: 15.94 kB / 272.2 MB, free: 1.723 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.805e-06/0.006247, allocations: 0 / 272.2 MB, free: 1.723 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.518e-06/0.006252, allocations: 0 / 272.2 MB, free: 1.723 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.778e-05/0.00629, allocations: 131.2 kB / 272.4 MB, free: 1.594 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00629, allocations: 4 kB / 272.4 MB, free: 1.59 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001261/0.006416, allocations: 7.938 kB / 272.4 MB, free: 1.582 MB / 250.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 7.18e-05/0.006488, allocations: 99.25 kB / 272.5 MB, free: 1.477 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.185e-05/0.00657, allocations: 31.61 kB / 272.5 MB, free: 1.441 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.006571, allocations: 128 / 272.5 MB, free: 1.441 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.61e-07/0.006572, allocations: 4 kB / 272.5 MB, free: 1.438 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005421/0.007114, allocations: 1.063 MB / 273.6 MB, free: 360 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002383/0.007352, allocations: 140.1 kB / 273.7 MB, free: 192 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.068e-05/0.007383, allocations: 55.36 kB / 273.8 MB, free: 116 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.908e-05/0.007402, allocations: 3.984 kB / 273.8 MB, free: 112 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.576e-05/0.007428, allocations: 12.5 kB / 273.8 MB, free: 96 kB / 250.7 MB Notification: Performance of SimCode: time 4.61e-07/0.007428, allocations: 0 / 273.8 MB, free: 96 kB / 250.7 MB Notification: Performance of Templates: time 0.002397/0.009825, allocations: 0.7447 MB / 274.5 MB, free: 15.36 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.7535727908834815]