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.827/0.827, allocations: 150.9 MB / 166.5 MB, free: 14.4 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004788/0.0004786, allocations: 20.62 kB / 236.6 MB, free: 1.988 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05135/0.05184, allocations: 31.35 MB / 267.9 MB, free: 7.559 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.616/1.668, allocations: 295.5 MB / 0.5502 GB, free: 12.92 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4802/2.148, allocations: 190.5 MB / 0.7363 GB, free: 1.805 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003196/2.149, allocations: 7.031 kB / 0.7363 GB, free: 1.805 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.0003546/2.149, allocations: 201.5 kB / 0.7365 GB, free: 1.805 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0004208/2.15, allocations: 285.1 kB / 0.7367 GB, free: 1.805 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.03069/2.18, allocations: 12.27 MB / 0.7487 GB, free: 1.543 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0008204/2.181, allocations: 0.5385 MB / 0.7492 GB, free: 1.543 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003511/2.181, allocations: 282 kB / 0.7495 GB, free: 1.523 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002922/2.182, allocations: 243.5 kB / 0.7497 GB, free: 1.523 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003163/2.182, allocations: 364 kB / 0.7501 GB, free: 1.523 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.271e-05/2.182, allocations: 41 kB / 0.7501 GB, free: 1.523 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03512/2.217, allocations: 21.07 MB / 0.7707 GB, free: 16 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002991/2.218, allocations: 208.2 kB / 0.7709 GB, free: 0 / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004347/2.218, allocations: 329.3 kB / 0.7712 GB, free: 0 / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02763/2.246, allocations: 10.78 MB / 0.7818 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/2.246, allocations: 0.875 kB / 0.7818 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.964e-06/2.246, allocations: 0 / 0.7818 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.311e-05/2.246, allocations: 2.109 kB / 0.7818 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.005917/2.252, allocations: 2.329 MB / 0.784 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/2.252, allocations: 11.09 kB / 0.784 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.611e-05/2.252, allocations: 79.7 kB / 0.7841 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001445/2.252, allocations: 89.09 kB / 0.7842 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006665/2.253, allocations: 0.5592 MB / 0.7847 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.836e-05/2.253, allocations: 25.06 kB / 0.7848 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.841e-05/2.253, allocations: 42.03 kB / 0.7848 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006316/2.253, allocations: 493.1 kB / 0.7853 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/2.253, allocations: 2.344 kB / 0.7853 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.122e-05/2.253, allocations: 17.22 kB / 0.7853 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/2.253, allocations: 10.94 kB / 0.7853 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005095/2.254, allocations: 415.4 kB / 0.7857 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009288/2.263, allocations: 6.696 MB / 0.7922 GB, free: 4.594 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005316/2.264, allocations: 121.6 kB / 0.7924 GB, free: 4.555 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.646e-05/2.264, allocations: 45.25 kB / 0.7924 GB, free: 4.543 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3288/2.593, allocations: 155.7 MB / 0.9444 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/2.593, allocations: 42.34 kB / 0.9445 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 2.845e-06/2.593, allocations: 0 / 0.9445 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.002163/2.595, allocations: 473.3 kB / 0.9449 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.291e-05/2.595, allocations: 106.8 kB / 0.945 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001398/2.597, allocations: 1.071 MB / 0.9461 GB, free: 8.895 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.264e-05/2.597, allocations: 25.7 kB / 0.9461 GB, free: 8.863 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003181/2.597, allocations: 397.1 kB / 0.9465 GB, free: 8.477 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.92e-05/2.597, allocations: 43.69 kB / 0.9465 GB, free: 8.434 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/2.597, allocations: 77.59 kB / 0.9466 GB, free: 8.352 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001868/2.597, allocations: 379.9 kB / 0.9469 GB, free: 7.973 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000191/2.597, allocations: 124 kB / 0.9471 GB, free: 7.852 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002938/2.598, allocations: 265 kB / 0.9473 GB, free: 7.531 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003994/2.598, allocations: 323.4 kB / 0.9476 GB, free: 7.18 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/2.598, allocations: 0 / 0.9476 GB, free: 7.18 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001386/2.6, allocations: 0.5653 MB / 0.9482 GB, free: 6.641 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/2.6, allocations: 10.28 kB / 0.9482 GB, free: 6.633 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/2.6, allocations: 9.203 kB / 0.9482 GB, free: 6.625 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001459/2.601, allocations: 196.8 kB / 0.9484 GB, free: 6.434 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001609/2.601, allocations: 50.16 kB / 0.9484 GB, free: 6.391 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006204/2.602, allocations: 0.6286 MB / 0.949 GB, free: 5.742 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003068/2.602, allocations: 47.66 kB / 0.9491 GB, free: 5.695 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.626e-05/2.602, allocations: 16 kB / 0.9491 GB, free: 5.68 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.0003241/2.603, allocations: 265 kB / 0.9494 GB, free: 5.414 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.925e-05/2.603, allocations: 63.58 kB / 0.9494 GB, free: 5.352 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007026/2.603, allocations: 272.5 kB / 0.9497 GB, free: 5.082 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.165e-06/2.603, allocations: 0 / 0.9497 GB, free: 5.082 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/2.603, allocations: 0 / 0.9497 GB, free: 5.082 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/2.603, allocations: 3.938 kB / 0.9497 GB, free: 5.078 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001814/2.605, allocations: 0.8406 MB / 0.9505 GB, free: 4.188 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/2.605, allocations: 2.375 kB / 0.9505 GB, free: 4.188 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.348e-05/2.605, allocations: 7.094 kB / 0.9505 GB, free: 4.184 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00106/2.606, allocations: 163.5 kB / 0.9507 GB, free: 4.023 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/2.606, allocations: 0 / 0.9507 GB, free: 4.023 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005693/2.607, allocations: 0.6295 MB / 0.9513 GB, free: 3.371 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/2.607, allocations: 0 / 0.9513 GB, free: 3.371 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001258/2.608, allocations: 414.8 kB / 0.9517 GB, free: 2.961 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002095/2.608, allocations: 184.5 kB / 0.9519 GB, free: 2.762 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.032e-05/2.609, allocations: 4 kB / 0.9519 GB, free: 2.758 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001798/2.609, allocations: 11.98 kB / 0.9519 GB, free: 2.746 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.636e-05/2.609, allocations: 7.984 kB / 0.9519 GB, free: 2.738 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/2.609, allocations: 4 kB / 0.9519 GB, free: 2.734 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0009433/2.61, allocations: 0.7774 MB / 0.9526 GB, free: 1.961 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.6e-07/2.61, allocations: 0 / 0.9526 GB, free: 1.961 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.004207/2.614, allocations: 1.663 MB / 0.9543 GB, free: 300 kB / 0.7794 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.008084/2.622, allocations: 3.293 MB / 0.9575 GB, free: 13.29 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.000612/2.623, allocations: 240.7 kB / 0.9577 GB, free: 13.07 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/2.623, allocations: 0 / 0.9577 GB, free: 13.07 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001812/2.623, allocations: 60.94 kB / 0.9578 GB, free: 13.01 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006324/2.624, allocations: 98.95 kB / 0.9579 GB, free: 12.92 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01031/2.634, allocations: 6.327 MB / 0.964 GB, free: 6.434 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005534/2.634, allocations: 0.9263 MB / 0.9649 GB, free: 5.484 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002096/2.635, allocations: 78.81 kB / 0.965 GB, free: 5.41 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002707/2.635, allocations: 215.4 kB / 0.9652 GB, free: 5.203 MB / 0.795 GB Notification: Performance of SimCode: time 8.71e-07/2.635, allocations: 0 / 0.9652 GB, free: 5.203 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2751/2.91, allocations: 60.66 MB / 1.024 GB, free: 455.8 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.63/17.54, allocations: 8.062 kB / 1.024 GB, free: 455.8 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)