Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_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.7762/0.7762, allocations: 150.9 MB / 166.4 MB, free: 14.52 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003281/0.0003283, allocations: 15.97 kB / 204.6 MB, free: 9.73 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1245, 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.Examples.SimpleExamples.TestInvSingularPressureLoss): time 1.463/1.587, allocations: 294.5 MB / 0.5181 GB, free: 13.52 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03685/1.624, allocations: 34.38 MB / 0.5516 GB, free: 11.26 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001638/1.624, allocations: 4 kB / 0.5516 GB, free: 11.26 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourcePQ.mo:29:3-30:52:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/InvSingularPressureLoss.mo:26:3-28:16:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/InvSingularPressureLoss.mo:29:3-30:83:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0003308/1.625, allocations: 103.4 kB / 0.5517 GB, free: 11.16 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001843/1.625, allocations: 75.38 kB / 0.5518 GB, free: 11.08 MB / 446.1 MB [/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. Notification: Performance of NFTyping.typeClassSections: time 0.02175/1.647, allocations: 9.564 MB / 0.5611 GB, free: 1.52 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000377/1.647, allocations: 282.7 kB / 0.5614 GB, free: 1.242 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/1.647, allocations: 100.9 kB / 0.5615 GB, free: 1.145 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001988/1.647, allocations: 119.5 kB / 0.5616 GB, free: 1.027 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001266/1.648, allocations: 95.52 kB / 0.5617 GB, free: 0.9336 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.375e-05/1.648, allocations: 16 kB / 0.5617 GB, free: 0.918 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02884/1.676, allocations: 17.67 MB / 0.579 GB, free: 15.22 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 5.719e-05/1.676, allocations: 35.84 kB / 0.579 GB, free: 15.19 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001461/1.677, allocations: 115.4 kB / 0.5791 GB, free: 15.07 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0156/1.692, allocations: 8.387 MB / 0.5873 GB, free: 6.668 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/1.692, allocations: 0 / 0.5873 GB, free: 6.668 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.392e-06/1.692, allocations: 0 / 0.5873 GB, free: 6.668 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/1.692, allocations: 4 kB / 0.5873 GB, free: 6.664 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.003317/1.696, allocations: 1.396 MB / 0.5887 GB, free: 5.215 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/1.696, allocations: 8.031 kB / 0.5887 GB, free: 5.207 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.353e-05/1.696, allocations: 62.53 kB / 0.5888 GB, free: 5.137 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.408e-05/1.696, allocations: 27.66 kB / 0.5888 GB, free: 5.109 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002015/1.696, allocations: 214.7 kB / 0.589 GB, free: 4.859 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.63e-05/1.696, allocations: 12.38 kB / 0.589 GB, free: 4.848 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.638e-05/1.696, allocations: 20 kB / 0.589 GB, free: 4.828 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003982/1.696, allocations: 264.2 kB / 0.5893 GB, free: 4.551 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/1.696, allocations: 3.938 kB / 0.5893 GB, free: 4.547 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/1.696, allocations: 4 kB / 0.5893 GB, free: 4.543 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.452e-05/1.697, allocations: 15.94 kB / 0.5893 GB, free: 4.527 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002703/1.697, allocations: 141.1 kB / 0.5894 GB, free: 4.391 MB / 478.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01878/1.716, allocations: 9.496 MB / 0.5987 GB, free: 9.922 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001905/1.716, allocations: 84.09 kB / 0.5988 GB, free: 9.832 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.504e-05/1.716, allocations: 56.89 kB / 0.5988 GB, free: 9.773 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1477/1.864, allocations: 77.27 MB / 0.6743 GB, free: 3.723 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/1.864, allocations: 30.56 kB / 0.6743 GB, free: 3.684 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 2.064e-06/1.864, allocations: 0 / 0.6743 GB, free: 3.684 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22): time 0.0004991/1.864, allocations: 202.8 kB / 0.6745 GB, free: 3.48 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.034e-05/1.864, allocations: 55.41 kB / 0.6746 GB, free: 3.414 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002288/1.865, allocations: 228.8 kB / 0.6748 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.679e-05/1.865, allocations: 25.7 kB / 0.6748 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.275e-05/1.865, allocations: 144.2 kB / 0.675 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.049e-05/1.865, allocations: 74.84 kB / 0.675 GB, free: 2.934 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.261e-05/1.865, allocations: 37.64 kB / 0.6751 GB, free: 2.891 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001108/1.865, allocations: 338.8 kB / 0.6754 GB, free: 2.551 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/1.865, allocations: 55.97 kB / 0.6754 GB, free: 2.496 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/1.865, allocations: 92.27 kB / 0.6755 GB, free: 2.391 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002291/1.865, allocations: 146.3 kB / 0.6757 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/1.865, allocations: 8 kB / 0.6757 GB, free: 2.227 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003412/1.866, allocations: 196.5 kB / 0.6759 GB, free: 2.031 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/1.866, allocations: 4 kB / 0.6759 GB, free: 2.027 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/1.866, allocations: 4 kB / 0.6759 GB, free: 2.023 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/1.866, allocations: 3.938 kB / 0.6759 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006485/1.866, allocations: 100 kB / 0.676 GB, free: 1.922 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.451e-06/1.866, allocations: 0 / 0.676 GB, free: 1.922 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001212/1.867, allocations: 33.17 kB / 0.676 GB, free: 1.891 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.273e-05/1.867, allocations: 8 kB / 0.676 GB, free: 1.883 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (invSingularPressureLoss.C2.b,invSingularPressureLoss.C1.a,sinkQ.C.a,sourcePQ.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001056/1.867, allocations: 137.7 kB / 0.6761 GB, free: 1.738 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.318e-05/1.867, allocations: 23.72 kB / 0.6762 GB, free: 1.715 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004078/1.867, allocations: 324.8 kB / 0.6765 GB, free: 1.359 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002233/1.867, allocations: 151.6 kB / 0.6766 GB, free: 1.207 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/1.867, allocations: 3.938 kB / 0.6766 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/1.867, allocations: 0 / 0.6766 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000774/1.868, allocations: 0.6118 MB / 0.6772 GB, free: 0.5312 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/1.868, allocations: 0 / 0.6772 GB, free: 0.5312 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005197/1.869, allocations: 97.84 kB / 0.6773 GB, free: 448 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.541e-06/1.869, allocations: 4 kB / 0.6773 GB, free: 444 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.358e-06/1.869, allocations: 0 / 0.6773 GB, free: 444 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/1.869, allocations: 0 / 0.6773 GB, free: 444 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/1.869, allocations: 4 kB / 0.6773 GB, free: 440 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003654/1.869, allocations: 290.4 kB / 0.6776 GB, free: 132 kB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.655e-05/1.869, allocations: 112.8 kB / 0.6777 GB, free: 0 / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.638e-05/1.869, allocations: 7.984 kB / 0.6777 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001175/1.869, allocations: 7.938 kB / 0.6777 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.303e-05/1.869, allocations: 11.98 kB / 0.6777 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.272e-06/1.869, allocations: 0 / 0.6777 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001785/1.87, allocations: 210 kB / 0.6779 GB, free: 15.77 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.87, allocations: 4 kB / 0.6779 GB, free: 15.77 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002634/1.872, allocations: 1.163 MB / 0.6791 GB, free: 14.6 MB / 0.5762 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.005741/1.878, allocations: 2.452 MB / 0.6815 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004095/1.878, allocations: 197.6 kB / 0.6817 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/1.878, allocations: 0 / 0.6817 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001392/1.879, allocations: 75.84 kB / 0.6817 GB, free: 11.87 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006403/1.879, allocations: 105.1 kB / 0.6818 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004007/1.883, allocations: 2.8 MB / 0.6846 GB, free: 8.863 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002768/1.884, allocations: 0.748 MB / 0.6853 GB, free: 8.09 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001148/1.884, allocations: 33.92 kB / 0.6853 GB, free: 8.059 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/1.884, allocations: 83.41 kB / 0.6854 GB, free: 7.98 MB / 0.5762 GB Notification: Performance of SimCode: time 3.01e-07/1.884, allocations: 0 / 0.6854 GB, free: 7.98 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2043/2.088, allocations: 46.11 MB / 0.7304 GB, free: 208.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.234/11.32, allocations: 11.12 kB / 0.7304 GB, free: 208.2 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.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_Examples_SimpleExamples_TestInvSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)