Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.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.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003027/0.003032, allocations: 187.9 kB / 16.45 MB, free: 5.582 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.218/4.218, allocations: 205.4 MB / 222.6 MB, free: 13.85 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.002003/0.002003, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1976/0.1976, allocations: 12.6 MB / 331.8 MB, free: 10.32 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0009929/0.0009932, allocations: 15 kB / 392 MB, free: 54.9 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1831/0.1842, allocations: 50.37 MB / 442.3 MB, free: 11.65 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample): time 0.003386/0.1877, allocations: 1.304 MB / 443.6 MB, free: 10.33 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.001894/0.1896, allocations: 0.5195 MB / 444.2 MB, free: 9.805 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002002/0.1899, allocations: 4 kB / 444.2 MB, free: 9.801 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 7.129e-05/0.19, allocations: 3.938 kB / 444.2 MB, free: 9.797 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0001985/0.1902, allocations: 15.86 kB / 444.2 MB, free: 9.781 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005977/0.1909, allocations: 49.64 kB / 444.2 MB, free: 9.734 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 0.0001701/0.191, allocations: 39.89 kB / 444.3 MB, free: 9.695 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001562/0.1912, allocations: 19.98 kB / 444.3 MB, free: 9.676 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001387/0.1914, allocations: 27.84 kB / 444.3 MB, free: 9.648 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 9.65e-05/0.1915, allocations: 19.88 kB / 444.3 MB, free: 9.629 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 2.379e-05/0.1916, allocations: 0 / 444.3 MB, free: 9.629 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 2.303e-05/0.1916, allocations: 3.938 kB / 444.3 MB, free: 9.625 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 5.652e-05/0.1917, allocations: 15.92 kB / 444.4 MB, free: 9.609 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 4.122e-05/0.1917, allocations: 33.7 kB / 444.4 MB, free: 9.57 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.000138/0.1919, allocations: 39.92 kB / 444.4 MB, free: 9.531 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1919, allocations: 4 kB / 444.4 MB, free: 9.527 MB / 282.8 MB Notification: Performance of FrontEnd: time 2.785e-06/0.1919, allocations: 0 / 444.4 MB, free: 9.527 MB / 282.8 MB Notification: Performance of Transformations before backend: time 1.589e-05/0.192, allocations: 0 / 444.4 MB, free: 9.527 MB / 282.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007541/0.1927, allocations: 387.7 kB / 444.8 MB, free: 9.102 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.191e-05/0.1928, allocations: 12.03 kB / 444.8 MB, free: 9.09 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.771e-05/0.1929, allocations: 11.81 kB / 444.8 MB, free: 9.078 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004533/0.1975, allocations: 198.8 kB / 445 MB, free: 8.844 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.423e-05/0.1976, allocations: 4 kB / 445 MB, free: 8.84 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.606e-05/0.1976, allocations: 8 kB / 445 MB, free: 8.832 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005879/0.1982, allocations: 138.7 kB / 445.2 MB, free: 8.672 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.1983, allocations: 0 / 445.2 MB, free: 8.672 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.747e-05/0.1983, allocations: 0 / 445.2 MB, free: 8.672 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.1983, allocations: 4 kB / 445.2 MB, free: 8.668 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000224/0.1986, allocations: 31.92 kB / 445.2 MB, free: 8.637 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005437/0.1991, allocations: 287.5 kB / 445.5 MB, free: 8.297 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002694/0.1994, allocations: 98.34 kB / 445.6 MB, free: 8.164 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 4.357e-05/0.1995, allocations: 4.062 kB / 445.6 MB, free: 8.16 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.957e-05/0.1996, allocations: 42.55 kB / 445.6 MB, free: 8.109 MB / 282.8 MB Notification: Performance of pre-optimization done (n=6): time 4.308e-06/0.1996, allocations: 0 / 445.6 MB, free: 8.109 MB / 282.8 MB Notification: Performance of matching and sorting (n=6): time 0.0006432/0.2003, allocations: 105.9 kB / 445.7 MB, free: 8 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.659e-05/0.2004, allocations: 136.5 kB / 445.9 MB, free: 7.836 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002384/0.2006, allocations: 154.3 kB / 446 MB, free: 7.672 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.2007, allocations: 25.7 kB / 446.1 MB, free: 7.641 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 7.956e-05/0.2008, allocations: 162.7 kB / 446.2 MB, free: 7.48 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.129e-05/0.2008, allocations: 3.984 kB / 446.2 MB, free: 7.477 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.935e-06/0.2009, allocations: 4 kB / 446.2 MB, free: 7.473 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 9.868e-05/0.201, allocations: 314.8 kB / 446.5 MB, free: 7.156 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.2012, allocations: 27.92 kB / 446.6 MB, free: 7.129 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001268/0.2013, allocations: 45.16 kB / 446.6 MB, free: 7.066 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001303/0.2015, allocations: 23.98 kB / 446.6 MB, free: 7.043 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.2015, allocations: 0 / 446.6 MB, free: 7.043 MB / 282.8 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003497/0.2018, allocations: 81.55 kB / 446.7 MB, free: 6.957 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.727e-05/0.2019, allocations: 7.938 kB / 446.7 MB, free: 6.949 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.2019, allocations: 8.188 kB / 446.7 MB, free: 6.941 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.455e-05/0.202, allocations: 0 / 446.7 MB, free: 6.941 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001852/0.2022, allocations: 15.98 kB / 446.7 MB, free: 6.926 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.2022, allocations: 3.938 kB / 446.7 MB, free: 6.922 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001236/0.2023, allocations: 4 kB / 446.7 MB, free: 6.918 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.957e-05/0.2024, allocations: 8 kB / 446.7 MB, free: 6.91 MB / 282.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (6): * Single equations (assignments): 6 * 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.0001554/0.2026, allocations: 129.6 kB / 446.9 MB, free: 6.773 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002264/0.2028, allocations: 69.45 kB / 446.9 MB, free: 6.699 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.021e-05/0.2029, allocations: 19.81 kB / 447 MB, free: 6.68 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.2029, allocations: 0 / 447 MB, free: 6.68 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/0.2029, allocations: 4 kB / 447 MB, free: 6.676 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.203, allocations: 0 / 447 MB, free: 6.676 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000326/0.2033, allocations: 181.5 kB / 447.1 MB, free: 6.449 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.259e-06/0.2033, allocations: 0 / 447.1 MB, free: 6.449 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002047/0.2036, allocations: 15.98 kB / 447.2 MB, free: 6.434 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.304e-05/0.2036, allocations: 4 kB / 447.2 MB, free: 6.43 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.2036, allocations: 0 / 447.2 MB, free: 6.43 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.2036, allocations: 8.031 kB / 447.2 MB, free: 6.422 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.2037, allocations: 4 kB / 447.2 MB, free: 6.418 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004625/0.2041, allocations: 235.2 kB / 447.4 MB, free: 6.145 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/0.2043, allocations: 97 kB / 447.5 MB, free: 6.031 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.267e-05/0.2043, allocations: 0 / 447.5 MB, free: 6.031 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001937/0.2045, allocations: 7.984 kB / 447.5 MB, free: 6.023 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.2e-05/0.2046, allocations: 7.938 kB / 447.5 MB, free: 6.016 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.545e-05/0.2047, allocations: 3.953 kB / 447.5 MB, free: 6.012 MB / 282.8 MB Notification: Performance of sorting global known variables: time 0.0001581/0.2048, allocations: 123 kB / 447.6 MB, free: 5.891 MB / 282.8 MB Notification: Performance of sort global known variables: time 6.21e-07/0.2048, allocations: 4 kB / 447.6 MB, free: 5.887 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.0006268/0.2055, allocations: 8 kB / 447.7 MB, free: 5.879 MB / 282.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (6): * Single equations (assignments): 6 * 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.0001661/0.2057, allocations: 91.25 kB / 447.7 MB, free: 5.781 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.0004411/0.2061, allocations: 47.91 kB / 447.8 MB, free: 5.734 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 5.942e-06/0.2062, allocations: 384 / 447.8 MB, free: 5.734 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.2063, allocations: 12 kB / 447.8 MB, free: 5.723 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007583/0.2071, allocations: 43.67 kB / 447.8 MB, free: 5.684 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008442/0.208, allocations: 261.6 kB / 448.1 MB, free: 5.387 MB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002595/0.2083, allocations: 0.7054 MB / 448.8 MB, free: 4.656 MB / 282.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.994e-05/0.2084, allocations: 11.44 kB / 448.8 MB, free: 4.645 MB / 282.8 MB Notification: Performance of SimCode: time 1.934e-06/0.2084, allocations: 0 / 448.8 MB, free: 4.645 MB / 282.8 MB Notification: Performance of Templates: time 0.005357/0.2138, allocations: 0.9889 MB / 449.8 MB, free: 3.66 MB / 282.8 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches