Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.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.SimpleExamples.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_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.8968/0.8968, allocations: 150.9 MB / 166.4 MB, free: 14.55 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003772/0.0003772, allocations: 19.97 kB / 204.6 MB, free: 9.73 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.201/0.2014, allocations: 31.33 MB / 236 MB, free: 5.402 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.SimpleExamples.TestBend): time 1.794/1.995, allocations: 294.9 MB / 0.5184 GB, free: 13.09 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.6161/2.611, allocations: 190.5 MB / 0.7045 GB, free: 2.094 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000442/2.612, allocations: 8.219 kB / 0.7045 GB, free: 2.094 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.0004803/2.612, allocations: 207.5 kB / 0.7047 GB, free: 2.094 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005537/2.613, allocations: 274.6 kB / 0.7049 GB, free: 2.094 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.03603/2.649, allocations: 12.29 MB / 0.7169 GB, free: 1.938 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009263/2.65, allocations: 0.5328 MB / 0.7175 GB, free: 1.938 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003486/2.65, allocations: 276.8 kB / 0.7177 GB, free: 1.914 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003012/2.65, allocations: 253.3 kB / 0.718 GB, free: 1.914 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003593/2.651, allocations: 352.3 kB / 0.7183 GB, free: 1.914 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.663e-05/2.651, allocations: 41.75 kB / 0.7183 GB, free: 1.914 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04472/2.696, allocations: 20.82 MB / 0.7387 GB, free: 1.797 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004512/2.696, allocations: 204.8 kB / 0.7389 GB, free: 1.797 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005738/2.697, allocations: 327.4 kB / 0.7392 GB, free: 1.797 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03296/2.73, allocations: 10.77 MB / 0.7497 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/2.73, allocations: 0.9375 kB / 0.7497 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.034e-06/2.73, allocations: 0 / 0.7497 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.265e-05/2.73, allocations: 0.8438 kB / 0.7497 GB, free: 13.99 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.006816/2.737, allocations: 2.233 MB / 0.7519 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/2.737, allocations: 12.12 kB / 0.7519 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.588e-05/2.737, allocations: 78.16 kB / 0.752 GB, free: 12.51 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001385/2.737, allocations: 79.75 kB / 0.752 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000657/2.738, allocations: 0.5481 MB / 0.7526 GB, free: 12.11 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.136e-05/2.738, allocations: 28.5 kB / 0.7526 GB, free: 12.11 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.674e-05/2.738, allocations: 37.88 kB / 0.7526 GB, free: 12.11 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006771/2.738, allocations: 492.4 kB / 0.7531 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/2.738, allocations: 3.188 kB / 0.7531 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.525e-05/2.738, allocations: 19.25 kB / 0.7531 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/2.738, allocations: 11.53 kB / 0.7531 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000528/2.739, allocations: 408.9 kB / 0.7535 GB, free: 11.88 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01033/2.749, allocations: 6.712 MB / 0.7601 GB, free: 6.598 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006583/2.75, allocations: 123.9 kB / 0.7602 GB, free: 6.555 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/2.75, allocations: 46.02 kB / 0.7602 GB, free: 6.543 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.349/3.099, allocations: 154.7 MB / 0.9113 GB, free: 1.676 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.069e-05/3.099, allocations: 34.56 kB / 0.9114 GB, free: 1.633 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=11): time 3.026e-06/3.099, allocations: 4 kB / 0.9114 GB, free: 1.629 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.002358/3.102, allocations: 467.3 kB / 0.9118 GB, free: 1.195 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.504e-05/3.102, allocations: 102.8 kB / 0.9119 GB, free: 1.07 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001521/3.103, allocations: 1.069 MB / 0.913 GB, free: 264 kB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.222e-05/3.103, allocations: 29.7 kB / 0.913 GB, free: 228 kB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002935/3.104, allocations: 386.7 kB / 0.9134 GB, free: 15.98 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 4.208e-05/3.104, allocations: 43.27 kB / 0.9134 GB, free: 15.94 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001166/3.104, allocations: 77.39 kB / 0.9135 GB, free: 15.88 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001502/3.104, allocations: 382.3 kB / 0.9138 GB, free: 15.53 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001824/3.104, allocations: 127.5 kB / 0.914 GB, free: 15.44 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002534/3.104, allocations: 262.1 kB / 0.9142 GB, free: 15.17 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003551/3.105, allocations: 322.3 kB / 0.9145 GB, free: 14.89 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/3.105, allocations: 0 / 0.9145 GB, free: 14.89 MB / 0.7637 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001398/3.106, allocations: 0.5585 MB / 0.9151 GB, free: 14.45 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/3.106, allocations: 8 kB / 0.9151 GB, free: 14.44 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/3.106, allocations: 4 kB / 0.9151 GB, free: 14.44 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001489/3.108, allocations: 200.5 kB / 0.9153 GB, free: 14.26 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/3.108, allocations: 54.84 kB / 0.9153 GB, free: 14.21 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005522/3.108, allocations: 0.6274 MB / 0.9159 GB, free: 13.6 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003488/3.109, allocations: 43.7 kB / 0.916 GB, free: 13.56 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.562e-05/3.109, allocations: 13.81 kB / 0.916 GB, free: 13.55 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.0002748/3.109, allocations: 272.2 kB / 0.9163 GB, free: 13.34 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001367/3.109, allocations: 64.42 kB / 0.9163 GB, free: 13.27 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000682/3.11, allocations: 262.8 kB / 0.9166 GB, free: 13.06 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/3.11, allocations: 0 / 0.9166 GB, free: 13.06 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/3.11, allocations: 5.031 kB / 0.9166 GB, free: 13.06 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/3.11, allocations: 0 / 0.9166 GB, free: 13.06 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00179/3.112, allocations: 0.8456 MB / 0.9174 GB, free: 12.32 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/3.112, allocations: 0 / 0.9174 GB, free: 12.32 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.233e-05/3.112, allocations: 4 kB / 0.9174 GB, free: 12.31 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001032/3.113, allocations: 159.9 kB / 0.9176 GB, free: 12.17 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/3.113, allocations: 6.625 kB / 0.9176 GB, free: 12.16 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004904/3.113, allocations: 0.6312 MB / 0.9182 GB, free: 11.55 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/3.113, allocations: 4.062 kB / 0.9182 GB, free: 11.55 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001217/3.115, allocations: 415.7 kB / 0.9186 GB, free: 11.16 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001918/3.115, allocations: 167.8 kB / 0.9187 GB, free: 11 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.342e-05/3.115, allocations: 4 kB / 0.9187 GB, free: 11 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001926/3.115, allocations: 12.45 kB / 0.9188 GB, free: 10.99 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.61e-05/3.115, allocations: 11.17 kB / 0.9188 GB, free: 10.98 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/3.115, allocations: 4 kB / 0.9188 GB, free: 10.98 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0008329/3.116, allocations: 0.7842 MB / 0.9195 GB, free: 10.39 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.4e-07/3.116, allocations: 4 kB / 0.9195 GB, free: 10.38 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004536/3.121, allocations: 1.639 MB / 0.9211 GB, free: 8.742 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.00985/3.13, allocations: 3.269 MB / 0.9243 GB, free: 5.746 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0006328/3.131, allocations: 236.3 kB / 0.9246 GB, free: 5.527 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/3.131, allocations: 0 / 0.9246 GB, free: 5.527 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001861/3.131, allocations: 60.08 kB / 0.9246 GB, free: 5.473 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007563/3.132, allocations: 104.6 kB / 0.9247 GB, free: 5.379 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01137/3.143, allocations: 6.45 MB / 0.931 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005688/3.144, allocations: 0.9323 MB / 0.9319 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002427/3.144, allocations: 68.23 kB / 0.932 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002754/3.145, allocations: 219.4 kB / 0.9322 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of SimCode: time 7.11e-07/3.145, allocations: 1.203 kB / 0.9322 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2932/3.438, allocations: 60.5 MB / 0.9913 GB, free: 422.7 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.72/18.16, allocations: 7.578 kB / 0.9913 GB, free: 422.7 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.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_SimpleExamples_TestBend.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe 2>&1)