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.001178/0.001178, allocations: 110.2 kB / 17.06 MB, free: 5.973 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.001216/0.001216, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.315/1.315, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001011/0.001011, allocations: 51.88 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2627, allocations: 49.43 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.005929/0.2687, allocations: 5.032 MB / 405.3 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002356/0.271, allocations: 1.297 MB / 406.6 MB, free: 2.469 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005196/0.2716, allocations: 8 kB / 406.6 MB, free: 2.461 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005223/0.2721, allocations: 174.5 kB / 406.7 MB, free: 2.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000958/0.2731, allocations: 333.2 kB / 407.1 MB, free: 1.961 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005524/0.2737, allocations: 223.6 kB / 407.3 MB, free: 1.742 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001522/0.2752, allocations: 1.181 MB / 408.5 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004931/0.2757, allocations: 318 kB / 408.8 MB, free: 228 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006106/0.2764, allocations: 454.4 kB / 409.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006671/0.277, allocations: 0.5096 MB / 409.7 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001956/0.2773, allocations: 104 kB / 409.8 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002024/0.2775, allocations: 108 kB / 409.9 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001978/0.2777, allocations: 227.2 kB / 410.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006149/0.2783, allocations: 0.5172 MB / 410.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001274/0.2796, allocations: 1.201 MB / 411.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2796, allocations: 0 / 411.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2796, allocations: 3.938 kB / 411.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.216e-05/0.2796, allocations: 0 / 411.9 MB, free: 13.11 MB / 334.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.002641/0.2823, allocations: 1.379 MB / 413.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.2823, allocations: 8.031 kB / 413.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001918/0.2825, allocations: 119.8 kB / 413.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002398/0.2828, allocations: 116.3 kB / 413.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001055/0.2838, allocations: 0.5916 MB / 414.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001947/0.2841, allocations: 147 kB / 414.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001013/0.2842, allocations: 63.94 kB / 414.3 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/0.2856, allocations: 0.8665 MB / 415.2 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.267e-05/0.2857, allocations: 3.984 kB / 415.2 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.258e-05/0.2857, allocations: 28 kB / 415.2 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.2858, allocations: 12 kB / 415.2 MB, free: 9.539 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001466/0.2872, allocations: 0.6141 MB / 415.8 MB, free: 8.926 MB / 334.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.003425/0.2907, allocations: 2.096 MB / 417.9 MB, free: 6.727 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001389/0.2921, allocations: 0.8455 MB / 418.8 MB, free: 5.816 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008167/0.2929, allocations: 394.6 kB / 419.1 MB, free: 5.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.372e-05/0.293, allocations: 8.656 kB / 419.2 MB, free: 5.422 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.758e-05/0.293, allocations: 47.22 kB / 419.2 MB, free: 5.367 MB / 334.1 MB Notification: Performance of pre-optimization done (n=73): time 2.454e-06/0.293, allocations: 0 / 419.2 MB, free: 5.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.005116/0.2981, allocations: 1.801 MB / 421 MB, free: 3.473 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000337/0.2985, allocations: 0.8195 MB / 421.8 MB, free: 2.457 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008492/0.2994, allocations: 0.6371 MB / 422.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001016/0.2995, allocations: 45.7 kB / 422.5 MB, free: 1.762 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002588/0.2997, allocations: 357.2 kB / 422.8 MB, free: 1.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002154/0.3, allocations: 261.7 kB / 423.1 MB, free: 1.152 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002349/0.3002, allocations: 146.7 kB / 423.2 MB, free: 1.004 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002328/0.3005, allocations: 386.8 kB / 423.6 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006865/0.3011, allocations: 273.8 kB / 423.9 MB, free: 360 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009566/0.3021, allocations: 0.5516 MB / 424.4 MB, free: 15.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001407/0.3035, allocations: 0.6778 MB / 425.1 MB, free: 15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.291e-06/0.3036, allocations: 4 kB / 425.1 MB, free: 14.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002723/0.3063, allocations: 1.095 MB / 426.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.559e-05/0.3064, allocations: 85.11 kB / 426.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.3064, allocations: 4 kB / 426.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000703/0.3071, allocations: 231.2 kB / 426.5 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006367/0.3077, allocations: 147.8 kB / 426.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008036/0.3158, allocations: 6.948 MB / 433.6 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009351/0.3168, allocations: 95.61 kB / 433.7 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.83e-05/0.3169, allocations: 24 kB / 433.7 MB, free: 5.742 MB / 350.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.0004217/0.3173, allocations: 221.7 kB / 434 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002174/0.3175, allocations: 95.42 kB / 434.1 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001763/0.3177, allocations: 83.34 kB / 434.1 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.3177, allocations: 8 kB / 434.1 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.3177, allocations: 0 / 434.1 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002515/0.3203, allocations: 1.241 MB / 435.4 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004012/0.3243, allocations: 1.924 MB / 437.3 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.3243, allocations: 3.984 kB / 437.3 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006933/0.325, allocations: 147.8 kB / 437.5 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005451/0.3256, allocations: 194.5 kB / 437.6 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.336e-05/0.3256, allocations: 19.94 kB / 437.7 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006508/0.3322, allocations: 5.35 MB / 443 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.3322, allocations: 0 / 443 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003304/0.3355, allocations: 1.403 MB / 444.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004369/0.3359, allocations: 240.4 kB / 444.7 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001725/0.3361, allocations: 20 kB / 444.7 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000738/0.3369, allocations: 52.06 kB / 444.7 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001624/0.337, allocations: 60.58 kB / 444.8 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-05/0.3371, allocations: 23.98 kB / 444.8 MB, free: 10.01 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005985/0.3377, allocations: 459 kB / 445.3 MB, free: 9.562 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3377, allocations: 7.938 kB / 445.3 MB, free: 9.555 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009474/0.3387, allocations: 279.8 kB / 445.5 MB, free: 9.281 MB / 366.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.003531/0.3422, allocations: 1.968 MB / 447.5 MB, free: 7.277 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002254/0.3445, allocations: 1.363 MB / 448.9 MB, free: 5.832 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/0.3445, allocations: 4 kB / 448.9 MB, free: 5.828 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001373/0.3459, allocations: 0.7613 MB / 449.6 MB, free: 5.023 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.347, allocations: 231 kB / 449.9 MB, free: 4.797 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01315/0.3602, allocations: 7.555 MB / 457.4 MB, free: 13.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005883/0.3608, allocations: 0.9479 MB / 458.4 MB, free: 12.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004961/0.3613, allocations: 102.4 kB / 458.5 MB, free: 11.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004119/0.3617, allocations: 299.3 kB / 458.7 MB, free: 11.69 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3618, allocations: 0 / 458.7 MB, free: 11.69 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05685/0.4186, allocations: 25.93 MB / 484.7 MB, free: 2.168 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.73/13.15, allocations: 8.562 kB / 484.7 MB, free: 2.16 MB / 398.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