Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",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.00124/0.00124, allocations: 100.2 kB / 17.58 MB, free: 5.418 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.001269/0.001269, allocations: 196.1 kB / 18.51 MB, free: 4.504 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.358/1.358, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.00163/0.00163, allocations: 55.92 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08432/0.08597, allocations: 46.63 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006206/0.09221, allocations: 5.017 MB / 332.4 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002199/0.09444, allocations: 1.352 MB / 333.7 MB, free: 13.96 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002444/0.0947, allocations: 8 kB / 333.8 MB, free: 13.96 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003758/0.09512, allocations: 162.5 kB / 333.9 MB, free: 13.8 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005691/0.0957, allocations: 317.2 kB / 334.2 MB, free: 13.48 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003982/0.09611, allocations: 231.6 kB / 334.5 MB, free: 13.26 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001118/0.09724, allocations: 1.172 MB / 335.6 MB, free: 12.08 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004292/0.09768, allocations: 318 kB / 335.9 MB, free: 11.76 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004519/0.09814, allocations: 454.4 kB / 336.4 MB, free: 11.31 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005383/0.09868, allocations: 0.5018 MB / 336.9 MB, free: 10.81 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001471/0.09884, allocations: 104 kB / 337 MB, free: 10.71 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001747/0.09902, allocations: 108 kB / 337.1 MB, free: 10.6 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002057/0.09923, allocations: 223.2 kB / 337.3 MB, free: 10.38 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004896/0.09973, allocations: 0.5172 MB / 337.8 MB, free: 9.863 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001047/0.1008, allocations: 1.191 MB / 339 MB, free: 8.668 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1008, allocations: 0 / 339 MB, free: 8.668 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1008, allocations: 0 / 339 MB, free: 8.668 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.1008, allocations: 4 kB / 339 MB, free: 8.664 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.002355/0.1032, allocations: 1.345 MB / 340.4 MB, free: 7.246 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.1032, allocations: 8.031 kB / 340.4 MB, free: 7.238 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001739/0.1034, allocations: 111.9 kB / 340.5 MB, free: 7.121 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001803/0.1036, allocations: 115.7 kB / 340.6 MB, free: 7.008 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008672/0.1045, allocations: 0.587 MB / 341.2 MB, free: 6.383 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003164/0.1048, allocations: 166.9 kB / 341.3 MB, free: 6.199 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.39e-05/0.1049, allocations: 63.94 kB / 341.4 MB, free: 6.137 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001482/0.1064, allocations: 0.8743 MB / 342.3 MB, free: 5.16 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.1064, allocations: 7.984 kB / 342.3 MB, free: 5.152 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.832e-05/0.1065, allocations: 28 kB / 342.3 MB, free: 5.125 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.1065, allocations: 16 kB / 342.3 MB, free: 5.109 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001536/0.1081, allocations: 0.6258 MB / 343 MB, free: 4.484 MB / 286.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003408/0.1115, allocations: 2.108 MB / 345.1 MB, free: 2.273 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001453/0.1129, allocations: 0.8624 MB / 345.9 MB, free: 1.348 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009168/0.1139, allocations: 406.6 kB / 346.3 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.658e-05/0.1139, allocations: 8.656 kB / 346.3 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.596e-05/0.114, allocations: 55.16 kB / 346.4 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of pre-optimization done (n=73): time 2.555e-06/0.114, allocations: 0 / 346.4 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of matching and sorting (n=73): time 0.005446/0.1195, allocations: 1.832 MB / 348.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004329/0.1199, allocations: 0.8195 MB / 349 MB, free: 13.94 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008591/0.1208, allocations: 0.6448 MB / 349.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001209/0.1209, allocations: 45.7 kB / 349.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002935/0.1212, allocations: 341 kB / 350.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002345/0.1215, allocations: 248.3 kB / 350.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002675/0.1217, allocations: 154.5 kB / 350.5 MB, free: 12.49 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.1219, allocations: 386.7 kB / 350.8 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007224/0.1227, allocations: 293.8 kB / 351.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/0.1237, allocations: 0.5586 MB / 351.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001494/0.1252, allocations: 0.7051 MB / 352.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.1253, allocations: 0 / 352.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002834/0.1281, allocations: 1.122 MB / 353.5 MB, free: 9.266 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.89e-05/0.1282, allocations: 85.09 kB / 353.6 MB, free: 9.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.1282, allocations: 0 / 353.6 MB, free: 9.164 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006828/0.1289, allocations: 243.2 kB / 353.8 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006463/0.1295, allocations: 143.8 kB / 354 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008417/0.138, allocations: 6.939 MB / 360.9 MB, free: 1.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009154/0.1389, allocations: 99.38 kB / 361 MB, free: 1.172 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.778e-05/0.139, allocations: 23.98 kB / 361 MB, free: 1.148 MB / 302.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 (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(3,3), (1,3), (1,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003785/0.1394, allocations: 221.7 kB / 361.2 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000156/0.1395, allocations: 87 kB / 361.3 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001782/0.1397, allocations: 91.34 kB / 361.4 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.1397, allocations: 4 kB / 361.4 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.1397, allocations: 0 / 361.4 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002642/0.1424, allocations: 1.264 MB / 362.7 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004114/0.1465, allocations: 1.964 MB / 364.6 MB, free: 13.33 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.1466, allocations: 0 / 364.6 MB, free: 13.33 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007588/0.1473, allocations: 151.8 kB / 364.8 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005862/0.1479, allocations: 194.5 kB / 365 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.263e-05/0.148, allocations: 15.94 kB / 365 MB, free: 12.97 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007005/0.155, allocations: 5.357 MB / 370.4 MB, free: 7.191 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.155, allocations: 7.922 kB / 370.4 MB, free: 7.184 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003601/0.1587, allocations: 1.429 MB / 371.8 MB, free: 5.727 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004483/0.1591, allocations: 235.9 kB / 372 MB, free: 5.477 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001403/0.1593, allocations: 23.98 kB / 372 MB, free: 5.453 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006666/0.1599, allocations: 55.95 kB / 372.1 MB, free: 5.398 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001762/0.1601, allocations: 68.5 kB / 372.2 MB, free: 5.332 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-05/0.1602, allocations: 20 kB / 372.2 MB, free: 5.312 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005608/0.1607, allocations: 463 kB / 372.6 MB, free: 4.867 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1608, allocations: 0 / 372.6 MB, free: 4.867 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008312/0.1616, allocations: 279.7 kB / 372.9 MB, free: 4.594 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.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 (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,3), (1,3), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0038/0.1654, allocations: 2.013 MB / 374.9 MB, free: 2.543 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002721/0.1681, allocations: 1.402 MB / 376.3 MB, free: 1.047 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.1682, allocations: 0 / 376.3 MB, free: 1.047 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001453/0.1696, allocations: 0.777 MB / 377.1 MB, free: 240 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001006/0.1706, allocations: 238.1 kB / 377.3 MB, free: 4 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1351/0.3057, allocations: 8.061 MB / 385.4 MB, free: 50.51 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005854/0.3063, allocations: 0.944 MB / 386.3 MB, free: 49.8 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006152/0.307, allocations: 105.1 kB / 386.4 MB, free: 49.78 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004042/0.3074, allocations: 303 kB / 386.7 MB, free: 49.56 MB / 318.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3074, allocations: 0 / 386.7 MB, free: 49.56 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06035/0.3677, allocations: 25.64 MB / 412.4 MB, free: 30.46 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.61, allocations: 19.45 kB / 412.4 MB, free: 30.45 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_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_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches