Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.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.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.007275/0.007282, allocations: 188 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.933/3.933, allocations: 205.4 MB / 222.6 MB, free: 13.84 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.001871/0.001871, allocations: 114.8 kB / 270.9 MB, free: 13.35 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.1937/0.1937, allocations: 12.59 MB / 331.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009813/0.0009815, allocations: 12.56 kB / 392 MB, free: 54.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.1729, allocations: 50.38 MB / 442.4 MB, free: 11.6 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1): time 0.003657/0.1767, allocations: 1.519 MB / 443.9 MB, free: 10.06 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002215/0.179, allocations: 0.6248 MB / 444.5 MB, free: 9.434 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003034/0.1794, allocations: 4 kB / 444.5 MB, free: 9.43 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.083e-05/0.1795, allocations: 11.86 kB / 444.5 MB, free: 9.418 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003047/0.1798, allocations: 31.89 kB / 444.5 MB, free: 9.387 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008829/0.1807, allocations: 83.78 kB / 444.6 MB, free: 9.305 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003816/0.1811, allocations: 95.67 kB / 444.7 MB, free: 9.211 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002643/0.1814, allocations: 45.7 kB / 444.8 MB, free: 9.164 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000217/0.1816, allocations: 31.86 kB / 444.8 MB, free: 9.133 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000145/0.1818, allocations: 43.7 kB / 444.8 MB, free: 9.09 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.586e-05/0.1819, allocations: 4 kB / 444.8 MB, free: 9.086 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.765e-05/0.1819, allocations: 4 kB / 444.8 MB, free: 9.082 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.251e-05/0.182, allocations: 15.92 kB / 444.9 MB, free: 9.066 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.57e-05/0.1821, allocations: 49.58 kB / 444.9 MB, free: 9.012 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002266/0.1823, allocations: 91.8 kB / 445 MB, free: 8.922 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1824, allocations: 0 / 445 MB, free: 8.922 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.206e-06/0.1824, allocations: 0 / 445 MB, free: 8.922 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.734e-05/0.1824, allocations: 0 / 445 MB, free: 8.922 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0009756/0.1834, allocations: 430.6 kB / 445.4 MB, free: 8.457 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.896e-05/0.1835, allocations: 12.03 kB / 445.4 MB, free: 8.445 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.772e-05/0.1836, allocations: 15.81 kB / 445.4 MB, free: 8.43 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004726/0.1841, allocations: 239.6 kB / 445.7 MB, free: 8.156 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.039e-05/0.1842, allocations: 8.188 kB / 445.7 MB, free: 8.148 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.31e-05/0.1842, allocations: 8 kB / 445.7 MB, free: 8.141 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/0.1856, allocations: 293.3 kB / 446 MB, free: 7.828 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.655e-05/0.1857, allocations: 3.938 kB / 446 MB, free: 7.824 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.292e-05/0.1857, allocations: 0 / 446 MB, free: 7.824 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.1858, allocations: 4 kB / 446 MB, free: 7.82 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006395/0.1864, allocations: 87.88 kB / 446.1 MB, free: 7.734 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/0.1876, allocations: 423.5 kB / 446.5 MB, free: 7.258 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001229/0.1889, allocations: 314.2 kB / 446.8 MB, free: 6.887 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.304e-05/0.1891, allocations: 12.06 kB / 446.8 MB, free: 6.875 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.727e-05/0.1891, allocations: 38.56 kB / 446.8 MB, free: 6.828 MB / 282.7 MB Notification: Performance of pre-optimization done (n=17): time 4.779e-06/0.1892, allocations: 0 / 446.8 MB, free: 6.828 MB / 282.7 MB Notification: Performance of matching and sorting (n=17): time 0.001423/0.1906, allocations: 237.1 kB / 447.1 MB, free: 6.59 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/0.1908, allocations: 191.9 kB / 447.3 MB, free: 6.359 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003358/0.1911, allocations: 183.3 kB / 447.4 MB, free: 6.172 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.046e-05/0.1912, allocations: 29.7 kB / 447.5 MB, free: 6.137 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.1913, allocations: 166.6 kB / 447.6 MB, free: 5.973 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.404e-05/0.1914, allocations: 19.77 kB / 447.7 MB, free: 5.953 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.315e-05/0.1914, allocations: 4 kB / 447.7 MB, free: 5.949 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.885e-05/0.1916, allocations: 318.8 kB / 448 MB, free: 5.629 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001848/0.1918, allocations: 23.98 kB / 448 MB, free: 5.605 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002612/0.192, allocations: 129.5 kB / 448.1 MB, free: 5.43 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002312/0.1923, allocations: 51.95 kB / 448.2 MB, free: 5.379 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/0.1923, allocations: 0 / 448.2 MB, free: 5.379 MB / 282.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0006639/0.193, allocations: 157.5 kB / 448.3 MB, free: 5.219 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.388e-05/0.1931, allocations: 4 kB / 448.3 MB, free: 5.215 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.1931, allocations: 4 kB / 448.3 MB, free: 5.211 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.33e-05/0.1932, allocations: 11.98 kB / 448.3 MB, free: 5.199 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003241/0.1935, allocations: 31.92 kB / 448.4 MB, free: 5.168 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.201e-05/0.1936, allocations: 11.94 kB / 448.4 MB, free: 5.156 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002851/0.1939, allocations: 12 kB / 448.4 MB, free: 5.145 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.792e-05/0.1939, allocations: 8.219 kB / 448.4 MB, free: 5.137 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (17): * Single equations (assignments): 17 * 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.0002438/0.1942, allocations: 149.4 kB / 448.6 MB, free: 4.98 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006993/0.1949, allocations: 149.7 kB / 448.7 MB, free: 4.828 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.387e-05/0.195, allocations: 21.39 kB / 448.7 MB, free: 4.809 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/0.1951, allocations: 4 kB / 448.7 MB, free: 4.805 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.307e-06/0.1951, allocations: 4.125 kB / 448.7 MB, free: 4.801 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/0.1951, allocations: 3.938 kB / 448.7 MB, free: 4.797 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005598/0.1957, allocations: 225.4 kB / 449 MB, free: 4.527 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.1957, allocations: 4 kB / 449 MB, free: 4.523 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004112/0.1962, allocations: 39.92 kB / 449 MB, free: 4.484 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.612e-05/0.1962, allocations: 4 kB / 449 MB, free: 4.48 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.025e-05/0.1963, allocations: 4 kB / 449 MB, free: 4.477 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.241e-05/0.1963, allocations: 7.984 kB / 449 MB, free: 4.469 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/0.1963, allocations: 0 / 449 MB, free: 4.469 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001973/0.1983, allocations: 411.8 kB / 449.4 MB, free: 4.016 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002407/0.1986, allocations: 116.8 kB / 449.5 MB, free: 3.883 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.101e-05/0.1987, allocations: 7.953 kB / 449.5 MB, free: 3.875 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004425/0.1992, allocations: 19.98 kB / 449.6 MB, free: 3.855 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.884e-05/0.1992, allocations: 0 / 449.6 MB, free: 3.855 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.716e-05/0.1993, allocations: 8 kB / 449.6 MB, free: 3.848 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002306/0.1995, allocations: 137.1 kB / 449.7 MB, free: 3.715 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.61e-07/0.1996, allocations: 0 / 449.7 MB, free: 3.715 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008255/0.2004, allocations: 20 kB / 449.7 MB, free: 3.695 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (17): * Single equations (assignments): 17 * 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.0001861/0.2006, allocations: 95.25 kB / 449.8 MB, free: 3.594 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007706/0.2014, allocations: 123.8 kB / 449.9 MB, free: 3.473 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/0.2015, allocations: 0 / 449.9 MB, free: 3.473 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001301/0.2016, allocations: 12.94 kB / 449.9 MB, free: 3.461 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.203, allocations: 112 kB / 450.1 MB, free: 3.352 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003428/0.2065, allocations: 0.5486 MB / 450.6 MB, free: 2.758 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003166/0.2069, allocations: 0.728 MB / 451.3 MB, free: 2.004 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.207, allocations: 19.7 kB / 451.3 MB, free: 1.984 MB / 282.7 MB Notification: Performance of SimCode: time 2.385e-06/0.207, allocations: 0 / 451.3 MB, free: 1.984 MB / 282.7 MB Notification: Performance of Templates: time 0.01192/0.219, allocations: 1.722 MB / 453.1 MB, free: 272 kB / 282.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches