Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002816/0.00282, allocations: 182 kB / 16.45 MB, free: 5.711 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.812/3.812, 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.0018/0.0018, allocations: 96.36 kB / 270.9 MB, free: 8.359 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.2105/0.2105, allocations: 12.59 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009908/0.0009912, allocations: 16 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1683/0.1693, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Hold): time 0.004561/0.174, allocations: 1.294 MB / 443.6 MB, free: 15.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001486/0.1755, allocations: 0.5 MB / 444.1 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001724/0.1758, allocations: 4 kB / 444.2 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.946e-05/0.1758, allocations: 3.938 kB / 444.2 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004154/0.1763, allocations: 19.97 kB / 444.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005269/0.1768, allocations: 43.83 kB / 444.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001674/0.177, allocations: 35.89 kB / 444.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001531/0.1772, allocations: 23.91 kB / 444.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001283/0.1773, allocations: 19.92 kB / 444.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001016/0.1775, allocations: 23.84 kB / 444.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.938e-05/0.1775, allocations: 0 / 444.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.188e-05/0.1775, allocations: 8 kB / 444.3 MB, free: 14.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.934e-05/0.1776, allocations: 11.94 kB / 444.3 MB, free: 14.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.444e-05/0.1777, allocations: 37.64 kB / 444.4 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001417/0.1778, allocations: 43.86 kB / 444.4 MB, free: 14.37 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.1779, allocations: 0 / 444.4 MB, free: 14.37 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.358e-06/0.1779, allocations: 3.984 kB / 444.4 MB, free: 14.37 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.1779, allocations: 0 / 444.4 MB, free: 14.37 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006635/0.1786, allocations: 367.3 kB / 444.8 MB, free: 13.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.691e-05/0.1786, allocations: 8.031 kB / 444.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.709e-05/0.1787, allocations: 15.91 kB / 444.8 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002803/0.179, allocations: 203.2 kB / 445 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.1791, allocations: 3.938 kB / 445 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.709e-05/0.1791, allocations: 8 kB / 445 MB, free: 13.69 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004658/0.1796, allocations: 126.8 kB / 445.1 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.1796, allocations: 0 / 445.1 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.775e-05/0.1796, allocations: 3.984 kB / 445.1 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.1797, allocations: 4 kB / 445.1 MB, free: 13.53 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001862/0.1799, allocations: 31.86 kB / 445.2 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005362/0.1804, allocations: 287.5 kB / 445.5 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002131/0.1807, allocations: 102.4 kB / 445.6 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.709e-05/0.1807, allocations: 3.984 kB / 445.6 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.303e-05/0.1808, allocations: 38.62 kB / 445.6 MB, free: 12.97 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 3.086e-06/0.1808, allocations: 0 / 445.6 MB, free: 12.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005514/0.1813, allocations: 105.6 kB / 445.7 MB, free: 12.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.998e-05/0.1814, allocations: 132.5 kB / 445.8 MB, free: 12.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001961/0.1817, allocations: 150.3 kB / 446 MB, free: 12.55 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.417e-05/0.1817, allocations: 25.7 kB / 446 MB, free: 12.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.917e-05/0.1818, allocations: 158.8 kB / 446.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.322e-05/0.1818, allocations: 8.203 kB / 446.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.767e-06/0.1819, allocations: 8 kB / 446.2 MB, free: 12.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.41e-05/0.182, allocations: 314.8 kB / 446.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/0.1821, allocations: 19.98 kB / 446.5 MB, free: 12.01 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001183/0.1823, allocations: 44.22 kB / 446.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001193/0.1824, allocations: 20 kB / 446.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.862e-06/0.1824, allocations: 4 kB / 446.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003457/0.1828, allocations: 81.67 kB / 446.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.747e-05/0.1828, allocations: 8 kB / 446.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.1828, allocations: 0 / 446.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.803e-05/0.1829, allocations: 4 kB / 446.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001795/0.1831, allocations: 11.98 kB / 446.7 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.1831, allocations: 4 kB / 446.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001226/0.1833, allocations: 7.906 kB / 446.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.703e-05/0.1833, allocations: 4 kB / 446.7 MB, free: 11.8 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 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.0001515/0.1835, allocations: 137.5 kB / 446.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001696/0.1836, allocations: 53.61 kB / 446.9 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.833e-05/0.1837, allocations: 15.86 kB / 446.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.1837, allocations: 4 kB / 446.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/0.1838, allocations: 0 / 446.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.1838, allocations: 3.938 kB / 446.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003505/0.1841, allocations: 177.6 kB / 447.1 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.1842, allocations: 4 kB / 447.1 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000175/0.1844, allocations: 15.98 kB / 447.1 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.23e-05/0.1844, allocations: 8 kB / 447.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.569e-05/0.1844, allocations: 4.125 kB / 447.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.566e-06/0.1844, allocations: 8 kB / 447.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.1845, allocations: 0 / 447.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004453/0.1849, allocations: 235.1 kB / 447.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.185, allocations: 93 kB / 447.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.643e-05/0.1851, allocations: 4 kB / 447.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001857/0.1853, allocations: 0 / 447.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.858e-05/0.1854, allocations: 11.94 kB / 447.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.1854, allocations: 4 kB / 447.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001345/0.1856, allocations: 115.8 kB / 447.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.1856, allocations: 0 / 447.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000633/0.1862, allocations: 8 kB / 447.6 MB, free: 10.79 MB / 298.7 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.0001583/0.1864, allocations: 91.25 kB / 447.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003903/0.1868, allocations: 44.17 kB / 447.7 MB, free: 10.65 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.1869, allocations: 4.062 kB / 447.7 MB, free: 10.64 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.187, allocations: 23.92 kB / 447.7 MB, free: 10.62 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006393/0.1877, allocations: 37.22 kB / 447.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000797/0.1885, allocations: 253.7 kB / 448 MB, free: 10.3 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002445/0.1888, allocations: 0.7043 MB / 448.7 MB, free: 9.566 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.587e-05/0.1889, allocations: 11.44 kB / 448.7 MB, free: 9.555 MB / 298.7 MB Notification: Performance of SimCode: time 2.405e-06/0.189, allocations: 0 / 448.7 MB, free: 9.555 MB / 298.7 MB Notification: Performance of Templates: time 0.004992/0.194, allocations: 0.9075 MB / 449.6 MB, free: 8.648 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches