Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|pulse.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|pulse.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.004057/0.004062, allocations: 181.6 kB / 16.44 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.076/4.076, allocations: 205.4 MB / 222.6 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.002113/0.002113, allocations: 90.91 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.2236/0.2236, allocations: 12.59 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009672/0.0009678, allocations: 16 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1658/0.1668, allocations: 50.37 MB / 442.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002903/0.1698, allocations: 1.144 MB / 443.5 MB, free: 15.33 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003569/0.1702, allocations: 35.91 kB / 443.5 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.352e-05/0.1703, allocations: 0 / 443.5 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.514e-05/0.1704, allocations: 3.938 kB / 443.5 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.168e-05/0.1705, allocations: 7.984 kB / 443.5 MB, free: 15.28 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004139/0.1709, allocations: 31.91 kB / 443.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001176/0.171, allocations: 23.97 kB / 443.6 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000124/0.1712, allocations: 11.98 kB / 443.6 MB, free: 15.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.684e-05/0.1713, allocations: 15.88 kB / 443.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.823e-05/0.1714, allocations: 19.91 kB / 443.6 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.336e-05/0.1714, allocations: 0 / 443.6 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.071e-05/0.1715, allocations: 4 kB / 443.6 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.904e-05/0.1715, allocations: 4 kB / 443.6 MB, free: 15.17 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.285e-05/0.1716, allocations: 41.56 kB / 443.7 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001036/0.1717, allocations: 19.97 kB / 443.7 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1717, allocations: 0 / 443.7 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1718, allocations: 0 / 443.7 MB, free: 15.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.1718, allocations: 4 kB / 443.7 MB, free: 15.1 MB / 298.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.0006317/0.1724, allocations: 343.5 kB / 444 MB, free: 14.72 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.179e-05/0.1725, allocations: 8.031 kB / 444.1 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.617e-05/0.1726, allocations: 7.906 kB / 444.1 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002524/0.1729, allocations: 179 kB / 444.2 MB, free: 14.49 MB / 298.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 0.000209/0.1731, allocations: 37.66 kB / 444.3 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.89e-05/0.1732, allocations: 0 / 444.3 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007187/0.1739, allocations: 127.2 kB / 444.4 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.174, allocations: 0 / 444.4 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.97e-05/0.174, allocations: 8 kB / 444.4 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.174, allocations: 3.984 kB / 444.4 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001278/0.1742, allocations: 15.98 kB / 444.4 MB, free: 14.28 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002046/0.1744, allocations: 161.6 kB / 444.6 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003885/0.1748, allocations: 143.7 kB / 444.7 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.086e-05/0.1749, allocations: 7.953 kB / 444.7 MB, free: 13.9 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.145e-05/0.1749, allocations: 30.56 kB / 444.8 MB, free: 13.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 4.719e-06/0.1749, allocations: 0 / 444.8 MB, free: 13.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.00046/0.1754, allocations: 158.7 kB / 444.9 MB, free: 13.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.563e-05/0.1755, allocations: 59.41 kB / 445 MB, free: 13.61 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001148/0.1756, allocations: 101.8 kB / 445.1 MB, free: 13.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/0.1757, allocations: 29.7 kB / 445.1 MB, free: 13.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.241e-05/0.1758, allocations: 158.6 kB / 445.3 MB, free: 13.31 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.67e-05/0.1758, allocations: 3.906 kB / 445.3 MB, free: 13.3 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.472e-06/0.1758, allocations: 0 / 445.3 MB, free: 13.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.854e-05/0.1759, allocations: 314.8 kB / 445.6 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.037e-05/0.176, allocations: 11.98 kB / 445.6 MB, free: 12.98 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.773e-05/0.1761, allocations: 32.3 kB / 445.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.981e-05/0.1762, allocations: 16 kB / 445.6 MB, free: 12.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-06/0.1762, allocations: 0 / 445.6 MB, free: 12.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002329/0.1765, allocations: 69.56 kB / 445.7 MB, free: 12.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.942e-05/0.1765, allocations: 7.953 kB / 445.7 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.1766, allocations: 4 kB / 445.7 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.28e-05/0.1766, allocations: 8.078 kB / 445.7 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.935e-05/0.1767, allocations: 15.94 kB / 445.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.386e-05/0.1768, allocations: 4 kB / 445.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.972e-05/0.1769, allocations: 0 / 445.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.1769, allocations: 4.594 kB / 445.7 MB, free: 12.8 MB / 298.7 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 (pulse.startOutput,$CLKPRE.pulse.startOutput,pulse.counter,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001363/0.1771, allocations: 121.6 kB / 445.9 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002546/0.1773, allocations: 65.59 kB / 445.9 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.238e-05/0.1774, allocations: 11.92 kB / 445.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.1774, allocations: 0 / 445.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/0.1775, allocations: 0 / 445.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.1775, allocations: 11.88 kB / 445.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004251/0.1818, allocations: 161.7 kB / 446.1 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.284e-05/0.1818, allocations: 3.984 kB / 446.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.277e-05/0.1819, allocations: 0 / 446.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.081e-05/0.1819, allocations: 0 / 446.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.255e-05/0.182, allocations: 4 kB / 446.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.506e-06/0.182, allocations: 3.953 kB / 446.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.632e-06/0.182, allocations: 7.984 kB / 446.1 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003565/0.1824, allocations: 85.12 kB / 446.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.148e-05/0.1825, allocations: 81.02 kB / 446.3 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.598e-05/0.1826, allocations: 7.984 kB / 446.3 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/0.1827, allocations: 4 kB / 446.3 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.06e-05/0.1827, allocations: 3.953 kB / 446.3 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.032e-05/0.1828, allocations: 4 kB / 446.3 MB, free: 12.13 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.834e-05/0.1829, allocations: 79.28 kB / 446.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.32e-07/0.1829, allocations: 0 / 446.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005216/0.1834, allocations: 12 kB / 446.4 MB, free: 12.04 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001797/0.1836, allocations: 107.1 kB / 446.5 MB, free: 11.93 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003067/0.184, allocations: 35.92 kB / 446.5 MB, free: 11.89 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.184, allocations: 0 / 446.5 MB, free: 11.89 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.495e-06/0.184, allocations: 0 / 446.5 MB, free: 11.89 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001137/0.1852, allocations: 0.7145 MB / 447.2 MB, free: 11.15 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000683/0.1859, allocations: 166.3 kB / 447.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002096/0.1862, allocations: 0.6887 MB / 448.1 MB, free: 10.24 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.801e-05/0.1863, allocations: 15.38 kB / 448.1 MB, free: 10.22 MB / 298.7 MB Notification: Performance of SimCode: time 1.763e-06/0.1863, allocations: 0 / 448.1 MB, free: 10.22 MB / 298.7 MB Notification: Performance of Templates: time 0.02379/0.2101, allocations: 0.7413 MB / 448.9 MB, free: 9.484 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches