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.0009345/0.0009345, allocations: 88.73 kB / 21.5 MB, free: 2.984 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.001615/0.001615, allocations: 164.2 kB / 24.91 MB, free: 8.762 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 0.9495/0.9495, allocations: 177 MB / 205.2 MB, free: 5.039 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.603e-06/1.603e-06, allocations: 0 / 273.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.083e-05/2.243e-05, allocations: 2.312 kB / 273.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002058/0.002081, allocations: 1.536 MB / 275 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001924/0.002273, allocations: 47.77 kB / 275 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.981e-05/0.002333, allocations: 4 kB / 275 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.594e-05/0.002359, allocations: 7.938 kB / 275 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.496e-05/0.002414, allocations: 3.938 kB / 275 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001902/0.002604, allocations: 27.95 kB / 275 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 7.913e-05/0.002683, allocations: 39.86 kB / 275.1 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.784e-05/0.002751, allocations: 8 kB / 275.1 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.684e-05/0.002828, allocations: 27.89 kB / 275.1 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.859e-05/0.002856, allocations: 15.98 kB / 275.1 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.656e-05/0.002873, allocations: 0 / 275.1 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.937e-06/0.002882, allocations: 4 kB / 275.1 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.926e-05/0.002901, allocations: 8 kB / 275.1 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.009e-05/0.002921, allocations: 15.92 kB / 275.2 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 8.079e-05/0.003002, allocations: 39.83 kB / 275.2 MB, free: 15.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.003004, allocations: 0 / 275.2 MB, free: 15.23 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.003005, allocations: 3.938 kB / 275.2 MB, free: 15.22 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.003009, allocations: 0 / 275.2 MB, free: 15.22 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.0002724/0.003282, allocations: 245 kB / 275.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.126e-05/0.003313, allocations: 15.98 kB / 275.5 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.101e-05/0.003344, allocations: 16.91 kB / 275.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001284/0.003472, allocations: 117.7 kB / 275.6 MB, free: 14.79 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.146e-05/0.003544, allocations: 38.25 kB / 275.6 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.544e-06/0.003551, allocations: 4.375 kB / 275.6 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000154/0.003705, allocations: 124.5 kB / 275.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.003714, allocations: 8.188 kB / 275.8 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.953e-06/0.003721, allocations: 4.375 kB / 275.8 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.842e-06/0.003728, allocations: 4.125 kB / 275.8 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.648e-05/0.003754, allocations: 11.98 kB / 275.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.831e-05/0.003812, allocations: 53.05 kB / 275.8 MB, free: 14.51 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.527e-05/0.003908, allocations: 50.55 kB / 275.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.805e-05/0.003926, allocations: 20.8 kB / 275.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.659e-06/0.00393, allocations: 0 / 275.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.792e-05/0.003948, allocations: 38.5 kB / 275.9 MB, free: 14.38 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 7.61e-07/0.003949, allocations: 0 / 275.9 MB, free: 14.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001008/0.00405, allocations: 57.67 kB / 276 MB, free: 14.32 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.977e-05/0.00409, allocations: 55.41 kB / 276 MB, free: 14.25 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.232e-05/0.004142, allocations: 110.7 kB / 276.2 MB, free: 14.13 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.047e-06/0.004151, allocations: 29.7 kB / 276.2 MB, free: 14.09 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.224e-05/0.004173, allocations: 92.06 kB / 276.3 MB, free: 14 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.005e-05/0.004183, allocations: 3.953 kB / 276.3 MB, free: 14 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.163e-05/0.004205, allocations: 17.7 kB / 276.3 MB, free: 13.97 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.05e-05/0.004275, allocations: 322.8 kB / 276.6 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.741e-06/0.004281, allocations: 4 kB / 276.6 MB, free: 13.64 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.554e-05/0.004297, allocations: 17.7 kB / 276.6 MB, free: 13.62 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.209e-05/0.004319, allocations: 13.72 kB / 276.6 MB, free: 13.6 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.004321, allocations: 4 kB / 276.7 MB, free: 13.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.385e-05/0.004375, allocations: 49.62 kB / 276.7 MB, free: 13.54 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.004386, allocations: 4 kB / 276.7 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.00439, allocations: 0 / 276.7 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.026e-05/0.004401, allocations: 4.062 kB / 276.7 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.889e-05/0.004429, allocations: 4 kB / 276.7 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.054e-06/0.004432, allocations: 0 / 276.7 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.089e-05/0.004442, allocations: 4 kB / 276.7 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.466e-06/0.004446, allocations: 3.938 kB / 276.7 MB, free: 13.52 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 5.417e-05/0.0045, allocations: 113.8 kB / 276.8 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.219e-05/0.004542, allocations: 54.11 kB / 276.9 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.594e-05/0.004558, allocations: 4.125 kB / 276.9 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.00456, allocations: 0 / 276.9 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.004562, allocations: 4.188 kB / 276.9 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-06/0.004565, allocations: 4 kB / 276.9 MB, free: 13.33 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.52e-05/0.00461, allocations: 81.81 kB / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.004611, allocations: 0 / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.268e-06/0.004615, allocations: 3.938 kB / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.004616, allocations: 0 / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.339e-06/0.004621, allocations: 0 / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.004622, allocations: 0 / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.004623, allocations: 0 / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.183e-05/0.004664, allocations: 65 kB / 277 MB, free: 13.15 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.876e-06/0.004673, allocations: 7.938 kB / 277.1 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.625e-05/0.00469, allocations: 8 kB / 277.1 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.687e-05/0.004716, allocations: 4 kB / 277.1 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.184e-06/0.004719, allocations: 0 / 277.1 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.889e-06/0.004723, allocations: 4 kB / 277.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.291e-05/0.004736, allocations: 12.84 kB / 277.1 MB, free: 13.11 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.004736, allocations: 0 / 277.1 MB, free: 13.11 MB / 266.7 MB Notification: Performance of remove unused functions: time 9.249e-05/0.004829, allocations: 8 kB / 277.1 MB, free: 13.1 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 7.505e-05/0.004904, allocations: 76.42 kB / 277.2 MB, free: 13.02 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 6.449e-05/0.004968, allocations: 28.78 kB / 277.2 MB, free: 12.98 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.004972, allocations: 4.125 kB / 277.2 MB, free: 12.98 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.21e-07/0.004972, allocations: 4 kB / 277.2 MB, free: 12.98 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003764/0.005348, allocations: 0.7043 MB / 277.9 MB, free: 12.25 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002054/0.005554, allocations: 134.4 kB / 278 MB, free: 12.09 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.124e-05/0.005585, allocations: 59.34 kB / 278.1 MB, free: 12.01 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.725e-05/0.005612, allocations: 4 kB / 278.1 MB, free: 12.01 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.063e-05/0.005663, allocations: 55.38 kB / 278.1 MB, free: 11.95 MB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.005664, allocations: 0 / 278.1 MB, free: 11.95 MB / 266.7 MB Notification: Performance of Templates: time 0.002529/0.008193, allocations: 0.7989 MB / 278.9 MB, free: 11.17 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 -s gbode -gbm=radauIIA3 -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.507629963103682]