Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample.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.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0028/0.0028, 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.107/4.107, allocations: 205.4 MB / 222.6 MB, free: 9.117 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.007034/0.007034, allocations: 78.94 kB / 270.9 MB, free: 8.371 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.2192/0.2192, allocations: 12.59 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009582/0.0009588, allocations: 15.98 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1717/0.1727, allocations: 50.37 MB / 442.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample): time 0.007744/0.1805, allocations: 1.246 MB / 443.6 MB, free: 15.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001822/0.1824, allocations: 0.5078 MB / 444.1 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001505/0.1827, allocations: 4 kB / 444.1 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.703e-05/0.1828, allocations: 3.938 kB / 444.1 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001916/0.183, allocations: 7.969 kB / 444.1 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005625/0.1836, allocations: 47.83 kB / 444.2 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001561/0.1837, allocations: 27.95 kB / 444.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001675/0.1839, allocations: 15.98 kB / 444.2 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001411/0.1841, allocations: 15.88 kB / 444.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001043/0.1842, allocations: 23.91 kB / 444.2 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.831e-05/0.1843, allocations: 0 / 444.2 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.509e-05/0.1843, allocations: 4 kB / 444.2 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.481e-05/0.1844, allocations: 11.92 kB / 444.3 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.136e-05/0.1845, allocations: 33.7 kB / 444.3 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001319/0.1846, allocations: 27.95 kB / 444.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1846, allocations: 0 / 444.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.136e-06/0.1847, allocations: 3.938 kB / 444.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.485e-06/0.1847, allocations: 0 / 444.3 MB, free: 14.48 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.0006889/0.1854, allocations: 375.2 kB / 444.7 MB, free: 14.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.538e-05/0.1855, allocations: 11.97 kB / 444.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.829e-05/0.1855, allocations: 7.906 kB / 444.7 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003566/0.1859, allocations: 198.8 kB / 444.9 MB, free: 13.81 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.186, allocations: 0 / 444.9 MB, free: 13.81 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.531e-05/0.186, allocations: 4 kB / 444.9 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005185/0.1866, allocations: 109 kB / 445 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.1866, allocations: 0 / 445 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.815e-05/0.1866, allocations: 0 / 445 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.1867, allocations: 4 kB / 445 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002134/0.1869, allocations: 23.92 kB / 445 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005681/0.1875, allocations: 265.8 kB / 445.3 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001975/0.1877, allocations: 41.16 kB / 445.3 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.514e-05/0.1878, allocations: 0 / 445.3 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.773e-05/0.1879, allocations: 46.61 kB / 445.4 MB, free: 13.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 3.085e-06/0.1879, allocations: 0 / 445.4 MB, free: 13.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0005256/0.1884, allocations: 69.53 kB / 445.5 MB, free: 13.15 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.391e-05/0.1885, allocations: 81.34 kB / 445.5 MB, free: 13.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002062/0.1887, allocations: 142.1 kB / 445.7 MB, free: 12.9 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/0.1888, allocations: 25.7 kB / 445.7 MB, free: 12.87 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.286e-05/0.1889, allocations: 158.5 kB / 445.9 MB, free: 12.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.993e-05/0.1889, allocations: 7.906 kB / 445.9 MB, free: 12.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.362e-06/0.1889, allocations: 0 / 445.9 MB, free: 12.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.756e-05/0.189, allocations: 314.8 kB / 446.2 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001267/0.1892, allocations: 11.98 kB / 446.2 MB, free: 12.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001035/0.1893, allocations: 21.66 kB / 446.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.1895, allocations: 15.98 kB / 446.2 MB, free: 12.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.635e-06/0.1895, allocations: 0 / 446.2 MB, free: 12.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.001546/0.1911, allocations: 61.72 kB / 446.3 MB, free: 12.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.774e-05/0.1912, allocations: 4 kB / 446.3 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.1912, allocations: 4 kB / 446.3 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.882e-05/0.1913, allocations: 3.984 kB / 446.3 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.1914, allocations: 7.938 kB / 446.3 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.1915, allocations: 0 / 446.3 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001144/0.1916, allocations: 7.953 kB / 446.3 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.1916, allocations: 0 / 446.3 MB, free: 12.24 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.0001539/0.1918, allocations: 129.6 kB / 446.4 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.192, allocations: 33.61 kB / 446.5 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.314e-05/0.1921, allocations: 15.83 kB / 446.5 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.358e-06/0.1921, allocations: 3.984 kB / 446.5 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.1921, allocations: 4 kB / 446.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.1921, allocations: 0 / 446.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003041/0.1925, allocations: 165.6 kB / 446.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.1925, allocations: 3.938 kB / 446.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001408/0.1926, allocations: 12 kB / 446.7 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.037e-05/0.1927, allocations: 0 / 446.7 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.976e-05/0.1927, allocations: 8.031 kB / 446.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.1927, allocations: 3.938 kB / 446.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.1928, allocations: 0 / 446.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004146/0.1932, allocations: 178 kB / 446.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.1934, allocations: 89.09 kB / 446.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.403e-05/0.1934, allocations: 0 / 446.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001972/0.1936, allocations: 4 kB / 446.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.176e-05/0.1937, allocations: 0 / 446.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.993e-05/0.1938, allocations: 11.97 kB / 447 MB, free: 11.48 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001673/0.1939, allocations: 107.2 kB / 447.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.194, allocations: 0 / 447.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007043/0.1947, allocations: 4 kB / 447.1 MB, free: 11.38 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.0001698/0.1949, allocations: 99.28 kB / 447.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002959/0.1952, allocations: 23.92 kB / 447.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.1952, allocations: 0 / 447.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001062/0.1953, allocations: 15.98 kB / 447.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005659/0.1959, allocations: 21.22 kB / 447.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006547/0.1966, allocations: 207.5 kB / 447.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.1969, allocations: 0.6926 MB / 448.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.446e-05/0.197, allocations: 11.44 kB / 448.1 MB, free: 10.24 MB / 298.7 MB Notification: Performance of SimCode: time 1.773e-06/0.197, allocations: 4 kB / 448.1 MB, free: 10.24 MB / 298.7 MB Notification: Performance of Templates: time 0.004573/0.2016, allocations: 0.7059 MB / 448.8 MB, free: 9.535 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches