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.001926/0.001925, allocations: 107.5 kB / 17.16 MB, free: 6.082 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.001954/0.001954, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.577/2.577, allocations: 222.9 MB / 241.8 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002023/0.002023, allocations: 51.95 kB / 300.6 MB, free: 6.305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1647/0.1668, allocations: 49.45 MB / 350.1 MB, free: 4.848 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00542/0.1723, allocations: 1.483 MB / 351.5 MB, free: 3.348 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003232/0.1727, allocations: 35.91 kB / 351.6 MB, free: 3.312 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.76e-05/0.1728, allocations: 0 / 351.6 MB, free: 3.312 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.72e-05/0.1729, allocations: 7.922 kB / 351.6 MB, free: 3.305 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.66e-05/0.173, allocations: 0 / 351.6 MB, free: 3.305 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003934/0.1734, allocations: 27.97 kB / 351.6 MB, free: 3.277 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001422/0.1736, allocations: 35.92 kB / 351.7 MB, free: 3.242 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.1738, allocations: 8 kB / 351.7 MB, free: 3.234 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.403e-05/0.1739, allocations: 15.92 kB / 351.7 MB, free: 3.219 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.503e-05/0.174, allocations: 27.91 kB / 351.7 MB, free: 3.191 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.406e-05/0.174, allocations: 3.938 kB / 351.7 MB, free: 3.188 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.092e-05/0.174, allocations: 4 kB / 351.7 MB, free: 3.184 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.383e-05/0.1741, allocations: 7.938 kB / 351.7 MB, free: 3.176 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.171e-05/0.1741, allocations: 15.92 kB / 351.7 MB, free: 3.16 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00012/0.1743, allocations: 27.94 kB / 351.8 MB, free: 3.133 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.1743, allocations: 0 / 351.8 MB, free: 3.133 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1743, allocations: 0 / 351.8 MB, free: 3.133 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.1743, allocations: 0 / 351.8 MB, free: 3.133 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.0007415/0.1751, allocations: 351.7 kB / 352.1 MB, free: 2.738 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/0.1752, allocations: 12.03 kB / 352.1 MB, free: 2.727 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.757e-05/0.1752, allocations: 8.844 kB / 352.1 MB, free: 2.719 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000261/0.1755, allocations: 176.3 kB / 352.3 MB, free: 2.508 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.0001941/0.1757, allocations: 38.23 kB / 352.3 MB, free: 2.465 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.668e-05/0.1758, allocations: 8.375 kB / 352.3 MB, free: 2.457 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005393/0.1763, allocations: 127.7 kB / 352.5 MB, free: 2.32 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.1764, allocations: 7.938 kB / 352.5 MB, free: 2.312 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.1764, allocations: 0 / 352.5 MB, free: 2.312 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.1764, allocations: 0 / 352.5 MB, free: 2.312 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001121/0.1765, allocations: 16 kB / 352.5 MB, free: 2.297 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002432/0.1768, allocations: 165.6 kB / 352.7 MB, free: 2.086 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003687/0.1772, allocations: 143.7 kB / 352.8 MB, free: 1.918 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.473e-05/0.1773, allocations: 20.86 kB / 352.8 MB, free: 1.895 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.948e-05/0.1773, allocations: 8 kB / 352.8 MB, free: 1.887 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.454e-05/0.1774, allocations: 30.56 kB / 352.9 MB, free: 1.848 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 2.354e-06/0.1774, allocations: 0 / 352.9 MB, free: 1.848 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003806/0.1778, allocations: 81.73 kB / 352.9 MB, free: 1.762 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.55e-05/0.1779, allocations: 59.34 kB / 353 MB, free: 1.691 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.178, allocations: 109.8 kB / 353.1 MB, free: 1.574 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.605e-05/0.1781, allocations: 25.7 kB / 353.1 MB, free: 1.543 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.898e-05/0.1782, allocations: 92.14 kB / 353.2 MB, free: 1.449 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.741e-05/0.1782, allocations: 3.906 kB / 353.2 MB, free: 1.445 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.698e-05/0.1783, allocations: 17.72 kB / 353.2 MB, free: 1.422 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.1785, allocations: 322.8 kB / 353.5 MB, free: 1.098 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.109e-05/0.1785, allocations: 4 kB / 353.6 MB, free: 1.094 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.251e-05/0.1786, allocations: 40.28 kB / 353.6 MB, free: 1.039 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.9e-05/0.1787, allocations: 48.23 kB / 353.6 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1787, allocations: 0 / 353.6 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001942/0.1789, allocations: 77.69 kB / 353.7 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.1789, allocations: 7.938 kB / 353.7 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.179, allocations: 0 / 353.7 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.179, allocations: 4 kB / 353.7 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.018e-05/0.1791, allocations: 4 kB / 353.7 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/0.1791, allocations: 7.922 kB / 353.7 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.765e-05/0.1792, allocations: 7.906 kB / 353.7 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.1792, allocations: 4 kB / 353.7 MB, free: 0.8594 MB / 286.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.0001264/0.1793, allocations: 113.8 kB / 353.9 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001865/0.1795, allocations: 65.66 kB / 353.9 MB, free: 0.668 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.85e-05/0.1796, allocations: 11.97 kB / 353.9 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.1796, allocations: 0 / 353.9 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.1796, allocations: 0 / 353.9 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.1796, allocations: 0 / 353.9 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001661/0.1798, allocations: 157.7 kB / 354.1 MB, free: 460 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.1798, allocations: 0 / 354.1 MB, free: 460 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.693e-05/0.1799, allocations: 4 kB / 354.1 MB, free: 456 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.1799, allocations: 7.875 kB / 354.1 MB, free: 448 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.678e-05/0.1799, allocations: 3.984 kB / 354.1 MB, free: 444 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.741e-06/0.1799, allocations: 3.938 kB / 354.1 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.1799, allocations: 8.188 kB / 354.1 MB, free: 432 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002416/0.1802, allocations: 97.11 kB / 354.2 MB, free: 316 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.29e-05/0.1803, allocations: 77.11 kB / 354.3 MB, free: 220 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.685e-05/0.1803, allocations: 7.938 kB / 354.3 MB, free: 212 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.467e-05/0.1804, allocations: 7.984 kB / 354.3 MB, free: 204 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.709e-06/0.1804, allocations: 0 / 354.3 MB, free: 204 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.1805, allocations: 4 kB / 354.3 MB, free: 200 kB / 286.1 MB Notification: Performance of sorting global known variables: time 6.866e-05/0.1805, allocations: 87.28 kB / 354.4 MB, free: 112 kB / 286.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1806, allocations: 0 / 354.4 MB, free: 112 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003567/0.1809, allocations: 4 kB / 354.4 MB, free: 108 kB / 286.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.0001982/0.1811, allocations: 107.2 kB / 354.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002051/0.1814, allocations: 35.92 kB / 354.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.157e-06/0.1814, allocations: 0 / 354.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.343e-06/0.1814, allocations: 0 / 354.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001147/0.1826, allocations: 0.7222 MB / 355.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005626/0.1831, allocations: 172.8 kB / 355.4 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003593/0.1835, allocations: 0.6809 MB / 356.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.304e-05/0.1836, allocations: 15.42 kB / 356.1 MB, free: 14.28 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1836, allocations: 64 / 356.1 MB, free: 14.28 MB / 302.1 MB Notification: Performance of Templates: time 0.003615/0.1872, allocations: 0.7634 MB / 356.9 MB, free: 13.52 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/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