Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.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.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00289/0.002895, allocations: 186.4 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 3.998/3.998, allocations: 205.4 MB / 222.6 MB, free: 13.83 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.002183/0.002184, allocations: 98.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.2/0.2, allocations: 12.6 MB / 331.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009376/0.0009379, allocations: 17.47 kB / 392 MB, free: 54.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1879/0.1889, allocations: 50.37 MB / 442.3 MB, free: 11.63 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample): time 0.002982/0.192, allocations: 1.269 MB / 443.6 MB, free: 10.35 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001472/0.1935, allocations: 496.1 kB / 444.1 MB, free: 9.855 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001708/0.1938, allocations: 0 / 444.1 MB, free: 9.855 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.286e-05/0.1939, allocations: 7.938 kB / 444.1 MB, free: 9.848 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001796/0.1941, allocations: 7.984 kB / 444.1 MB, free: 9.84 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005035/0.1946, allocations: 43.83 kB / 444.2 MB, free: 9.797 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001508/0.1948, allocations: 27.95 kB / 444.2 MB, free: 9.77 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000139/0.1949, allocations: 16.19 kB / 444.2 MB, free: 9.754 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001354/0.1951, allocations: 27.84 kB / 444.2 MB, free: 9.727 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.11e-05/0.1952, allocations: 11.92 kB / 444.2 MB, free: 9.715 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.966e-05/0.1952, allocations: 4 kB / 444.2 MB, free: 9.711 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.091e-05/0.1953, allocations: 0 / 444.2 MB, free: 9.711 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.756e-05/0.1953, allocations: 11.94 kB / 444.3 MB, free: 9.699 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.923e-05/0.1954, allocations: 29.7 kB / 444.3 MB, free: 9.664 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001214/0.1955, allocations: 39.86 kB / 444.3 MB, free: 9.625 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1955, allocations: 7.938 kB / 444.3 MB, free: 9.617 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1955, allocations: 0 / 444.3 MB, free: 9.617 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.1956, allocations: 4 kB / 444.3 MB, free: 9.613 MB / 282.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.0006236/0.1962, allocations: 367.8 kB / 444.7 MB, free: 9.207 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/0.1963, allocations: 12.03 kB / 444.7 MB, free: 9.195 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.709e-05/0.1963, allocations: 11.91 kB / 444.7 MB, free: 9.184 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002682/0.1966, allocations: 194.8 kB / 444.9 MB, free: 8.953 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.1967, allocations: 4 kB / 444.9 MB, free: 8.949 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.265e-05/0.1967, allocations: 8 kB / 444.9 MB, free: 8.941 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004218/0.1971, allocations: 113.9 kB / 445 MB, free: 8.809 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.056e-05/0.1972, allocations: 0 / 445 MB, free: 8.809 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.013e-05/0.1973, allocations: 4 kB / 445 MB, free: 8.805 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.627e-06/0.1973, allocations: 0 / 445 MB, free: 8.805 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000241/0.1975, allocations: 31.92 kB / 445.1 MB, free: 8.773 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005533/0.1981, allocations: 270.6 kB / 445.3 MB, free: 8.453 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002171/0.1984, allocations: 71.84 kB / 445.4 MB, free: 8.355 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.105e-05/0.1984, allocations: 7.922 kB / 445.4 MB, free: 8.348 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.31e-05/0.1985, allocations: 38.55 kB / 445.4 MB, free: 8.301 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 3.507e-06/0.1985, allocations: 0 / 445.4 MB, free: 8.301 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0005439/0.199, allocations: 93.58 kB / 445.5 MB, free: 8.203 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.5e-05/0.1991, allocations: 106.8 kB / 445.6 MB, free: 8.074 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001938/0.1993, allocations: 153.5 kB / 445.8 MB, free: 7.914 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.1994, allocations: 30.08 kB / 445.8 MB, free: 7.879 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.367e-05/0.1995, allocations: 158.6 kB / 446 MB, free: 7.723 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.567e-05/0.1995, allocations: 7.844 kB / 446 MB, free: 7.715 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.801e-06/0.1995, allocations: 0 / 446 MB, free: 7.715 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.442e-05/0.1996, allocations: 310.8 kB / 446.3 MB, free: 7.402 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002002/0.1999, allocations: 15.98 kB / 446.3 MB, free: 7.387 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000195/0.2001, allocations: 39.44 kB / 446.3 MB, free: 7.336 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001985/0.2003, allocations: 11.98 kB / 446.4 MB, free: 7.324 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.2004, allocations: 0 / 446.4 MB, free: 7.324 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0006471/0.201, allocations: 77.64 kB / 446.4 MB, free: 7.242 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3e-05/0.2011, allocations: 8 kB / 446.4 MB, free: 7.234 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.921e-05/0.2012, allocations: 0 / 446.4 MB, free: 7.234 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.065e-05/0.2012, allocations: 0 / 446.4 MB, free: 7.234 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001752/0.2014, allocations: 12 kB / 446.4 MB, free: 7.223 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.2014, allocations: 0 / 446.4 MB, free: 7.223 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001317/0.2016, allocations: 11.94 kB / 446.5 MB, free: 7.211 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.728e-05/0.2016, allocations: 0 / 446.5 MB, free: 7.211 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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.0001467/0.2018, allocations: 121.6 kB / 446.6 MB, free: 7.082 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001823/0.202, allocations: 57.56 kB / 446.6 MB, free: 7.02 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.446e-05/0.2021, allocations: 15.83 kB / 446.6 MB, free: 7.004 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/0.2021, allocations: 0 / 446.6 MB, free: 7.004 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.555e-06/0.2021, allocations: 0 / 446.6 MB, free: 7.004 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.2021, allocations: 4 kB / 446.7 MB, free: 7 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002964/0.2024, allocations: 177.5 kB / 446.8 MB, free: 6.777 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.2025, allocations: 4 kB / 446.8 MB, free: 6.773 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001584/0.2026, allocations: 8 kB / 446.8 MB, free: 6.766 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.185e-06/0.2027, allocations: 0 / 446.8 MB, free: 6.766 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.2027, allocations: 4.062 kB / 446.8 MB, free: 6.762 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.037e-06/0.2027, allocations: 7.984 kB / 446.8 MB, free: 6.754 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.2027, allocations: 3.938 kB / 446.9 MB, free: 6.75 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004001/0.2032, allocations: 204.5 kB / 447.1 MB, free: 6.516 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.741e-05/0.2033, allocations: 97 kB / 447.1 MB, free: 6.402 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.589e-05/0.2033, allocations: 4 kB / 447.2 MB, free: 6.398 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001848/0.2035, allocations: 0 / 447.2 MB, free: 6.398 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.287e-05/0.2036, allocations: 7.953 kB / 447.2 MB, free: 6.391 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.2037, allocations: 3.938 kB / 447.2 MB, free: 6.387 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000137/0.2038, allocations: 107.2 kB / 447.3 MB, free: 6.281 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.2038, allocations: 4 kB / 447.3 MB, free: 6.277 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005544/0.2044, allocations: 12 kB / 447.3 MB, free: 6.266 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (4): * Single equations (assignments): 4 * 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.0001564/0.2046, allocations: 91.25 kB / 447.4 MB, free: 6.168 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00035/0.205, allocations: 43.91 kB / 447.4 MB, free: 6.125 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.205, allocations: 0 / 447.4 MB, free: 6.125 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001053/0.2051, allocations: 16.19 kB / 447.4 MB, free: 6.109 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006367/0.2058, allocations: 31.77 kB / 447.5 MB, free: 6.082 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006951/0.2065, allocations: 220.5 kB / 447.7 MB, free: 5.828 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002198/0.2068, allocations: 0.7005 MB / 448.4 MB, free: 5.102 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.294e-05/0.2069, allocations: 15.44 kB / 448.4 MB, free: 5.086 MB / 282.7 MB Notification: Performance of SimCode: time 1.402e-06/0.2069, allocations: 0 / 448.4 MB, free: 5.086 MB / 282.7 MB Notification: Performance of Templates: time 0.004543/0.2115, allocations: 0.8076 MB / 449.2 MB, free: 4.285 MB / 282.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches