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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000846/0.0008459, allocations: 85.17 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008836/0.0008838, allocations: 177.8 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.528/1.528, allocations: 223.3 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003447/0.0003448, allocations: 8 kB / 301.4 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1435, allocations: 50.42 MB / 351.8 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002864/0.1464, allocations: 1.143 MB / 353 MB, free: 2.312 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003103/0.1468, allocations: 39.91 kB / 353 MB, free: 2.273 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.797e-05/0.1469, allocations: 3.938 kB / 353 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.999e-05/0.1469, allocations: 0 / 353 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.593e-05/0.147, allocations: 0 / 353 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004313/0.1475, allocations: 31.91 kB / 353.1 MB, free: 2.238 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001381/0.1477, allocations: 39.86 kB / 353.1 MB, free: 2.199 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001959/0.1479, allocations: 11.98 kB / 353.1 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.589e-05/0.1479, allocations: 15.92 kB / 353.1 MB, free: 2.172 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.649e-05/0.148, allocations: 15.92 kB / 353.1 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.112e-05/0.1481, allocations: 8 kB / 353.1 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.852e-05/0.1481, allocations: 0 / 353.1 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.897e-05/0.1482, allocations: 11.92 kB / 353.2 MB, free: 2.137 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.941e-05/0.1483, allocations: 37.64 kB / 353.2 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001398/0.1484, allocations: 35.86 kB / 353.2 MB, free: 2.059 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.1484, allocations: 0 / 353.2 MB, free: 2.059 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.1484, allocations: 0 / 353.2 MB, free: 2.059 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.1484, allocations: 0 / 353.2 MB, free: 2.059 MB / 286.1 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.000686/0.1491, allocations: 343.7 kB / 353.6 MB, free: 1.672 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.815e-05/0.1492, allocations: 8.031 kB / 353.6 MB, free: 1.664 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.476e-05/0.1493, allocations: 12.84 kB / 353.6 MB, free: 1.652 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003115/0.1496, allocations: 180.2 kB / 353.8 MB, free: 1.438 MB / 286.1 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 0.0002521/0.1499, allocations: 34.25 kB / 353.8 MB, free: 1.398 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.68e-05/0.1499, allocations: 8.375 kB / 353.8 MB, free: 1.391 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004832/0.1504, allocations: 119.9 kB / 353.9 MB, free: 1.262 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.1504, allocations: 3.938 kB / 353.9 MB, free: 1.258 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.613e-05/0.1504, allocations: 0 / 353.9 MB, free: 1.258 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.485e-05/0.1505, allocations: 11.98 kB / 353.9 MB, free: 1.246 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.277e-05/0.1506, allocations: 15.94 kB / 354 MB, free: 1.23 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002584/0.1508, allocations: 161.7 kB / 354.1 MB, free: 1.023 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003363/0.1512, allocations: 143.8 kB / 354.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.055e-05/0.1513, allocations: 24.86 kB / 354.3 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.591e-05/0.1513, allocations: 0 / 354.3 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.245e-05/0.1514, allocations: 34.56 kB / 354.3 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.854e-06/0.1514, allocations: 3.938 kB / 354.3 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.000356/0.1518, allocations: 81.52 kB / 354.4 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.1519, allocations: 55.41 kB / 354.4 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001398/0.152, allocations: 105.8 kB / 354.6 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.1521, allocations: 29.7 kB / 354.6 MB, free: 492 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.811e-05/0.1521, allocations: 84.14 kB / 354.7 MB, free: 404 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.461e-05/0.1522, allocations: 7.844 kB / 354.7 MB, free: 396 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.401e-05/0.1522, allocations: 21.72 kB / 354.7 MB, free: 368 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001993/0.1524, allocations: 314.8 kB / 355 MB, free: 44 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.41e-05/0.1525, allocations: 8 kB / 355 MB, free: 36 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.717e-05/0.1526, allocations: 40.23 kB / 355 MB, free: 15.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.411e-05/0.1527, allocations: 52.22 kB / 355.1 MB, free: 15.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.1527, allocations: 0 / 355.1 MB, free: 15.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001711/0.1529, allocations: 73.56 kB / 355.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.619e-05/0.1529, allocations: 7.938 kB / 355.2 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.1529, allocations: 4.312 kB / 355.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.577e-05/0.153, allocations: 4 kB / 355.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.433e-05/0.1531, allocations: 8.375 kB / 355.2 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.566e-05/0.1531, allocations: 7.984 kB / 355.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.22e-05/0.1531, allocations: 0 / 355.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.1532, allocations: 8 kB / 355.2 MB, free: 15.8 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001816/0.1534, allocations: 117.8 kB / 355.3 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001745/0.1535, allocations: 73.47 kB / 355.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.74e-05/0.1536, allocations: 3.969 kB / 355.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.1536, allocations: 4 kB / 355.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.777e-06/0.1536, allocations: 0 / 355.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.1536, allocations: 0 / 355.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000177/0.1538, allocations: 161.7 kB / 355.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1538, allocations: 0 / 355.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.079e-05/0.1539, allocations: 4 kB / 355.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.1539, allocations: 3.938 kB / 355.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.1539, allocations: 0 / 355.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1539, allocations: 0 / 355.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.1539, allocations: 4 kB / 355.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002169/0.1541, allocations: 89.84 kB / 355.7 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.722e-05/0.1542, allocations: 81.02 kB / 355.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.786e-05/0.1543, allocations: 15.88 kB / 355.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.685e-05/0.1544, allocations: 0 / 355.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.058e-05/0.1544, allocations: 7.938 kB / 355.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.1544, allocations: 3.984 kB / 355.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.126e-05/0.1545, allocations: 83.28 kB / 355.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1545, allocations: 0 / 355.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003049/0.1548, allocations: 8 kB / 355.9 MB, free: 15.04 MB / 302.1 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.0002147/0.155, allocations: 103.4 kB / 356 MB, free: 14.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001895/0.1552, allocations: 35.92 kB / 356 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.1553, allocations: 0 / 356 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.62e-07/0.1553, allocations: 0 / 356 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001204/0.1565, allocations: 0.7339 MB / 356.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004464/0.157, allocations: 132.6 kB / 356.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004784/0.1574, allocations: 0.6809 MB / 357.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.186e-05/0.1575, allocations: 4.234 kB / 357.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.374e-05/0.1576, allocations: 7.438 kB / 357.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1576, allocations: 0 / 357.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of Templates: time 0.004572/0.1622, allocations: 0.6397 MB / 358.2 MB, free: 12.63 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches