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: translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") translateModel(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.T|mass2.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009165/0.0009165, allocations: 195.1 kB / 17.38 MB, free: 4.289 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 226.5 MB / 244.7 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007496/0.0007495, allocations: 103.1 kB / 296.8 MB, free: 6.871 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000273/0.0002731, allocations: 8 kB / 356.7 MB, free: 10.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1971/0.1974, allocations: 51.3 MB / 408 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.001203/0.1987, allocations: 1.319 MB / 409.4 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005682/0.1992, allocations: 0.5184 MB / 409.9 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.841e-05/0.1993, allocations: 0 / 409.9 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.333e-05/0.1993, allocations: 11.86 kB / 409.9 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.214e-05/0.1994, allocations: 26.17 kB / 409.9 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001549/0.1996, allocations: 19.97 kB / 409.9 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.256e-05/0.1996, allocations: 99.47 kB / 410 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.1998, allocations: 31.97 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.991e-05/0.1998, allocations: 24.56 kB / 410.1 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.659e-05/0.1999, allocations: 35.89 kB / 410.1 MB, free: 25.6 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.398e-05/0.1999, allocations: 4.844 kB / 410.1 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.271e-05/0.2, allocations: 11.94 kB / 410.1 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.297e-05/0.2, allocations: 17.77 kB / 410.2 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.65e-05/0.2, allocations: 61.56 kB / 410.2 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.049e-05/0.2001, allocations: 80.66 kB / 410.3 MB, free: 25.42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2001, allocations: 3.984 kB / 410.3 MB, free: 25.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2002, allocations: 0 / 410.3 MB, free: 25.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.2002, allocations: 1.25 kB / 410.3 MB, free: 25.42 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.0003115/0.2005, allocations: 366 kB / 410.7 MB, free: 25.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.2005, allocations: 12.03 kB / 410.7 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.2006, allocations: 8.844 kB / 410.7 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.341e-05/0.2007, allocations: 164.4 kB / 410.8 MB, free: 24.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.2007, allocations: 8.375 kB / 410.8 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.303e-05/0.2008, allocations: 16.27 kB / 410.9 MB, free: 24.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001378/0.2009, allocations: 91.45 kB / 410.9 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.2009, allocations: 0 / 410.9 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.2009, allocations: 4 kB / 411 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.2009, allocations: 4 kB / 411 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001142/0.2011, allocations: 51.97 kB / 411 MB, free: 24.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005053/0.2016, allocations: 398.7 kB / 411.4 MB, free: 24.19 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000104/0.2017, allocations: 70.55 kB / 411.5 MB, free: 24.11 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.521e-05/0.2018, allocations: 36.86 kB / 411.5 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.227e-05/0.2018, allocations: 3.984 kB / 411.5 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.257e-05/0.2018, allocations: 34.55 kB / 411.5 MB, free: 24.02 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.222e-06/0.2018, allocations: 7.875 kB / 411.5 MB, free: 24.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.000172/0.202, allocations: 89.77 kB / 411.6 MB, free: 23.92 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.933e-05/0.202, allocations: 51.41 kB / 411.7 MB, free: 23.86 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.976e-05/0.2021, allocations: 117.8 kB / 411.8 MB, free: 23.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.154e-06/0.2021, allocations: 29.7 kB / 411.8 MB, free: 23.7 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.954e-05/0.2021, allocations: 103.8 kB / 411.9 MB, free: 23.59 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.524e-05/0.2021, allocations: 23.66 kB / 412 MB, free: 23.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-06/0.2021, allocations: 0 / 412 MB, free: 23.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.068e-05/0.2022, allocations: 322.8 kB / 412.3 MB, free: 23.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.418e-05/0.2022, allocations: 16 kB / 412.3 MB, free: 23.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.352e-05/0.2023, allocations: 42.56 kB / 412.3 MB, free: 23.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.507e-05/0.2023, allocations: 77.78 kB / 412.4 MB, free: 23.1 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.2024, allocations: 0 / 412.4 MB, free: 23.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001203/0.2025, allocations: 101.5 kB / 412.5 MB, free: 22.99 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/0.2025, allocations: 8 kB / 412.5 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.237e-06/0.2025, allocations: 0 / 412.5 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.2025, allocations: 3.938 kB / 412.5 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001115/0.2026, allocations: 31.92 kB / 412.5 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.099e-06/0.2027, allocations: 64 / 412.5 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.2e-05/0.2027, allocations: 19.84 kB / 412.6 MB, free: 22.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.2027, allocations: 0 / 412.6 MB, free: 22.93 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 5.122e-05/0.2028, allocations: 121.8 kB / 412.7 MB, free: 22.8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.37e-05/0.2028, allocations: 7.938 kB / 412.7 MB, free: 22.79 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.519e-05/0.2028, allocations: 8.375 kB / 412.7 MB, free: 22.78 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.2028, allocations: 3.938 kB / 412.7 MB, free: 22.78 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2029, allocations: 4 kB / 412.7 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.2029, allocations: 4 kB / 412.7 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001301/0.203, allocations: 185.5 kB / 412.9 MB, free: 22.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.203, allocations: 0 / 412.9 MB, free: 22.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.175e-05/0.2031, allocations: 19.94 kB / 412.9 MB, free: 22.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.2031, allocations: 0 / 412.9 MB, free: 22.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.2031, allocations: 7.984 kB / 412.9 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.2031, allocations: 7.938 kB / 412.9 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.2031, allocations: 0 / 412.9 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001398/0.2033, allocations: 187.9 kB / 413.1 MB, free: 22.3 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.821e-05/0.2033, allocations: 93 kB / 413.2 MB, free: 22.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.2033, allocations: 4 kB / 413.2 MB, free: 22.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.998e-05/0.2034, allocations: 7.938 kB / 413.2 MB, free: 22.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.61e-05/0.2034, allocations: 0 / 413.2 MB, free: 22.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.359e-06/0.2034, allocations: 4 kB / 413.2 MB, free: 22.18 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.31e-05/0.2035, allocations: 87.52 kB / 413.3 MB, free: 22.09 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.2035, allocations: 0 / 413.3 MB, free: 22.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002141/0.2037, allocations: 23.94 kB / 413.3 MB, free: 22.07 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 6.915e-05/0.2038, allocations: 99.25 kB / 413.4 MB, free: 21.96 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001025/0.2039, allocations: 55.86 kB / 413.5 MB, free: 21.91 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2039, allocations: 4 kB / 413.5 MB, free: 21.91 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.709e-05/0.2039, allocations: 23.98 kB / 413.5 MB, free: 21.88 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002491/0.2042, allocations: 7.125 kB / 413.5 MB, free: 21.88 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000467/0.2046, allocations: 414.8 kB / 413.9 MB, free: 21.44 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.654e-05/0.2047, allocations: 0.6926 MB / 414.6 MB, free: 20.72 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.521e-05/0.2048, allocations: 15.44 kB / 414.6 MB, free: 20.7 MB / 298.7 MB Notification: Performance of SimCode: time 3.4e-07/0.2048, allocations: 4 kB / 414.6 MB, free: 20.7 MB / 298.7 MB Notification: Performance of Templates: time 0.001663/0.2064, allocations: 0.943 MB / 415.6 MB, free: 19.75 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.makefile (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 & ./Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins/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