Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.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.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002795/0.002799, allocations: 182.9 kB / 16.45 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.381/4.381, 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.006054/0.006054, allocations: 102.8 kB / 270.9 MB, free: 8.352 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.236/0.236, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001011/0.001011, allocations: 20 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1662/0.1673, allocations: 50.38 MB / 442.4 MB, free: 16.47 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample): time 0.003857/0.1712, allocations: 1.235 MB / 443.6 MB, free: 15.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001645/0.1729, allocations: 492 kB / 444.1 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001522/0.1732, allocations: 0 / 444.1 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 6.387e-05/0.1733, allocations: 3.938 kB / 444.1 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002237/0.1735, allocations: 15.98 kB / 444.1 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004851/0.174, allocations: 35.89 kB / 444.1 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001402/0.1742, allocations: 23.97 kB / 444.1 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.1743, allocations: 19.92 kB / 444.2 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001245/0.1745, allocations: 15.86 kB / 444.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.967e-05/0.1746, allocations: 19.92 kB / 444.2 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.792e-05/0.1746, allocations: 0 / 444.2 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.231e-05/0.1747, allocations: 4 kB / 444.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.072e-05/0.1747, allocations: 15.92 kB / 444.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.545e-05/0.1748, allocations: 37.64 kB / 444.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001243/0.1749, allocations: 31.94 kB / 444.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.1749, allocations: 0 / 444.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.175, allocations: 0 / 444.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.175, allocations: 0 / 444.3 MB, free: 14.5 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.000651/0.1756, allocations: 371.2 kB / 444.6 MB, free: 14.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.627e-05/0.1757, allocations: 8.031 kB / 444.7 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.561e-05/0.1758, allocations: 7.906 kB / 444.7 MB, free: 14.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002786/0.1761, allocations: 206.8 kB / 444.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.1761, allocations: 0 / 444.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.549e-05/0.1762, allocations: 8 kB / 444.9 MB, free: 13.83 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004485/0.1766, allocations: 105 kB / 445 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.1767, allocations: 4 kB / 445 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.1767, allocations: 0 / 445 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.827e-06/0.1767, allocations: 4 kB / 445 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001771/0.1769, allocations: 23.92 kB / 445 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005002/0.1774, allocations: 257.8 kB / 445.3 MB, free: 13.37 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001594/0.1776, allocations: 49.14 kB / 445.3 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.274e-05/0.1777, allocations: 0 / 445.3 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.566e-05/0.1777, allocations: 38.62 kB / 445.3 MB, free: 13.26 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 2.395e-06/0.1777, allocations: 0 / 445.3 MB, free: 13.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0004771/0.1782, allocations: 77.61 kB / 445.4 MB, free: 13.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.053e-05/0.1783, allocations: 77.11 kB / 445.5 MB, free: 13.08 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001922/0.1785, allocations: 142.1 kB / 445.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.1785, allocations: 25.7 kB / 445.7 MB, free: 12.9 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.339e-05/0.1786, allocations: 158.5 kB / 445.8 MB, free: 12.74 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.101e-05/0.1787, allocations: 8.062 kB / 445.8 MB, free: 12.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.491e-06/0.1787, allocations: 4 kB / 445.8 MB, free: 12.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.757e-05/0.1788, allocations: 314.8 kB / 446.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.043e-05/0.1789, allocations: 11.98 kB / 446.1 MB, free: 12.4 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.469e-05/0.179, allocations: 17.72 kB / 446.2 MB, free: 12.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001003/0.1791, allocations: 19.98 kB / 446.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.1791, allocations: 4 kB / 446.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002643/0.1794, allocations: 49.69 kB / 446.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.629e-05/0.1795, allocations: 8 kB / 446.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.1795, allocations: 0 / 446.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.983e-05/0.1795, allocations: 0 / 446.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001364/0.1797, allocations: 11.92 kB / 446.3 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.1797, allocations: 8.047 kB / 446.3 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.387e-05/0.1798, allocations: 7.953 kB / 446.3 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.1798, allocations: 0 / 446.3 MB, free: 12.27 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001177/0.18, allocations: 121.6 kB / 446.4 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/0.1801, allocations: 41.53 kB / 446.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.165e-05/0.1801, allocations: 15.83 kB / 446.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.1802, allocations: 7.922 kB / 446.5 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.1802, allocations: 4 kB / 446.5 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.1802, allocations: 4.031 kB / 446.5 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002803/0.1805, allocations: 169.6 kB / 446.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.1805, allocations: 0 / 446.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001114/0.1806, allocations: 11.98 kB / 446.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.171e-06/0.1807, allocations: 0 / 446.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.1807, allocations: 0 / 446.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.1807, allocations: 0 / 446.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.1807, allocations: 3.938 kB / 446.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000306/0.181, allocations: 182 kB / 446.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.452e-05/0.1812, allocations: 85.09 kB / 446.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.864e-05/0.1812, allocations: 0 / 446.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001789/0.1814, allocations: 4 kB / 446.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.13e-05/0.1815, allocations: 0 / 446.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.1815, allocations: 12.03 kB / 446.9 MB, free: 11.51 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001263/0.1816, allocations: 111.2 kB / 447 MB, free: 11.4 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.1817, allocations: 0 / 447 MB, free: 11.4 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005346/0.1822, allocations: 8 kB / 447 MB, free: 11.39 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0001349/0.1824, allocations: 91.25 kB / 447.1 MB, free: 11.29 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002771/0.1827, allocations: 31.98 kB / 447.2 MB, free: 11.26 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.1827, allocations: 0 / 447.2 MB, free: 11.26 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.176e-05/0.1828, allocations: 11.98 kB / 447.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005394/0.1833, allocations: 17.23 kB / 447.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006131/0.184, allocations: 211.5 kB / 447.4 MB, free: 10.99 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002262/0.1842, allocations: 0.6926 MB / 448.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.148e-05/0.1843, allocations: 11.44 kB / 448.1 MB, free: 10.26 MB / 298.7 MB Notification: Performance of SimCode: time 1.803e-06/0.1843, allocations: 0 / 448.1 MB, free: 10.26 MB / 298.7 MB Notification: Performance of Templates: time 0.003854/0.1882, allocations: 0.7058 MB / 448.8 MB, free: 9.559 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches