Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Sensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass.s|mass.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors") translateModel(Modelica.Mechanics.Translational.Examples.Sensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass.s|mass.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008868/0.0008868, allocations: 196.8 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.223/1.223, allocations: 226.6 MB / 244.3 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007365/0.0007365, allocations: 95.88 kB / 296.4 MB, free: 6.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001942/0.0001942, allocations: 4 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.177/0.1772, allocations: 51.3 MB / 407.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.001418/0.1787, allocations: 1.643 MB / 409.1 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005467/0.1792, allocations: 0.5095 MB / 409.6 MB, free: 25.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.744e-05/0.1793, allocations: 5.25 kB / 409.7 MB, free: 25.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.834e-05/0.1794, allocations: 15.84 kB / 409.7 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.779e-05/0.1794, allocations: 20.59 kB / 409.7 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001526/0.1796, allocations: 38.69 kB / 409.7 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001159/0.1797, allocations: 139.4 kB / 409.9 MB, free: 25.44 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.1799, allocations: 50.12 kB / 409.9 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/0.18, allocations: 56.52 kB / 410 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.053e-05/0.18, allocations: 59.69 kB / 410 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.719e-05/0.1801, allocations: 12.53 kB / 410 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.114e-05/0.1801, allocations: 8 kB / 410 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.534e-05/0.1801, allocations: 25.48 kB / 410.1 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.506e-05/0.1802, allocations: 53.64 kB / 410.1 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001046/0.1803, allocations: 116.7 kB / 410.2 MB, free: 25.06 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1803, allocations: 0 / 410.2 MB, free: 25.06 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1803, allocations: 1.375 kB / 410.2 MB, free: 25.06 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.1803, allocations: 0 / 410.2 MB, free: 25.06 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0003971/0.1807, allocations: 434.5 kB / 410.7 MB, free: 24.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.839e-05/0.1807, allocations: 8.031 kB / 410.7 MB, free: 24.58 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001228/0.1809, allocations: 27.8 kB / 410.7 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001181/0.181, allocations: 194.9 kB / 410.9 MB, free: 24.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.181, allocations: 15.94 kB / 410.9 MB, free: 24.31 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.884e-05/0.181, allocations: 19.95 kB / 410.9 MB, free: 24.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000219/0.1813, allocations: 137.6 kB / 411.1 MB, free: 24.15 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.1813, allocations: 7.891 kB / 411.1 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.1813, allocations: 8 kB / 411.1 MB, free: 24.13 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.1813, allocations: 4 kB / 411.1 MB, free: 24.13 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001611/0.1815, allocations: 91.7 kB / 411.2 MB, free: 24.04 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005571/0.1821, allocations: 0.5329 MB / 411.7 MB, free: 23.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001223/0.1822, allocations: 82.73 kB / 411.8 MB, free: 23.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.714e-05/0.1823, allocations: 32.78 kB / 411.8 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.339e-05/0.1823, allocations: 0 / 411.8 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.136e-05/0.1823, allocations: 42.56 kB / 411.9 MB, free: 23.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 9.52e-07/0.1823, allocations: 0 / 411.9 MB, free: 23.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007171/0.183, allocations: 0.5989 MB / 412.5 MB, free: 22.58 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.761e-05/0.183, allocations: 55.41 kB / 412.5 MB, free: 22.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.362e-05/0.1831, allocations: 134.6 kB / 412.6 MB, free: 22.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.118e-06/0.1831, allocations: 29.7 kB / 412.7 MB, free: 22.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.956e-05/0.1832, allocations: 139.8 kB / 412.8 MB, free: 22.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.1832, allocations: 39.45 kB / 412.8 MB, free: 22.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.45e-06/0.1832, allocations: 0 / 412.8 MB, free: 22.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.493e-05/0.1833, allocations: 322.8 kB / 413.2 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.731e-05/0.1833, allocations: 35.97 kB / 413.2 MB, free: 21.8 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.874e-05/0.1834, allocations: 89.09 kB / 413.3 MB, free: 21.69 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.785e-05/0.1835, allocations: 47.92 kB / 413.3 MB, free: 21.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.1835, allocations: 0 / 413.3 MB, free: 21.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002128/0.1837, allocations: 157.4 kB / 413.5 MB, free: 21.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.032e-05/0.1837, allocations: 4 kB / 413.5 MB, free: 21.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.81e-06/0.1838, allocations: 4 kB / 413.5 MB, free: 21.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.1838, allocations: 4 kB / 413.5 MB, free: 21.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001406/0.1839, allocations: 44.11 kB / 413.5 MB, free: 21.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.1839, allocations: 7.938 kB / 413.5 MB, free: 21.42 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.565e-05/0.184, allocations: 8 kB / 413.5 MB, free: 21.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.265e-06/0.184, allocations: 4 kB / 413.6 MB, free: 21.41 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 19 * 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 5.767e-05/0.1841, allocations: 121.8 kB / 413.7 MB, free: 21.28 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.656e-05/0.1841, allocations: 7.953 kB / 413.7 MB, free: 21.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.961e-05/0.1841, allocations: 24.34 kB / 413.7 MB, free: 21.24 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1842, allocations: 0.5625 kB / 413.7 MB, free: 21.24 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1842, allocations: 7.953 kB / 413.7 MB, free: 21.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.1842, allocations: 0 / 413.7 MB, free: 21.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000364/0.1845, allocations: 451.9 kB / 414.2 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.1845, allocations: 0 / 414.2 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/0.1847, allocations: 35.98 kB / 414.2 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.1847, allocations: 3.953 kB / 414.2 MB, free: 20.69 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/0.1847, allocations: 0 / 414.2 MB, free: 20.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.1847, allocations: 7.938 kB / 414.2 MB, free: 20.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1847, allocations: 0 / 414.2 MB, free: 20.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002341/0.1849, allocations: 258.4 kB / 414.5 MB, free: 20.41 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.139e-05/0.185, allocations: 85.05 kB / 414.5 MB, free: 20.31 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.63e-05/0.185, allocations: 3.953 kB / 414.5 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.736e-05/0.1851, allocations: 8 kB / 414.5 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.807e-05/0.1851, allocations: 7.984 kB / 414.6 MB, free: 20.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.53e-06/0.1851, allocations: 4 kB / 414.6 MB, free: 20.29 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.262e-05/0.1852, allocations: 106.4 kB / 414.7 MB, free: 20.18 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1852, allocations: 0 / 414.7 MB, free: 20.18 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002202/0.1854, allocations: 20 kB / 414.7 MB, free: 20.16 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mass.s,mass.v) * 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 (11): * Single equations (assignments): 11 * 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 6.287e-05/0.1855, allocations: 99.25 kB / 414.8 MB, free: 20.06 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001723/0.1856, allocations: 96.14 kB / 414.9 MB, free: 19.96 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.1857, allocations: 4 kB / 414.9 MB, free: 19.96 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.412e-05/0.1857, allocations: 43.92 kB / 414.9 MB, free: 19.92 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000258/0.186, allocations: 15.98 kB / 414.9 MB, free: 19.9 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000512/0.1865, allocations: 0.5327 MB / 415.5 MB, free: 19.33 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.772e-05/0.1866, allocations: 0.716 MB / 416.2 MB, free: 18.59 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.96e-05/0.1867, allocations: 15.44 kB / 416.2 MB, free: 18.58 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.1867, allocations: 0 / 416.2 MB, free: 18.58 MB / 298.7 MB Notification: Performance of Templates: time 0.002013/0.1887, allocations: 1.43 MB / 417.6 MB, free: 17.15 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Sensors/Sensors.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches