Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 113.2 kB / 17.73 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001402/0.001403, allocations: 188.2 kB / 18.67 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.394/1.394, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002325/0.002325, allocations: 52.14 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1083, allocations: 46.62 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002721/0.1111, allocations: 1.627 MB / 376.2 MB, free: 3.461 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008927/0.112, allocations: 0.5236 MB / 376.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.287e-05/0.1121, allocations: 4 kB / 376.8 MB, free: 2.926 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.259e-05/0.1122, allocations: 7.922 kB / 376.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.271e-05/0.1123, allocations: 35.7 kB / 376.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002136/0.1125, allocations: 27.91 kB / 376.8 MB, free: 2.855 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001458/0.1126, allocations: 95.53 kB / 376.9 MB, free: 2.762 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.1128, allocations: 35.97 kB / 377 MB, free: 2.727 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.255e-05/0.1128, allocations: 35.92 kB / 377 MB, free: 2.691 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.327e-05/0.1129, allocations: 39.84 kB / 377 MB, free: 2.652 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.008e-05/0.113, allocations: 8 kB / 377.1 MB, free: 2.645 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.311e-05/0.113, allocations: 16 kB / 377.1 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.258e-05/0.1131, allocations: 23.91 kB / 377.1 MB, free: 2.605 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.631e-05/0.1131, allocations: 47.8 kB / 377.1 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001609/0.1133, allocations: 99.61 kB / 377.2 MB, free: 2.461 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1133, allocations: 0 / 377.2 MB, free: 2.461 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1133, allocations: 0 / 377.2 MB, free: 2.461 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.1133, allocations: 0 / 377.2 MB, free: 2.461 MB / 318.1 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.0004803/0.1138, allocations: 375.2 kB / 377.6 MB, free: 2.047 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.1139, allocations: 12.03 kB / 377.6 MB, free: 2.035 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.166e-05/0.1139, allocations: 50.67 kB / 377.7 MB, free: 1.977 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00011/0.114, allocations: 8.891 kB / 377.7 MB, free: 1.969 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001247/0.1142, allocations: 168.3 kB / 377.8 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.1142, allocations: 8.375 kB / 377.8 MB, free: 1.758 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.184e-05/0.1142, allocations: 12.36 kB / 377.9 MB, free: 1.746 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001812/0.1144, allocations: 89.78 kB / 377.9 MB, free: 1.652 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.1144, allocations: 3.938 kB / 377.9 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.859e-06/0.1144, allocations: 0 / 377.9 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.1144, allocations: 4 kB / 378 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001109/0.1146, allocations: 55.92 kB / 378 MB, free: 1.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000645/0.1152, allocations: 400.5 kB / 378.4 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001216/0.1153, allocations: 70.55 kB / 378.5 MB, free: 1.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.054e-05/0.1154, allocations: 32.86 kB / 378.5 MB, free: 1.035 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.237e-05/0.1154, allocations: 3.984 kB / 378.5 MB, free: 1.031 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.124e-05/0.1154, allocations: 34.56 kB / 378.5 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.152e-06/0.1155, allocations: 3.938 kB / 378.5 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002081/0.1157, allocations: 93.69 kB / 378.6 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.959e-05/0.1157, allocations: 51.41 kB / 378.7 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.461e-05/0.1158, allocations: 109.8 kB / 378.8 MB, free: 0.707 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.1158, allocations: 25.7 kB / 378.8 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.577e-05/0.1159, allocations: 104 kB / 378.9 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.37e-05/0.1159, allocations: 31.89 kB / 378.9 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.408e-05/0.116, allocations: 33.7 kB / 379 MB, free: 0.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.1161, allocations: 310.8 kB / 379.3 MB, free: 192 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.159e-05/0.1161, allocations: 23.98 kB / 379.3 MB, free: 168 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.548e-05/0.1162, allocations: 46.56 kB / 379.4 MB, free: 112 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001161/0.1163, allocations: 74.77 kB / 379.4 MB, free: 28 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1163, allocations: 0 / 379.4 MB, free: 28 kB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.1614/0.2777, allocations: 102.6 kB / 379.5 MB, free: 13.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.2778, allocations: 6.109 kB / 379.5 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.393e-06/0.2778, allocations: 0.9062 kB / 379.5 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.372e-05/0.2778, allocations: 3.641 kB / 379.5 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000148/0.278, allocations: 22.3 kB / 379.6 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.278, allocations: 4.141 kB / 379.6 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.572e-05/0.278, allocations: 10.89 kB / 379.6 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-06/0.2781, allocations: 6.031 kB / 379.6 MB, free: 13.3 MB / 318.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.337e-05/0.2782, allocations: 124.5 kB / 379.7 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.317e-05/0.2782, allocations: 7.375 kB / 379.7 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.209e-05/0.2782, allocations: 14.56 kB / 379.7 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.2782, allocations: 2.219 kB / 379.7 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.2782, allocations: 3.062 kB / 379.7 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.2783, allocations: 0 / 379.7 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001798/0.2784, allocations: 194.2 kB / 379.9 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-06/0.2785, allocations: 0 / 379.9 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001057/0.2786, allocations: 18.44 kB / 379.9 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.2786, allocations: 1.125 kB / 379.9 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.2786, allocations: 0.75 kB / 379.9 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2786, allocations: 1.766 kB / 379.9 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2786, allocations: 0 / 379.9 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001921/0.2788, allocations: 205.1 kB / 380.1 MB, free: 12.85 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.573e-05/0.2788, allocations: 88.02 kB / 380.2 MB, free: 12.76 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.667e-05/0.2789, allocations: 1.375 kB / 380.2 MB, free: 12.76 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.294e-05/0.2789, allocations: 0 / 380.2 MB, free: 12.76 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.277e-05/0.279, allocations: 8.406 kB / 380.2 MB, free: 12.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.749e-06/0.279, allocations: 2.359 kB / 380.2 MB, free: 12.76 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.556e-05/0.279, allocations: 83.34 kB / 380.3 MB, free: 12.68 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.279, allocations: 2.562 kB / 380.3 MB, free: 12.68 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002865/0.2793, allocations: 21.44 kB / 380.3 MB, free: 12.68 MB / 318.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000335/0.2796, allocations: 0.7271 MB / 381.1 MB, free: 12.03 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001532/0.2798, allocations: 57.98 kB / 381.1 MB, free: 12.03 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.2798, allocations: 0 / 381.1 MB, free: 12.03 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.511e-05/0.2799, allocations: 28.16 kB / 381.2 MB, free: 12.03 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003161/0.2802, allocations: 8.094 kB / 381.2 MB, free: 12.03 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001357/0.2815, allocations: 1.546 MB / 382.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001574/0.2817, allocations: 0.6957 MB / 383.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.613e-05/0.2818, allocations: 12.8 kB / 383.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.807e-05/0.2818, allocations: 21.38 kB / 383.4 MB, free: 10.03 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2818, allocations: 0 / 383.4 MB, free: 10.03 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02123/0.3031, allocations: 1.801 MB / 385.2 MB, free: 9.508 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.571/7.874, allocations: 9.016 kB / 385.2 MB, free: 9.5 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches