Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.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.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss",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.7918/0.7918, allocations: 150.9 MB / 166.5 MB, free: 14.47 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003487/0.0003487, allocations: 19.19 kB / 236.6 MB, free: 1.992 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05344/0.05381, allocations: 31.34 MB / 267.9 MB, free: 7.543 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.TestInvSingularPressureLoss): time 1.515/1.569, allocations: 294.9 MB / 0.5496 GB, free: 12.96 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.462/2.031, allocations: 187.4 MB / 0.7326 GB, free: 1.75 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002644/2.032, allocations: 9.609 kB / 0.7326 GB, free: 1.75 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourcePQ.mo:74:3-75: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/InvSingularPressureLoss.mo:30:3-31: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/InvSingularPressureLoss.mo:32:3-33:65: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.0001308/2.032, allocations: 36.83 kB / 0.7327 GB, free: 1.75 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002898/2.032, allocations: 115 kB / 0.7328 GB, free: 1.75 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.0285/2.061, allocations: 11.53 MB / 0.744 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0004772/2.061, allocations: 384.5 kB / 0.7444 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002434/2.061, allocations: 194 kB / 0.7446 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/2.062, allocations: 156.8 kB / 0.7447 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001611/2.062, allocations: 168.7 kB / 0.7449 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.108e-05/2.062, allocations: 33.66 kB / 0.7449 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03334/2.095, allocations: 19.9 MB / 0.7644 GB, free: 1.051 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001139/2.095, allocations: 74.61 kB / 0.7644 GB, free: 1.039 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002768/2.096, allocations: 177.3 kB / 0.7646 GB, free: 1.031 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.024/2.12, allocations: 9.77 MB / 0.7742 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/2.12, allocations: 0 / 0.7742 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.593e-06/2.12, allocations: 1.781 kB / 0.7742 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.809e-06/2.12, allocations: 0.9375 kB / 0.7742 GB, free: 13.46 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: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.004652/2.124, allocations: 1.817 MB / 0.7759 GB, free: 12.25 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/2.124, allocations: 11.31 kB / 0.7759 GB, free: 12.25 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.458e-05/2.124, allocations: 70.84 kB / 0.776 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.449e-05/2.125, allocations: 48.95 kB / 0.7761 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000343/2.125, allocations: 297.8 kB / 0.7763 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.491e-05/2.125, allocations: 26.69 kB / 0.7764 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.725e-05/2.125, allocations: 33.31 kB / 0.7764 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004925/2.125, allocations: 361 kB / 0.7767 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/2.125, allocations: 3.406 kB / 0.7767 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.347e-05/2.126, allocations: 16.34 kB / 0.7768 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/2.126, allocations: 12.42 kB / 0.7768 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004016/2.126, allocations: 233.7 kB / 0.777 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06895/2.195, allocations: 32.14 MB / 0.8084 GB, free: 40 kB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002477/2.195, allocations: 68.48 kB / 0.8084 GB, free: 15.98 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.96e-05/2.195, allocations: 24.67 kB / 0.8085 GB, free: 15.95 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.217/2.412, allocations: 119 MB / 0.9247 GB, free: 13.77 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/2.412, allocations: 34.56 kB / 0.9247 GB, free: 13.73 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=5): time 1.843e-06/2.412, allocations: 0 / 0.9247 GB, free: 13.73 MB / 0.7637 GB Notification: Performance of matching and sorting (n=5): time 0.0004311/2.413, allocations: 112.6 kB / 0.9248 GB, free: 13.62 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.216e-05/2.413, allocations: 55.41 kB / 0.9248 GB, free: 13.55 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003479/2.413, allocations: 303.2 kB / 0.9251 GB, free: 13.24 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/2.413, allocations: 29.7 kB / 0.9252 GB, free: 13.21 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.000141/2.413, allocations: 239.2 kB / 0.9254 GB, free: 12.97 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 1.982e-05/2.413, allocations: 21.16 kB / 0.9254 GB, free: 12.95 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.653e-05/2.413, allocations: 57.64 kB / 0.9255 GB, free: 12.89 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 9.742e-05/2.414, allocations: 330.8 kB / 0.9258 GB, free: 12.56 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/2.414, allocations: 43.97 kB / 0.9258 GB, free: 12.52 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001668/2.414, allocations: 148.2 kB / 0.926 GB, free: 12.33 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002621/2.414, allocations: 192.6 kB / 0.9261 GB, free: 12.11 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/2.414, allocations: 0 / 0.9261 GB, free: 12.11 MB / 0.7637 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004247/2.415, allocations: 232.1 kB / 0.9264 GB, free: 11.9 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/2.415, allocations: 8 kB / 0.9264 GB, free: 11.89 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/2.415, allocations: 4 kB / 0.9264 GB, free: 11.89 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/2.415, allocations: 7.938 kB / 0.9264 GB, free: 11.88 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006268/2.415, allocations: 119.4 kB / 0.9265 GB, free: 11.77 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/2.415, allocations: 9.453 kB / 0.9265 GB, free: 11.76 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001925/2.415, allocations: 39.72 kB / 0.9266 GB, free: 11.72 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.948e-05/2.416, allocations: 12 kB / 0.9266 GB, free: 11.71 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 6 (sourcePQ.C.ftype,sinkQ.fluid,invSingularPressureLoss.fluid,sourcePQ.fluid1,sourcePQ.C.diff_on_2,invSingularPressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001302/2.416, allocations: 146.9 kB / 0.9267 GB, free: 11.56 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.562e-05/2.416, allocations: 38.47 kB / 0.9267 GB, free: 11.53 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002647/2.416, allocations: 105 kB / 0.9268 GB, free: 11.42 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/2.416, allocations: 7.922 kB / 0.9268 GB, free: 11.41 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/2.416, allocations: 3.094 kB / 0.9268 GB, free: 11.41 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/2.416, allocations: 4 kB / 0.9269 GB, free: 11.41 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3832/2.799, allocations: 115.2 MB / 1.039 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/2.799, allocations: 0 / 1.039 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.156e-05/2.799, allocations: 14.03 kB / 1.039 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/2.799, allocations: 3.75 kB / 1.039 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/2.799, allocations: 3.688 kB / 1.039 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/2.799, allocations: 6.844 kB / 1.039 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/2.799, allocations: 0 / 1.039 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002609/2.8, allocations: 155.5 kB / 1.04 GB, free: 441 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.121e-05/2.8, allocations: 108.3 kB / 1.04 GB, free: 440.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.424e-05/2.8, allocations: 6.781 kB / 1.04 GB, free: 440.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.56e-05/2.8, allocations: 11.95 kB / 1.04 GB, free: 440.9 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.019e-05/2.8, allocations: 2.875 kB / 1.04 GB, free: 440.9 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.986e-06/2.8, allocations: 2.562 kB / 1.04 GB, free: 440.9 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001859/2.8, allocations: 221.7 kB / 1.04 GB, free: 440.9 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.41e-07/2.8, allocations: 0 / 1.04 GB, free: 440.9 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.003436/2.804, allocations: 1.457 MB / 1.041 GB, free: 440.9 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006297/2.81, allocations: 2.816 MB / 1.044 GB, free: 440.1 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004122/2.81, allocations: 116.1 kB / 1.044 GB, free: 440.1 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/2.81, allocations: 0 / 1.044 GB, free: 440.1 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 8.847e-05/2.81, allocations: 25.39 kB / 1.044 GB, free: 440.1 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004303/2.811, allocations: 69.27 kB / 1.044 GB, free: 440.1 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004067/2.815, allocations: 3.079 MB / 1.047 GB, free: 438.3 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001636/2.815, allocations: 0.7588 MB / 1.048 GB, free: 437.6 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001505/2.815, allocations: 47.97 kB / 1.048 GB, free: 437.6 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/2.815, allocations: 95.62 kB / 1.048 GB, free: 437.6 MB / 0.8419 GB Notification: Performance of SimCode: time 4.71e-07/2.815, allocations: 0 / 1.048 GB, free: 437.6 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06744/2.883, allocations: 50.71 MB / 1.098 GB, free: 397.5 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.818/12.7, allocations: 13.77 kB / 1.098 GB, free: 397.5 MB / 0.8419 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss_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_TestInvSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)