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.8894/0.8894, allocations: 150.9 MB / 166.5 MB, free: 14.37 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005245/0.0005248, allocations: 15.5 kB / 236.6 MB, free: 2.031 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08394/0.0845, allocations: 31.35 MB / 267.9 MB, free: 7.547 MB / 222.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.779/1.863, allocations: 295 MB / 0.5497 GB, free: 12.81 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.6153/2.479, allocations: 190.5 MB / 0.7358 GB, free: 1.789 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004378/2.479, allocations: 9.219 kB / 0.7358 GB, free: 1.789 MB / 0.5919 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.0004874/2.48, allocations: 208.3 kB / 0.736 GB, free: 1.789 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0005845/2.48, allocations: 277.1 kB / 0.7362 GB, free: 1.789 MB / 0.5919 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.03772/2.518, allocations: 12.52 MB / 0.7485 GB, free: 1.527 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0008881/2.519, allocations: 0.5347 MB / 0.749 GB, free: 1.527 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003653/2.519, allocations: 270.6 kB / 0.7492 GB, free: 1.512 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003553/2.52, allocations: 257 kB / 0.7495 GB, free: 1.512 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003647/2.52, allocations: 355.6 kB / 0.7498 GB, free: 1.512 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.486e-05/2.52, allocations: 42.17 kB / 0.7499 GB, free: 1.512 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04228/2.562, allocations: 21.09 MB / 0.7705 GB, free: 4 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004116/2.563, allocations: 213 kB / 0.7707 GB, free: 0 / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000509/2.563, allocations: 332 kB / 0.771 GB, free: 0 / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0333/2.597, allocations: 10.78 MB / 0.7815 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 1.325e-05/2.597, allocations: 3.781 kB / 0.7815 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.585e-06/2.597, allocations: 0 / 0.7815 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.783e-05/2.597, allocations: 0 / 0.7815 GB, free: 12.11 MB / 0.6075 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.006529/2.603, allocations: 2.331 MB / 0.7838 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/2.603, allocations: 10.78 kB / 0.7838 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.807e-05/2.604, allocations: 80.58 kB / 0.7839 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/2.604, allocations: 85.66 kB / 0.784 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007292/2.604, allocations: 0.5618 MB / 0.7845 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.236e-05/2.604, allocations: 29.66 kB / 0.7845 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.541e-05/2.604, allocations: 38.86 kB / 0.7846 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006547/2.605, allocations: 489.5 kB / 0.785 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/2.605, allocations: 0 / 0.785 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.574e-05/2.605, allocations: 21.84 kB / 0.7851 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/2.605, allocations: 14.34 kB / 0.7851 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005398/2.606, allocations: 412.8 kB / 0.7855 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009657/2.615, allocations: 6.691 MB / 0.792 GB, free: 4.594 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005366/2.616, allocations: 119.8 kB / 0.7921 GB, free: 4.555 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.949e-05/2.616, allocations: 44.38 kB / 0.7922 GB, free: 4.543 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3286/2.945, allocations: 155.7 MB / 0.9442 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.329e-05/2.945, allocations: 38.55 kB / 0.9442 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 3.907e-06/2.945, allocations: 4 kB / 0.9442 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0023/2.947, allocations: 477.9 kB / 0.9447 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.908e-05/2.947, allocations: 106 kB / 0.9448 GB, free: 9.637 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001622/2.949, allocations: 1.071 MB / 0.9458 GB, free: 8.555 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.718e-05/2.949, allocations: 29.7 kB / 0.9458 GB, free: 8.52 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003198/2.949, allocations: 391.8 kB / 0.9462 GB, free: 8.133 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.491e-05/2.949, allocations: 46.58 kB / 0.9463 GB, free: 8.09 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/2.949, allocations: 69.61 kB / 0.9463 GB, free: 8.016 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001618/2.95, allocations: 387.9 kB / 0.9467 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001971/2.95, allocations: 124 kB / 0.9468 GB, free: 7.508 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002741/2.95, allocations: 264.1 kB / 0.9471 GB, free: 7.191 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000391/2.95, allocations: 327.4 kB / 0.9474 GB, free: 6.836 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/2.95, allocations: 0 / 0.9474 GB, free: 6.836 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001524/2.952, allocations: 0.5576 MB / 0.9479 GB, free: 6.297 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/2.952, allocations: 7.938 kB / 0.9479 GB, free: 6.289 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/2.952, allocations: 9.141 kB / 0.9479 GB, free: 6.281 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001542/2.954, allocations: 199.6 kB / 0.9481 GB, free: 6.09 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/2.954, allocations: 47.08 kB / 0.9482 GB, free: 6.047 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006444/2.954, allocations: 0.6316 MB / 0.9488 GB, free: 5.395 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000364/2.955, allocations: 50.53 kB / 0.9488 GB, free: 5.348 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.994e-05/2.955, allocations: 16 kB / 0.9489 GB, free: 5.332 MB / 0.7794 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.000323/2.955, allocations: 267.9 kB / 0.9491 GB, free: 5.066 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001467/2.955, allocations: 63.58 kB / 0.9492 GB, free: 5.004 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007191/2.956, allocations: 262.1 kB / 0.9494 GB, free: 4.742 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/2.956, allocations: 4 kB / 0.9494 GB, free: 4.738 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/2.956, allocations: 4 kB / 0.9494 GB, free: 4.734 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/2.956, allocations: 3.938 kB / 0.9494 GB, free: 4.73 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001929/2.958, allocations: 0.8431 MB / 0.9503 GB, free: 3.844 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/2.958, allocations: 1.094 kB / 0.9503 GB, free: 3.844 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.413e-05/2.958, allocations: 4 kB / 0.9503 GB, free: 3.84 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001084/2.959, allocations: 163.8 kB / 0.9504 GB, free: 3.68 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/2.959, allocations: 0 / 0.9504 GB, free: 3.68 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005582/2.96, allocations: 0.6295 MB / 0.951 GB, free: 3.027 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/2.96, allocations: 1.688 kB / 0.951 GB, free: 3.027 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/2.961, allocations: 406.2 kB / 0.9514 GB, free: 2.617 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002734/2.961, allocations: 177.7 kB / 0.9516 GB, free: 2.426 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.975e-05/2.961, allocations: 8 kB / 0.9516 GB, free: 2.418 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001968/2.962, allocations: 15.92 kB / 0.9516 GB, free: 2.402 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.675e-05/2.962, allocations: 11.98 kB / 0.9516 GB, free: 2.391 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/2.962, allocations: 4 kB / 0.9516 GB, free: 2.387 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.00101/2.963, allocations: 0.7774 MB / 0.9524 GB, free: 1.613 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/2.963, allocations: 0 / 0.9524 GB, free: 1.613 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.005174/2.968, allocations: 1.663 MB / 0.954 GB, free: 15.94 MB / 0.795 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.01051/2.978, allocations: 3.302 MB / 0.9572 GB, free: 12.93 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0007735/2.979, allocations: 238.2 kB / 0.9575 GB, free: 12.71 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/2.979, allocations: 0 / 0.9575 GB, free: 12.71 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002064/2.979, allocations: 58.92 kB / 0.9575 GB, free: 12.66 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008294/2.98, allocations: 92.25 kB / 0.9576 GB, free: 12.57 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01233/2.993, allocations: 6.334 MB / 0.9638 GB, free: 6.086 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005988/2.993, allocations: 0.9312 MB / 0.9647 GB, free: 5.133 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002301/2.994, allocations: 76.23 kB / 0.9648 GB, free: 5.059 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002991/2.994, allocations: 215.4 kB / 0.965 GB, free: 4.852 MB / 0.795 GB Notification: Performance of SimCode: time 5.81e-07/2.994, allocations: 0 / 0.965 GB, free: 4.852 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3361/3.33, allocations: 60.65 MB / 1.024 GB, free: 455.7 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.54/17.87, allocations: 9.688 kB / 1.024 GB, free: 455.7 MB / 0.8419 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)