Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_0_0_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.001312/0.001312, allocations: 109.3 kB / 16.92 MB, free: 5.758 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.001134/0.001134, allocations: 191.3 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009633/0.0009633, allocations: 43.36 kB / 300.7 MB, free: 5.801 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08875/0.08973, allocations: 49.44 MB / 350.2 MB, free: 4.344 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.00678/0.09655, allocations: 5.017 MB / 355.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002795/0.09937, allocations: 1.297 MB / 356.5 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007144/0.1001, allocations: 12 kB / 356.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005552/0.1007, allocations: 162.5 kB / 356.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009268/0.1017, allocations: 321.2 kB / 357 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005641/0.1022, allocations: 227.6 kB / 357.2 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001387/0.1036, allocations: 1.186 MB / 358.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004764/0.1041, allocations: 322 kB / 358.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006278/0.1048, allocations: 450.4 kB / 359.1 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007669/0.1055, allocations: 0.5057 MB / 359.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001929/0.1057, allocations: 104 kB / 359.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002568/0.106, allocations: 108 kB / 359.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001902/0.1062, allocations: 223.2 kB / 360.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000596/0.1068, allocations: 0.5172 MB / 360.6 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001049/0.1079, allocations: 1.184 MB / 361.8 MB, free: 8.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1079, allocations: 0 / 361.8 MB, free: 8.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1079, allocations: 0 / 361.8 MB, free: 8.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.296e-05/0.1079, allocations: 4 kB / 361.8 MB, free: 8.676 MB / 302.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.002604/0.1105, allocations: 1.341 MB / 363.1 MB, free: 7.266 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.1106, allocations: 12.02 kB / 363.1 MB, free: 7.254 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001751/0.1108, allocations: 115.9 kB / 363.2 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002077/0.111, allocations: 119.7 kB / 363.3 MB, free: 7.012 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008929/0.1119, allocations: 0.5832 MB / 363.9 MB, free: 6.391 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003049/0.1122, allocations: 166.9 kB / 364.1 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.652e-05/0.1123, allocations: 67.88 kB / 364.2 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/0.1138, allocations: 0.8826 MB / 365 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/0.1138, allocations: 4 kB / 365 MB, free: 5.156 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.955e-05/0.1139, allocations: 28 kB / 365.1 MB, free: 5.129 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.1139, allocations: 16 kB / 365.1 MB, free: 5.113 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001547/0.1155, allocations: 0.6297 MB / 365.7 MB, free: 4.484 MB / 302.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.003485/0.119, allocations: 2.104 MB / 367.8 MB, free: 2.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001429/0.1204, allocations: 0.8616 MB / 368.7 MB, free: 1.344 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009445/0.1214, allocations: 410.5 kB / 369.1 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.634e-05/0.1215, allocations: 28.55 kB / 369.1 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.878e-05/0.1215, allocations: 47.22 kB / 369.2 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 4.008e-06/0.1216, allocations: 0 / 369.2 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.1712/0.2928, allocations: 1.823 MB / 371 MB, free: 24.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001313/0.293, allocations: 0.8251 MB / 371.8 MB, free: 23.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007703/0.2938, allocations: 0.631 MB / 372.4 MB, free: 23.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.239e-05/0.2938, allocations: 50.8 kB / 372.5 MB, free: 23.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001941/0.2941, allocations: 340.4 kB / 372.8 MB, free: 23.71 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000152/0.2942, allocations: 256.4 kB / 373.1 MB, free: 23.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002231/0.2944, allocations: 146.2 kB / 373.2 MB, free: 23.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.911e-05/0.2945, allocations: 386.6 kB / 373.6 MB, free: 23.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006798/0.2952, allocations: 288.1 kB / 373.9 MB, free: 23.19 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008801/0.2961, allocations: 0.5614 MB / 374.4 MB, free: 22.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001349/0.2975, allocations: 0.7028 MB / 375.1 MB, free: 22.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.2975, allocations: 0 / 375.1 MB, free: 22.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00257/0.3001, allocations: 1.121 MB / 376.2 MB, free: 21.97 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.479e-05/0.3001, allocations: 89.3 kB / 376.3 MB, free: 21.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.3001, allocations: 0.7969 kB / 376.3 MB, free: 21.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006421/0.3008, allocations: 236 kB / 376.6 MB, free: 21.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006238/0.3014, allocations: 145.5 kB / 376.7 MB, free: 21.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006243/0.3077, allocations: 6.929 MB / 383.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009137/0.3086, allocations: 107.8 kB / 383.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.406e-05/0.3087, allocations: 25.53 kB / 383.8 MB, free: 15.45 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.0003034/0.309, allocations: 225.7 kB / 384 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.3091, allocations: 89.23 kB / 384.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001579/0.3093, allocations: 87.06 kB / 384.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.3093, allocations: 11.72 kB / 384.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.3093, allocations: 0.6562 kB / 384.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00244/0.3118, allocations: 1.262 MB / 385.4 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003942/0.3157, allocations: 1.956 MB / 387.4 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.3158, allocations: 1.062 kB / 387.4 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007011/0.3165, allocations: 151.3 kB / 387.5 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005287/0.317, allocations: 196.6 kB / 387.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.258e-05/0.3171, allocations: 13.64 kB / 387.7 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00562/0.3227, allocations: 5.358 MB / 393.1 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3227, allocations: 0.7031 kB / 393.1 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003275/0.326, allocations: 1.428 MB / 394.5 MB, free: 7.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003285/0.3263, allocations: 237.9 kB / 394.8 MB, free: 7.789 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001125/0.3264, allocations: 18.88 kB / 394.8 MB, free: 7.777 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006568/0.3271, allocations: 63.69 kB / 394.8 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.3273, allocations: 59.17 kB / 394.9 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-05/0.3273, allocations: 21.94 kB / 394.9 MB, free: 7.742 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004873/0.3278, allocations: 454.9 kB / 395.4 MB, free: 7.539 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.72e-07/0.3278, allocations: 0 / 395.4 MB, free: 7.539 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008622/0.3287, allocations: 288.1 kB / 395.7 MB, free: 7.492 MB / 302.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.003358/0.3321, allocations: 2.012 MB / 397.7 MB, free: 6.227 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002225/0.3343, allocations: 1.408 MB / 399.1 MB, free: 5.188 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.3343, allocations: 1.688 kB / 399.1 MB, free: 5.188 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00125/0.3356, allocations: 0.7792 MB / 399.9 MB, free: 4.629 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/0.3366, allocations: 238.7 kB / 400.1 MB, free: 4.504 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01134/0.3479, allocations: 8.056 MB / 408.1 MB, free: 13.99 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004622/0.3484, allocations: 0.9557 MB / 409.1 MB, free: 13.01 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004828/0.3489, allocations: 98.44 kB / 409.2 MB, free: 12.91 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003853/0.3493, allocations: 299.3 kB / 409.5 MB, free: 12.62 MB / 318.1 MB Notification: Performance of SimCode: time 8.91e-07/0.3493, allocations: 4 kB / 409.5 MB, free: 12.61 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05787/0.4072, allocations: 25.65 MB / 435.1 MB, free: 3.371 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.91, allocations: 7.453 kB / 435.1 MB, free: 3.367 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches