Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009132/0.0009133, allocations: 192.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.238/1.238, allocations: 226.5 MB / 244.7 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007604/0.0007604, allocations: 100.9 kB / 296.7 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000213/0.0002131, allocations: 4 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1827/0.183, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.001303/0.1843, allocations: 1.324 MB / 409.4 MB, free: 26.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006289/0.1849, allocations: 0.5216 MB / 410 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.699e-05/0.185, allocations: 0 / 410 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.34e-05/0.185, allocations: 0.5625 kB / 410 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.049e-05/0.1851, allocations: 33.97 kB / 410 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001503/0.1853, allocations: 15.98 kB / 410 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.018e-05/0.1853, allocations: 91.55 kB / 410.1 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.1855, allocations: 36.53 kB / 410.1 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.231e-05/0.1855, allocations: 28.77 kB / 410.2 MB, free: 25.65 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.808e-05/0.1856, allocations: 31.91 kB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.38e-05/0.1856, allocations: 11.94 kB / 410.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.52e-05/0.1857, allocations: 9.906 kB / 410.2 MB, free: 25.6 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.433e-05/0.1857, allocations: 15.98 kB / 410.2 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.22e-05/0.1857, allocations: 61.56 kB / 410.3 MB, free: 25.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.9e-05/0.1858, allocations: 77.05 kB / 410.4 MB, free: 25.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1858, allocations: 3.938 kB / 410.4 MB, free: 25.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1859, allocations: 1.25 kB / 410.4 MB, free: 25.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.486e-06/0.1859, allocations: 0 / 410.4 MB, free: 25.44 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0003047/0.1862, allocations: 366.1 kB / 410.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.1862, allocations: 12.03 kB / 410.8 MB, free: 25.03 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.019e-05/0.1863, allocations: 42.73 kB / 410.8 MB, free: 24.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.744e-05/0.1864, allocations: 8.844 kB / 410.8 MB, free: 24.97 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.4e-05/0.1864, allocations: 184.3 kB / 411 MB, free: 24.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.1865, allocations: 4.375 kB / 411 MB, free: 24.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.974e-05/0.1865, allocations: 11.5 kB / 411 MB, free: 24.74 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001362/0.1866, allocations: 92.14 kB / 411.1 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.1866, allocations: 0 / 411.1 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.308e-06/0.1867, allocations: 0 / 411.1 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.1867, allocations: 0 / 411.1 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.215e-05/0.1868, allocations: 55.91 kB / 411.1 MB, free: 24.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005096/0.1873, allocations: 407.1 kB / 411.5 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001078/0.1874, allocations: 78.55 kB / 411.6 MB, free: 24.06 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.238e-05/0.1875, allocations: 32.84 kB / 411.6 MB, free: 24.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.585e-06/0.1875, allocations: 0 / 411.6 MB, free: 24.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.215e-05/0.1875, allocations: 34.5 kB / 411.7 MB, free: 23.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 9.12e-07/0.1875, allocations: 0 / 411.7 MB, free: 23.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001796/0.1877, allocations: 89.62 kB / 411.8 MB, free: 23.89 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.844e-05/0.1877, allocations: 51.41 kB / 411.8 MB, free: 23.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.506e-05/0.1878, allocations: 109.8 kB / 411.9 MB, free: 23.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.722e-06/0.1878, allocations: 29.7 kB / 412 MB, free: 23.67 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.019e-05/0.1878, allocations: 103.8 kB / 412.1 MB, free: 23.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.627e-05/0.1878, allocations: 27.8 kB / 412.1 MB, free: 23.54 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.027e-06/0.1878, allocations: 0 / 412.1 MB, free: 23.54 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.775e-05/0.1879, allocations: 318.8 kB / 412.4 MB, free: 23.22 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.29e-05/0.1879, allocations: 23.98 kB / 412.4 MB, free: 23.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.053e-05/0.188, allocations: 46.5 kB / 412.5 MB, free: 23.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7e-05/0.188, allocations: 64.44 kB / 412.5 MB, free: 23.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.188, allocations: 0 / 412.5 MB, free: 23.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001167/0.1882, allocations: 109.5 kB / 412.6 MB, free: 22.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/0.1882, allocations: 4 kB / 412.6 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.1882, allocations: 4 kB / 412.6 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.1882, allocations: 3.938 kB / 412.6 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000107/0.1883, allocations: 31.86 kB / 412.7 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.1883, allocations: 4.062 kB / 412.7 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.982e-05/0.1884, allocations: 11.84 kB / 412.7 MB, free: 22.9 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.855e-06/0.1884, allocations: 11.98 kB / 412.7 MB, free: 22.89 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (13): * Single equations (assignments): 13 * 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 4.997e-05/0.1885, allocations: 117.8 kB / 412.8 MB, free: 22.76 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.316e-05/0.1885, allocations: 4 kB / 412.8 MB, free: 22.76 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.368e-05/0.1885, allocations: 12.31 kB / 412.8 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.1885, allocations: 0 / 412.8 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.1885, allocations: 0 / 412.8 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.1885, allocations: 8 kB / 412.8 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001305/0.1887, allocations: 189.5 kB / 413 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1887, allocations: 0 / 413 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.094e-05/0.1888, allocations: 23.92 kB / 413.1 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.1888, allocations: 0 / 413.1 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.1888, allocations: 3.938 kB / 413.1 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.1888, allocations: 256 / 413.1 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.1888, allocations: 0 / 413.1 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001385/0.1889, allocations: 199.5 kB / 413.2 MB, free: 22.26 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.878e-05/0.189, allocations: 92.98 kB / 413.3 MB, free: 22.15 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.248e-05/0.189, allocations: 3.938 kB / 413.3 MB, free: 22.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.715e-05/0.1891, allocations: 4 kB / 413.3 MB, free: 22.14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.677e-05/0.1891, allocations: 0 / 413.3 MB, free: 22.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-06/0.1891, allocations: 7.984 kB / 413.4 MB, free: 22.14 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.101e-05/0.1891, allocations: 87.22 kB / 413.4 MB, free: 22.05 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1891, allocations: 3.938 kB / 413.4 MB, free: 22.05 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002067/0.1893, allocations: 20 kB / 413.5 MB, free: 22.03 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.T) * 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 (8): * Single equations (assignments): 8 * 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.0002405/0.1896, allocations: 0.7203 MB / 414.2 MB, free: 21.28 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.897e-05/0.1897, allocations: 55.86 kB / 414.2 MB, free: 21.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.1897, allocations: 0 / 414.2 MB, free: 21.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.644e-05/0.1897, allocations: 31.92 kB / 414.3 MB, free: 21.2 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002351/0.19, allocations: 8.953 kB / 414.3 MB, free: 21.19 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007487/0.1907, allocations: 0.7273 MB / 415 MB, free: 20.4 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.566e-05/0.1908, allocations: 0.6926 MB / 415.7 MB, free: 19.68 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.823e-05/0.1909, allocations: 23.44 kB / 415.7 MB, free: 19.66 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1909, allocations: 0 / 415.7 MB, free: 19.66 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.323/2.514, allocations: 1.29 MB / 417 MB, free: 18.36 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","../files/Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches