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.001086/0.001086, allocations: 113.6 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001052/0.001052, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.555/1.555, allocations: 227.4 MB / 246.4 MB, free: 10.82 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 60.34 kB / 306.4 MB, free: 0.9688 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1535/0.1549, allocations: 50.53 MB / 357 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00354/0.1585, allocations: 1.496 MB / 358.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002454/0.1588, allocations: 35.84 kB / 358.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001061/0.1589, allocations: 4 kB / 358.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.194e-05/0.159, allocations: 0 / 358.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.691e-05/0.159, allocations: 7.938 kB / 358.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003126/0.1594, allocations: 27.97 kB / 358.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001042/0.1595, allocations: 35.92 kB / 358.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.1596, allocations: 11.98 kB / 358.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.013e-05/0.1597, allocations: 23.92 kB / 358.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.622e-05/0.1597, allocations: 15.92 kB / 358.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.457e-05/0.1598, allocations: 4 kB / 358.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.427e-05/0.1598, allocations: 4 kB / 358.6 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.079e-05/0.1598, allocations: 15.92 kB / 358.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.176e-05/0.1599, allocations: 11.94 kB / 358.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001237/0.16, allocations: 39.86 kB / 358.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.16, allocations: 0 / 358.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.16, allocations: 0 / 358.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.16, allocations: 0 / 358.7 MB, free: 12.7 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.0005894/0.1606, allocations: 351.7 kB / 359 MB, free: 12.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.1607, allocations: 12.03 kB / 359.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.033e-05/0.1607, allocations: 8.844 kB / 359.1 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002233/0.161, allocations: 184.2 kB / 359.2 MB, free: 12.06 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.0001682/0.1611, allocations: 38.23 kB / 359.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.065e-05/0.1612, allocations: 8.375 kB / 359.3 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003664/0.1615, allocations: 135.8 kB / 359.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.1616, allocations: 3.938 kB / 359.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.1616, allocations: 0 / 359.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.1616, allocations: 4 kB / 359.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.172e-05/0.1617, allocations: 12 kB / 359.4 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001757/0.1619, allocations: 165.6 kB / 359.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002302/0.1621, allocations: 143.8 kB / 359.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.071e-05/0.1622, allocations: 24.86 kB / 359.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.337e-05/0.1622, allocations: 0 / 359.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.1622, allocations: 34.5 kB / 359.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.222e-06/0.1622, allocations: 0 / 359.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002985/0.1625, allocations: 77.61 kB / 359.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.116e-05/0.1626, allocations: 55.41 kB / 359.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.918e-05/0.1627, allocations: 109.8 kB / 360 MB, free: 11.13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.1628, allocations: 29.64 kB / 360.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.799e-05/0.1628, allocations: 88.14 kB / 360.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.206e-05/0.1629, allocations: 3.906 kB / 360.2 MB, free: 11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.576e-05/0.1629, allocations: 17.72 kB / 360.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.163, allocations: 322.8 kB / 360.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.335e-05/0.1631, allocations: 7.938 kB / 360.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.895e-05/0.1631, allocations: 44.28 kB / 360.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.198e-05/0.1632, allocations: 44.23 kB / 360.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1632, allocations: 0 / 360.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001101/0.1633, allocations: 81.47 kB / 360.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.1634, allocations: 7.938 kB / 360.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.1634, allocations: 448 / 360.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.1634, allocations: 4 kB / 360.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.465e-05/0.1634, allocations: 4 kB / 360.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.1635, allocations: 3.984 kB / 360.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.791e-05/0.1635, allocations: 8 kB / 360.7 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.1635, allocations: 4 kB / 360.7 MB, free: 10.41 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 9.7e-05/0.1636, allocations: 124.8 kB / 360.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.1637, allocations: 65.56 kB / 360.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.553e-05/0.1638, allocations: 11.97 kB / 360.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.1638, allocations: 0 / 360.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1638, allocations: 0 / 360.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.1638, allocations: 0 / 360.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001123/0.1639, allocations: 157.7 kB / 361.1 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1639, allocations: 0 / 361.1 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.688e-05/0.1639, allocations: 4 kB / 361.1 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1639, allocations: 3.938 kB / 361.1 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/0.164, allocations: 4 kB / 361.1 MB, free: 9.984 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.164, allocations: 3.984 kB / 361.1 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.164, allocations: 0 / 361.1 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001402/0.1641, allocations: 93.06 kB / 361.2 MB, free: 9.871 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.234e-05/0.1642, allocations: 85.08 kB / 361.2 MB, free: 9.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.403e-05/0.1642, allocations: 7.938 kB / 361.2 MB, free: 9.762 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.42e-05/0.1643, allocations: 7.938 kB / 361.3 MB, free: 9.754 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.748e-06/0.1643, allocations: 3.984 kB / 361.3 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.166e-06/0.1643, allocations: 8 kB / 361.3 MB, free: 9.742 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.064e-05/0.1643, allocations: 87.28 kB / 361.4 MB, free: 9.656 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1643, allocations: 0 / 361.4 MB, free: 9.656 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001916/0.1645, allocations: 8 kB / 361.4 MB, free: 9.648 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.0001319/0.1647, allocations: 99.25 kB / 361.5 MB, free: 9.543 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001535/0.1648, allocations: 39.92 kB / 361.5 MB, free: 9.504 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.1649, allocations: 320 / 361.5 MB, free: 9.504 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.62e-07/0.1649, allocations: 4 kB / 361.5 MB, free: 9.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007231/0.1656, allocations: 0.7264 MB / 362.2 MB, free: 8.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003582/0.166, allocations: 141.3 kB / 362.4 MB, free: 8.586 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000316/0.1663, allocations: 0.6846 MB / 363.1 MB, free: 7.875 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.88e-05/0.1663, allocations: 3.984 kB / 363.1 MB, free: 7.871 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.106e-05/0.1664, allocations: 11.44 kB / 363.1 MB, free: 7.859 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1664, allocations: 0 / 363.1 MB, free: 7.859 MB / 302.1 MB Notification: Performance of Templates: time 0.003663/0.17, allocations: 0.6645 MB / 363.7 MB, free: 7.199 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.0.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