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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001944/0.001944, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002175/0.002175, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.676/1.676, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003237/0.003238, allocations: 71.3 kB / 307 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.1501, allocations: 50.54 MB / 357.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003193/0.1534, allocations: 1.433 MB / 359 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002284/0.1536, allocations: 35.91 kB / 359 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.374e-05/0.1537, allocations: 3.938 kB / 359 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.641e-05/0.1538, allocations: 0 / 359 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.484e-05/0.1539, allocations: 7.922 kB / 359 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002723/0.1541, allocations: 31.97 kB / 359 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001026/0.1542, allocations: 47.84 kB / 359.1 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001259/0.1544, allocations: 4 kB / 359.1 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.957e-05/0.1544, allocations: 15.92 kB / 359.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.056e-05/0.1545, allocations: 27.92 kB / 359.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.054e-05/0.1545, allocations: 4 kB / 359.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.338e-05/0.1545, allocations: 4 kB / 359.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.108e-05/0.1546, allocations: 11.92 kB / 359.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.476e-05/0.1546, allocations: 15.92 kB / 359.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001112/0.1547, allocations: 31.89 kB / 359.2 MB, free: 12.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.316e-06/0.1548, allocations: 4 kB / 359.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1548, allocations: 0 / 359.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.1548, allocations: 0 / 359.2 MB, free: 12.32 MB / 302.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.0006264/0.1554, allocations: 351.7 kB / 359.5 MB, free: 11.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.1555, allocations: 12.03 kB / 359.6 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.839e-05/0.1555, allocations: 8.844 kB / 359.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002446/0.1558, allocations: 184.2 kB / 359.7 MB, free: 11.69 MB / 302.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.0001706/0.1559, allocations: 38.27 kB / 359.8 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.506e-05/0.156, allocations: 4.375 kB / 359.8 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003258/0.1563, allocations: 127.8 kB / 359.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.1563, allocations: 7.938 kB / 359.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.828e-06/0.1563, allocations: 0 / 359.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.1563, allocations: 0 / 359.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.85e-05/0.1564, allocations: 15.98 kB / 359.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001808/0.1566, allocations: 161.6 kB / 360.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002293/0.1568, allocations: 143.8 kB / 360.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.506e-05/0.1569, allocations: 24.84 kB / 360.3 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.108e-05/0.1569, allocations: 4 kB / 360.3 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.389e-05/0.157, allocations: 38.5 kB / 360.3 MB, free: 11.03 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.183e-06/0.157, allocations: 0 / 360.3 MB, free: 11.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002392/0.1572, allocations: 77.56 kB / 360.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.27e-05/0.1573, allocations: 59.41 kB / 360.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.1574, allocations: 109.8 kB / 360.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.98e-05/0.1575, allocations: 25.7 kB / 360.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.236e-05/0.1575, allocations: 88.14 kB / 360.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.937e-05/0.1575, allocations: 11.83 kB / 360.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.055e-05/0.1576, allocations: 21.72 kB / 360.7 MB, free: 10.6 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.1578, allocations: 314.8 kB / 361 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.127e-05/0.1578, allocations: 7.984 kB / 361 MB, free: 10.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.772e-05/0.1578, allocations: 36.3 kB / 361 MB, free: 10.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.568e-05/0.1579, allocations: 52.23 kB / 361.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.1579, allocations: 0 / 361.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001212/0.1581, allocations: 77.58 kB / 361.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.1581, allocations: 14.94 kB / 361.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.1581, allocations: 4 kB / 361.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.1581, allocations: 0 / 361.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.789e-05/0.1582, allocations: 7.938 kB / 361.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.1582, allocations: 4 kB / 361.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.469e-05/0.1582, allocations: 0 / 361.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.263e-06/0.1583, allocations: 4 kB / 361.2 MB, free: 10.05 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.0001181/0.1584, allocations: 116.4 kB / 361.3 MB, free: 9.926 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/0.1585, allocations: 66.06 kB / 361.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.747e-05/0.1585, allocations: 7.969 kB / 361.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.92e-06/0.1586, allocations: 4 kB / 361.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.1586, allocations: 3.984 kB / 361.4 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.1586, allocations: 7.938 kB / 361.4 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001512/0.1587, allocations: 161.7 kB / 361.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.1588, allocations: 0 / 361.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.051e-06/0.1588, allocations: 0 / 361.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.1588, allocations: 3.938 kB / 361.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.918e-06/0.1588, allocations: 0 / 361.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.1588, allocations: 0 / 361.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1588, allocations: 8 kB / 361.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001556/0.159, allocations: 86.72 kB / 361.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.948e-05/0.159, allocations: 81.09 kB / 361.7 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.839e-05/0.1591, allocations: 15.88 kB / 361.7 MB, free: 9.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.662e-05/0.1591, allocations: 0 / 361.7 MB, free: 9.395 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.662e-06/0.1591, allocations: 4 kB / 361.8 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.643e-06/0.1592, allocations: 0 / 361.8 MB, free: 9.391 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.166e-05/0.1592, allocations: 87.27 kB / 361.8 MB, free: 9.305 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1592, allocations: 7.938 kB / 361.8 MB, free: 9.297 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001964/0.1594, allocations: 8 kB / 361.9 MB, free: 9.289 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.0002054/0.1596, allocations: 103.2 kB / 362 MB, free: 9.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001751/0.1598, allocations: 35.92 kB / 362 MB, free: 9.145 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.1598, allocations: 0 / 362 MB, free: 9.145 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.01e-07/0.1599, allocations: 0 / 362 MB, free: 9.145 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008727/0.1607, allocations: 0.7224 MB / 362.7 MB, free: 8.398 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003749/0.1611, allocations: 137.5 kB / 362.8 MB, free: 8.238 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003583/0.1615, allocations: 0.6807 MB / 363.5 MB, free: 7.531 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.869e-05/0.1615, allocations: 7.984 kB / 363.5 MB, free: 7.523 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.747e-05/0.1616, allocations: 15.5 kB / 363.5 MB, free: 7.508 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1616, allocations: 0 / 363.5 MB, free: 7.508 MB / 302.1 MB Notification: Performance of Templates: time 0.003793/0.1654, allocations: 0.6729 MB / 364.2 MB, free: 6.84 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches