Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8099/0.8099, allocations: 150.9 MB / 166.4 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003444/0.0003445, allocations: 15.97 kB / 204.7 MB, free: 9.633 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1447, allocations: 31.33 MB / 236 MB, free: 5.398 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend): time 1.558/1.702, allocations: 294.8 MB / 0.5184 GB, free: 12.84 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5044/2.207, allocations: 190.5 MB / 0.7044 GB, free: 2.242 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000362/2.207, allocations: 8.188 kB / 0.7044 GB, free: 2.242 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/Bend.mo:57:3-58:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/Bend.mo:59:3-60:67:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0005042/2.208, allocations: 200.9 kB / 0.7046 GB, free: 2.242 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0006596/2.208, allocations: 282.8 kB / 0.7049 GB, free: 2.242 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.02854/2.237, allocations: 12.29 MB / 0.7169 GB, free: 2.086 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008503/2.238, allocations: 0.5307 MB / 0.7174 GB, free: 2.086 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003235/2.238, allocations: 278.3 kB / 0.7177 GB, free: 2.062 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002986/2.238, allocations: 245.1 kB / 0.7179 GB, free: 2.062 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003481/2.239, allocations: 358.5 kB / 0.7182 GB, free: 2.062 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.412e-05/2.239, allocations: 41.81 kB / 0.7183 GB, free: 2.062 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03673/2.276, allocations: 20.81 MB / 0.7386 GB, free: 1.945 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002666/2.276, allocations: 206.1 kB / 0.7388 GB, free: 1.945 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003888/2.276, allocations: 326.1 kB / 0.7391 GB, free: 1.945 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02477/2.301, allocations: 10.78 MB / 0.7496 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/2.301, allocations: 1.188 kB / 0.7496 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.713e-06/2.301, allocations: 0 / 0.7496 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.049e-05/2.301, allocations: 0 / 0.7496 GB, free: 14.2 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.005692/2.307, allocations: 2.238 MB / 0.7518 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/2.307, allocations: 11.66 kB / 0.7518 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.904e-05/2.307, allocations: 75.38 kB / 0.7519 GB, free: 12.73 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/2.307, allocations: 85.41 kB / 0.752 GB, free: 12.69 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006553/2.308, allocations: 0.5394 MB / 0.7525 GB, free: 12.33 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.8e-05/2.308, allocations: 33.94 kB / 0.7526 GB, free: 12.33 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.603e-05/2.308, allocations: 37.16 kB / 0.7526 GB, free: 12.33 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006088/2.308, allocations: 493.6 kB / 0.7531 GB, free: 12.15 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/2.308, allocations: 4.125 kB / 0.7531 GB, free: 12.15 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.108e-05/2.309, allocations: 15.16 kB / 0.7531 GB, free: 12.15 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/2.309, allocations: 10.59 kB / 0.7531 GB, free: 12.15 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005224/2.309, allocations: 421.8 kB / 0.7535 GB, free: 12.09 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008868/2.318, allocations: 6.704 MB / 0.76 GB, free: 6.816 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004805/2.318, allocations: 118.4 kB / 0.7602 GB, free: 6.777 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.015e-05/2.319, allocations: 45.22 kB / 0.7602 GB, free: 6.766 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3168/2.635, allocations: 154.7 MB / 0.9113 GB, free: 1.906 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.231e-05/2.635, allocations: 34.56 kB / 0.9113 GB, free: 1.863 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=11): time 2.244e-06/2.635, allocations: 3.844 kB / 0.9113 GB, free: 1.863 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.002162/2.638, allocations: 477.4 kB / 0.9118 GB, free: 1.422 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.942e-05/2.638, allocations: 107.9 kB / 0.9119 GB, free: 1.293 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001486/2.639, allocations: 1.064 MB / 0.9129 GB, free: 496 kB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/2.639, allocations: 25.7 kB / 0.913 GB, free: 464 kB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002894/2.639, allocations: 392.1 kB / 0.9133 GB, free: 204 kB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.602e-05/2.64, allocations: 42.14 kB / 0.9134 GB, free: 168 kB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/2.64, allocations: 75.08 kB / 0.9134 GB, free: 108 kB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001721/2.64, allocations: 384.1 kB / 0.9138 GB, free: 15.75 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001753/2.64, allocations: 127 kB / 0.9139 GB, free: 15.66 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002543/2.64, allocations: 262 kB / 0.9142 GB, free: 15.39 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003777/2.641, allocations: 319.2 kB / 0.9145 GB, free: 15.11 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/2.641, allocations: 0 / 0.9145 GB, free: 15.11 MB / 0.7637 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001401/2.642, allocations: 0.5665 MB / 0.915 GB, free: 14.67 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/2.642, allocations: 4 kB / 0.915 GB, free: 14.66 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/2.642, allocations: 5.203 kB / 0.915 GB, free: 14.66 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001486/2.644, allocations: 200.8 kB / 0.9152 GB, free: 14.48 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001553/2.644, allocations: 43.08 kB / 0.9153 GB, free: 14.44 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005541/2.644, allocations: 0.6298 MB / 0.9159 GB, free: 13.83 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003311/2.645, allocations: 45.95 kB / 0.9159 GB, free: 13.79 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.817e-05/2.645, allocations: 18.98 kB / 0.916 GB, free: 13.77 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,SinkP1.fluid,Bend.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,Bend.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.000275/2.645, allocations: 263.9 kB / 0.9162 GB, free: 13.56 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001294/2.645, allocations: 63.16 kB / 0.9163 GB, free: 13.5 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006732/2.646, allocations: 261.8 kB / 0.9165 GB, free: 13.29 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/2.646, allocations: 4 kB / 0.9165 GB, free: 13.29 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.473e-06/2.646, allocations: 7.938 kB / 0.9165 GB, free: 13.28 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/2.646, allocations: 3.984 kB / 0.9165 GB, free: 13.28 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001791/2.648, allocations: 0.8342 MB / 0.9173 GB, free: 12.54 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/2.648, allocations: 1.203 kB / 0.9173 GB, free: 12.54 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.073e-05/2.648, allocations: 4 kB / 0.9173 GB, free: 12.54 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001041/2.649, allocations: 166.8 kB / 0.9175 GB, free: 12.39 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/2.649, allocations: 7.922 kB / 0.9175 GB, free: 12.38 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005272/2.649, allocations: 0.6281 MB / 0.9181 GB, free: 11.78 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/2.649, allocations: 0 / 0.9181 GB, free: 11.78 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/2.651, allocations: 417.3 kB / 0.9185 GB, free: 11.39 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001938/2.651, allocations: 170.8 kB / 0.9187 GB, free: 11.22 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.235e-05/2.651, allocations: 7.875 kB / 0.9187 GB, free: 11.22 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001836/2.651, allocations: 4 kB / 0.9187 GB, free: 11.21 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.809e-05/2.651, allocations: 11.17 kB / 0.9187 GB, free: 11.21 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/2.651, allocations: 7.812 kB / 0.9187 GB, free: 11.2 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0008851/2.652, allocations: 0.7797 MB / 0.9195 GB, free: 10.52 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.8e-07/2.652, allocations: 1.203 kB / 0.9195 GB, free: 10.52 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004343/2.656, allocations: 1.647 MB / 0.9211 GB, free: 8.871 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009452/2.666, allocations: 3.266 MB / 0.9243 GB, free: 5.879 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0006812/2.667, allocations: 241.7 kB / 0.9245 GB, free: 5.656 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/2.667, allocations: 0 / 0.9245 GB, free: 5.656 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001928/2.667, allocations: 63.92 kB / 0.9246 GB, free: 5.598 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007759/2.668, allocations: 90.58 kB / 0.9247 GB, free: 5.516 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01143/2.679, allocations: 6.455 MB / 0.931 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005862/2.68, allocations: 0.9275 MB / 0.9319 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002419/2.68, allocations: 80.38 kB / 0.9319 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002836/2.68, allocations: 211.4 kB / 0.9321 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of SimCode: time 9.32e-07/2.68, allocations: 4 kB / 0.9321 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2617/2.942, allocations: 60.53 MB / 0.9913 GB, free: 453 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.22/16.16, allocations: 5.922 kB / 0.9913 GB, free: 453 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestBend.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)