Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001642/0.001642, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 168.7 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.045/1.045, allocations: 177.1 MB / 206 MB, free: 4.469 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 274.2 MB, free: 4.406 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.001e-05/3.192e-05, allocations: 2.312 kB / 274.2 MB, free: 4.402 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003309/0.003341, allocations: 1.48 MB / 275.7 MB, free: 2.93 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003008/0.003641, allocations: 57.22 kB / 275.7 MB, free: 2.875 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.02e-05/0.003732, allocations: 4 kB / 275.7 MB, free: 2.871 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.66e-05/0.003768, allocations: 3.938 kB / 275.7 MB, free: 2.867 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.461e-05/0.003843, allocations: 0 / 275.7 MB, free: 2.867 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002854/0.004128, allocations: 28.56 kB / 275.7 MB, free: 2.84 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001147/0.004243, allocations: 44.38 kB / 275.8 MB, free: 2.797 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.004356, allocations: 8 kB / 275.8 MB, free: 2.789 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.542e-05/0.004451, allocations: 24.66 kB / 275.8 MB, free: 2.766 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.881e-05/0.00449, allocations: 11.92 kB / 275.8 MB, free: 2.754 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.077e-05/0.004521, allocations: 5.969 kB / 275.8 MB, free: 2.75 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.094e-05/0.004532, allocations: 4 kB / 275.8 MB, free: 2.746 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.104e-05/0.004563, allocations: 11.98 kB / 275.9 MB, free: 2.734 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.983e-05/0.004593, allocations: 15.92 kB / 275.9 MB, free: 2.719 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001236/0.004716, allocations: 31.89 kB / 275.9 MB, free: 2.688 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.00472, allocations: 0.5 kB / 275.9 MB, free: 2.688 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.004721, allocations: 0.9062 kB / 275.9 MB, free: 2.688 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5e-06/0.004726, allocations: 0 / 275.9 MB, free: 2.688 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.0006334/0.005359, allocations: 373.2 kB / 276.3 MB, free: 2.285 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.005407, allocations: 12.03 kB / 276.3 MB, free: 2.273 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.142e-05/0.005458, allocations: 15.36 kB / 276.3 MB, free: 2.262 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001888/0.005647, allocations: 132.5 kB / 276.4 MB, free: 2.105 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 9.787e-05/0.005745, allocations: 36.59 kB / 276.5 MB, free: 2.066 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.306e-05/0.005758, allocations: 4.375 kB / 276.5 MB, free: 2.062 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002367/0.005995, allocations: 120.2 kB / 276.6 MB, free: 1.93 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.006004, allocations: 192 / 276.6 MB, free: 1.93 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.006014, allocations: 4.375 kB / 276.6 MB, free: 1.926 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.006023, allocations: 4.125 kB / 276.6 MB, free: 1.922 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.297e-05/0.006056, allocations: 7.938 kB / 276.6 MB, free: 1.914 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001181/0.006174, allocations: 105.7 kB / 276.7 MB, free: 1.785 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001461/0.00632, allocations: 55.83 kB / 276.8 MB, free: 1.719 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.155e-05/0.006352, allocations: 23.67 kB / 276.8 MB, free: 1.691 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.432e-06/0.006358, allocations: 0 / 276.8 MB, free: 1.691 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.962e-05/0.006388, allocations: 41.33 kB / 276.8 MB, free: 1.641 MB / 250.7 MB Notification: Performance of pre-optimization done (n=5): time 1.072e-06/0.006389, allocations: 0 / 276.8 MB, free: 1.641 MB / 250.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001655/0.006555, allocations: 65.69 kB / 276.9 MB, free: 1.57 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.884e-05/0.006603, allocations: 51.41 kB / 276.9 MB, free: 1.508 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.129e-05/0.006695, allocations: 173.8 kB / 277.1 MB, free: 1.32 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.361e-05/0.006708, allocations: 25.7 kB / 277.1 MB, free: 1.289 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.79e-05/0.006756, allocations: 130.9 kB / 277.3 MB, free: 1.156 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.444e-05/0.006771, allocations: 11.92 kB / 277.3 MB, free: 1.145 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.632e-05/0.006807, allocations: 27.38 kB / 277.3 MB, free: 1.109 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.006963, allocations: 496.1 kB / 277.8 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.29e-05/0.006976, allocations: 4 kB / 277.8 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.099e-05/0.007007, allocations: 35.27 kB / 277.8 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.155e-05/0.007049, allocations: 23.38 kB / 277.8 MB, free: 0.5352 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.007051, allocations: 0 / 277.8 MB, free: 0.5352 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.487e-05/0.007135, allocations: 53.62 kB / 277.9 MB, free: 488 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.007151, allocations: 4 kB / 277.9 MB, free: 484 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.007155, allocations: 4.062 kB / 277.9 MB, free: 480 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.007168, allocations: 4 kB / 277.9 MB, free: 476 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.365e-05/0.007211, allocations: 0 / 277.9 MB, free: 476 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.201e-06/0.007217, allocations: 4 kB / 277.9 MB, free: 472 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.031e-05/0.007238, allocations: 4.375 kB / 277.9 MB, free: 468 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.007244, allocations: 3.984 kB / 277.9 MB, free: 464 kB / 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 0.0001044/0.007348, allocations: 164.6 kB / 278.1 MB, free: 288 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.244e-05/0.007441, allocations: 61.58 kB / 278.1 MB, free: 220 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.798e-05/0.007468, allocations: 8.125 kB / 278.1 MB, free: 212 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.007471, allocations: 0 / 278.1 MB, free: 212 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.007473, allocations: 0 / 278.1 MB, free: 212 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.007478, allocations: 4 kB / 278.1 MB, free: 208 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.219e-05/0.007561, allocations: 101.2 kB / 278.2 MB, free: 80 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.007563, allocations: 0 / 278.2 MB, free: 80 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.484e-06/0.00757, allocations: 0 / 278.2 MB, free: 80 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/0.007575, allocations: 4 kB / 278.3 MB, free: 76 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.5e-06/0.00758, allocations: 0 / 278.3 MB, free: 76 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.007583, allocations: 3.984 kB / 278.3 MB, free: 72 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.093e-06/0.007586, allocations: 0 / 278.3 MB, free: 72 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.489e-05/0.00768, allocations: 76.27 kB / 278.3 MB, free: 15.97 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.497e-05/0.007695, allocations: 7.953 kB / 278.3 MB, free: 15.96 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.567e-05/0.007711, allocations: 0 / 278.3 MB, free: 15.96 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.642e-05/0.007757, allocations: 8 kB / 278.3 MB, free: 15.96 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.499e-06/0.007762, allocations: 0 / 278.3 MB, free: 15.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.007774, allocations: 7.984 kB / 278.4 MB, free: 15.95 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.305e-05/0.007837, allocations: 127.2 kB / 278.5 MB, free: 15.82 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.007837, allocations: 0 / 278.5 MB, free: 15.82 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001907/0.008028, allocations: 8 kB / 278.5 MB, free: 15.82 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 0.0001188/0.008147, allocations: 99.25 kB / 278.6 MB, free: 15.71 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001454/0.008292, allocations: 23.67 kB / 278.6 MB, free: 15.68 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.008295, allocations: 128 / 278.6 MB, free: 15.68 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.92e-07/0.008296, allocations: 4 kB / 278.6 MB, free: 15.68 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006581/0.008954, allocations: 1.061 MB / 279.7 MB, free: 14.59 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002649/0.009219, allocations: 132.2 kB / 279.8 MB, free: 14.43 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.701e-05/0.009256, allocations: 63.2 kB / 279.9 MB, free: 14.35 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.246e-05/0.009278, allocations: 0 / 279.9 MB, free: 14.35 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.894e-05/0.009337, allocations: 74.2 kB / 279.9 MB, free: 14.27 MB / 266.7 MB Notification: Performance of SimCode: time 1.032e-06/0.009338, allocations: 0 / 279.9 MB, free: 14.27 MB / 266.7 MB Notification: Performance of Templates: time 0.002571/0.01191, allocations: 0.8039 MB / 280.7 MB, free: 13.48 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.9660989148542285]