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.001406/0.001406, allocations: 68.08 kB / 21.69 MB, free: 2.863 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.001106/0.001106, allocations: 145.4 kB / 24.97 MB, free: 8.816 MB / 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 0.9876/0.9876, allocations: 173.3 MB / 201.5 MB, free: 9.352 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 1.743e-06/1.743e-06, allocations: 0 / 268.1 MB, free: 6.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.654e-05/2.828e-05, allocations: 6.25 kB / 268.1 MB, free: 6.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002502/0.002531, allocations: 1.475 MB / 269.5 MB, free: 5.266 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002197/0.00275, allocations: 43.77 kB / 269.6 MB, free: 5.223 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.119e-05/0.002812, allocations: 0 / 269.6 MB, free: 5.223 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.882e-05/0.00284, allocations: 3.938 kB / 269.6 MB, free: 5.219 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.174e-05/0.002902, allocations: 12 kB / 269.6 MB, free: 5.207 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002478/0.00315, allocations: 27.95 kB / 269.6 MB, free: 5.18 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001005/0.00325, allocations: 39.86 kB / 269.7 MB, free: 5.141 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001058/0.003356, allocations: 7.984 kB / 269.7 MB, free: 5.133 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.147e-05/0.003438, allocations: 23.97 kB / 269.7 MB, free: 5.109 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.576e-05/0.003473, allocations: 15.92 kB / 269.7 MB, free: 5.094 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.34e-05/0.003497, allocations: 4 kB / 269.7 MB, free: 5.09 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.052e-05/0.003507, allocations: 4 kB / 269.7 MB, free: 5.086 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.31e-05/0.00353, allocations: 7.984 kB / 269.7 MB, free: 5.078 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.467e-05/0.003565, allocations: 19.86 kB / 269.7 MB, free: 5.059 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000111/0.003676, allocations: 31.84 kB / 269.8 MB, free: 5.027 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.003681, allocations: 7.984 kB / 269.8 MB, free: 5.02 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.003683, allocations: 0 / 269.8 MB, free: 5.02 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.003688, allocations: 0 / 269.8 MB, free: 5.02 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.0004196/0.004107, allocations: 368.6 kB / 270.1 MB, free: 4.621 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.004149, allocations: 8.031 kB / 270.2 MB, free: 4.613 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.222e-05/0.004201, allocations: 20.88 kB / 270.2 MB, free: 4.594 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001699/0.004371, allocations: 124.5 kB / 270.3 MB, free: 4.445 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.788e-05/0.004459, allocations: 30.27 kB / 270.3 MB, free: 4.41 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.172e-05/0.004471, allocations: 4.375 kB / 270.3 MB, free: 4.406 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002535/0.004724, allocations: 134.2 kB / 270.5 MB, free: 4.258 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.693e-06/0.004731, allocations: 192 / 270.5 MB, free: 4.258 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.004742, allocations: 4.375 kB / 270.5 MB, free: 4.254 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.004753, allocations: 8.125 kB / 270.5 MB, free: 4.246 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.046e-05/0.004793, allocations: 11.98 kB / 270.5 MB, free: 4.234 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001024/0.004895, allocations: 120.6 kB / 270.6 MB, free: 4.082 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001483/0.005044, allocations: 55.17 kB / 270.7 MB, free: 4.016 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.941e-05/0.005083, allocations: 23.67 kB / 270.7 MB, free: 3.988 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.202e-06/0.005089, allocations: 4 kB / 270.7 MB, free: 3.984 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.005111, allocations: 33.39 kB / 270.7 MB, free: 3.941 MB / 250.7 MB Notification: Performance of pre-optimization done (n=5): time 9.82e-07/0.005112, allocations: 4 kB / 270.7 MB, free: 3.938 MB / 250.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001756/0.005288, allocations: 69.58 kB / 270.8 MB, free: 3.863 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.786e-05/0.005336, allocations: 59.41 kB / 270.8 MB, free: 3.793 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.411e-05/0.00542, allocations: 169.9 kB / 271 MB, free: 3.609 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.026e-05/0.00543, allocations: 25.7 kB / 271 MB, free: 3.578 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.608e-05/0.005476, allocations: 134.8 kB / 271.2 MB, free: 3.441 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.419e-05/0.00549, allocations: 3.953 kB / 271.2 MB, free: 3.438 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.296e-05/0.005523, allocations: 27.36 kB / 271.2 MB, free: 3.402 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.005636, allocations: 0.4884 MB / 271.7 MB, free: 2.902 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.105e-05/0.005647, allocations: 0 / 271.7 MB, free: 2.902 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.309e-05/0.00567, allocations: 31.36 kB / 271.7 MB, free: 2.863 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.299e-05/0.005703, allocations: 27.75 kB / 271.7 MB, free: 2.828 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.005705, allocations: 0 / 271.7 MB, free: 2.828 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.173e-05/0.005757, allocations: 49.64 kB / 271.8 MB, free: 2.773 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.005772, allocations: 10.95 kB / 271.8 MB, free: 2.766 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.005778, allocations: 4 kB / 271.8 MB, free: 2.762 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.005791, allocations: 4.062 kB / 271.8 MB, free: 2.758 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.569e-05/0.005827, allocations: 4 kB / 271.8 MB, free: 2.754 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.005834, allocations: 7.938 kB / 271.8 MB, free: 2.746 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.117e-05/0.005845, allocations: 0 / 271.8 MB, free: 2.746 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.045e-06/0.005848, allocations: 0 / 271.8 MB, free: 2.746 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 6.727e-05/0.005915, allocations: 160.6 kB / 272 MB, free: 2.578 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.255e-05/0.005978, allocations: 61.64 kB / 272 MB, free: 2.512 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.336e-05/0.006001, allocations: 4.312 kB / 272 MB, free: 2.504 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.006004, allocations: 3.984 kB / 272.1 MB, free: 2.5 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.006008, allocations: 7.938 kB / 272.1 MB, free: 2.492 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.006012, allocations: 3.938 kB / 272.1 MB, free: 2.488 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.126e-05/0.006073, allocations: 120.6 kB / 272.2 MB, free: 2.336 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.006075, allocations: 0 / 272.2 MB, free: 2.336 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.809e-06/0.00608, allocations: 0 / 272.2 MB, free: 2.336 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.006081, allocations: 0 / 272.2 MB, free: 2.336 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.006089, allocations: 7.984 kB / 272.2 MB, free: 2.328 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.00609, allocations: 0 / 272.2 MB, free: 2.328 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.006092, allocations: 4 kB / 272.2 MB, free: 2.324 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.603e-05/0.006178, allocations: 92.38 kB / 272.3 MB, free: 2.211 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.074e-05/0.006189, allocations: 11.89 kB / 272.3 MB, free: 2.199 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.459e-05/0.006203, allocations: 0 / 272.3 MB, free: 2.199 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.584e-05/0.006239, allocations: 8 kB / 272.3 MB, free: 2.191 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.434e-06/0.006241, allocations: 4 kB / 272.3 MB, free: 2.188 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.006248, allocations: 7.984 kB / 272.3 MB, free: 2.18 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.588e-05/0.006284, allocations: 127.2 kB / 272.4 MB, free: 2.055 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006284, allocations: 0 / 272.4 MB, free: 2.055 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001213/0.006406, allocations: 15.88 kB / 272.5 MB, free: 2.039 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 9.012e-05/0.006496, allocations: 95.25 kB / 272.5 MB, free: 1.938 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.665e-05/0.006582, allocations: 31.67 kB / 272.6 MB, free: 1.902 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.006584, allocations: 0 / 272.6 MB, free: 1.902 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.21e-07/0.006584, allocations: 128 / 272.6 MB, free: 1.902 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005282/0.007113, allocations: 1.061 MB / 273.6 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002384/0.007351, allocations: 136.1 kB / 273.8 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.332e-05/0.007384, allocations: 67.27 kB / 273.8 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.098e-05/0.007405, allocations: 0 / 273.8 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.571e-05/0.007431, allocations: 12.5 kB / 273.8 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of SimCode: time 1.112e-06/0.007432, allocations: 0 / 273.8 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of Templates: time 0.002459/0.009891, allocations: 0.7511 MB / 274.6 MB, free: 15.81 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.709317286964506]