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.8195/0.8195, allocations: 150.9 MB / 166.5 MB, free: 14.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003625/0.0003628, allocations: 15.72 kB / 236.6 MB, free: 2.004 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06146/0.06184, allocations: 31.35 MB / 267.9 MB, free: 7.539 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.Examples.SimpleExamples.TestInvSingularPressureLoss): time 1.637/1.699, allocations: 294.6 MB / 0.5494 GB, free: 12.85 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04378/1.743, allocations: 34.38 MB / 0.583 GB, free: 10.33 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001919/1.743, allocations: 0 / 0.583 GB, free: 10.33 MB / 478.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.0004396/1.744, allocations: 127.4 kB / 0.5831 GB, free: 10.2 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002569/1.744, allocations: 87.33 kB / 0.5832 GB, free: 10.12 MB / 478.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.02673/1.771, allocations: 9.736 MB / 0.5927 GB, free: 380 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004711/1.771, allocations: 274.7 kB / 0.5929 GB, free: 104 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002613/1.772, allocations: 112.2 kB / 0.593 GB, free: 15.99 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002657/1.772, allocations: 119.5 kB / 0.5932 GB, free: 15.88 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001732/1.772, allocations: 91.52 kB / 0.5933 GB, free: 15.79 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.319e-05/1.772, allocations: 16 kB / 0.5933 GB, free: 15.77 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03731/1.809, allocations: 17.89 MB / 0.6107 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.011e-05/1.809, allocations: 47.83 kB / 0.6108 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001762/1.81, allocations: 111.4 kB / 0.6109 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02151/1.831, allocations: 8.388 MB / 0.6191 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/1.831, allocations: 0 / 0.6191 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.717e-06/1.831, allocations: 3.984 kB / 0.6191 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.281e-05/1.831, allocations: 0 / 0.6191 GB, free: 5.293 MB / 0.4981 GB 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.005085/1.836, allocations: 1.453 MB / 0.6205 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/1.836, allocations: 12.03 kB / 0.6205 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.998e-05/1.837, allocations: 62.53 kB / 0.6206 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.05e-05/1.837, allocations: 31.8 kB / 0.6206 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002494/1.837, allocations: 210.7 kB / 0.6208 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.386e-05/1.837, allocations: 20.31 kB / 0.6208 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.967e-05/1.837, allocations: 16 kB / 0.6208 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004416/1.837, allocations: 262 kB / 0.6211 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/1.837, allocations: 0 / 0.6211 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.134e-05/1.837, allocations: 11.94 kB / 0.6211 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.865e-05/1.837, allocations: 19.86 kB / 0.6211 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003012/1.838, allocations: 140.4 kB / 0.6213 GB, free: 2.945 MB / 0.4981 GB 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.02013/1.858, allocations: 9.55 MB / 0.6306 GB, free: 8.41 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002281/1.858, allocations: 82.55 kB / 0.6307 GB, free: 8.32 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001098/1.858, allocations: 56.89 kB / 0.6307 GB, free: 8.262 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.154/2.012, allocations: 77.74 MB / 0.7066 GB, free: 1.75 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.317e-05/2.012, allocations: 38.5 kB / 0.7067 GB, free: 1.703 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=22): time 2.264e-06/2.012, allocations: 4 kB / 0.7067 GB, free: 1.699 MB / 0.5919 GB Notification: Performance of matching and sorting (n=22): time 0.0005605/2.013, allocations: 203.9 kB / 0.7069 GB, free: 1.496 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.546e-05/2.013, allocations: 51.41 kB / 0.7069 GB, free: 1.434 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002622/2.013, allocations: 232 kB / 0.7071 GB, free: 1.199 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/2.013, allocations: 25.7 kB / 0.7072 GB, free: 1.168 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.254e-05/2.013, allocations: 144.4 kB / 0.7073 GB, free: 1.023 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.337e-05/2.013, allocations: 75.31 kB / 0.7074 GB, free: 0.9492 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.958e-05/2.014, allocations: 41.7 kB / 0.7074 GB, free: 0.9023 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001221/2.014, allocations: 338.8 kB / 0.7077 GB, free: 0.5625 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/2.014, allocations: 47.97 kB / 0.7078 GB, free: 0.5156 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/2.014, allocations: 96.14 kB / 0.7079 GB, free: 416 kB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002502/2.014, allocations: 154.4 kB / 0.708 GB, free: 248 kB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/2.014, allocations: 0 / 0.708 GB, free: 248 kB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003679/2.015, allocations: 200.7 kB / 0.7082 GB, free: 44 kB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/2.015, allocations: 8 kB / 0.7082 GB, free: 36 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/2.015, allocations: 4.062 kB / 0.7082 GB, free: 32 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/2.015, allocations: 4 kB / 0.7082 GB, free: 28 kB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1967/2.211, allocations: 93.58 kB / 0.7083 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/2.211, allocations: 1.969 kB / 0.7083 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001678/2.212, allocations: 35.14 kB / 0.7083 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.725e-05/2.212, allocations: 4.125 kB / 0.7083 GB, free: 215.6 MB / 0.5919 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.0001284/2.212, allocations: 134.6 kB / 0.7085 GB, free: 215.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.959e-05/2.212, allocations: 19.97 kB / 0.7085 GB, free: 215.5 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004804/2.212, allocations: 327.9 kB / 0.7088 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002198/2.213, allocations: 149.6 kB / 0.709 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/2.213, allocations: 1.688 kB / 0.709 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/2.213, allocations: 0.6094 kB / 0.709 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007444/2.213, allocations: 0.6037 MB / 0.7095 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/2.213, allocations: 0 / 0.7095 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000488/2.214, allocations: 96.7 kB / 0.7096 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/2.214, allocations: 1.625 kB / 0.7096 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/2.214, allocations: 7.969 kB / 0.7096 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.307e-06/2.214, allocations: 4.969 kB / 0.7096 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/2.214, allocations: 0 / 0.7096 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000322/2.214, allocations: 291.7 kB / 0.7099 GB, free: 214.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.56e-05/2.214, allocations: 107.7 kB / 0.71 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.115e-05/2.214, allocations: 10.38 kB / 0.71 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/2.214, allocations: 10.25 kB / 0.71 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.897e-05/2.215, allocations: 7.938 kB / 0.7101 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/2.215, allocations: 5.859 kB / 0.7101 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001752/2.215, allocations: 203.5 kB / 0.7103 GB, free: 214.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.4e-07/2.215, allocations: 3.812 kB / 0.7103 GB, free: 214.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0031/2.218, allocations: 1.188 MB / 0.7114 GB, free: 214.7 MB / 0.5919 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.005194/2.223, allocations: 2.462 MB / 0.7138 GB, free: 214 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004418/2.223, allocations: 187.8 kB / 0.714 GB, free: 214 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/2.223, allocations: 1.156 kB / 0.714 GB, free: 214 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001386/2.224, allocations: 77.88 kB / 0.7141 GB, free: 214 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006486/2.224, allocations: 100.2 kB / 0.7142 GB, free: 214 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004259/2.229, allocations: 2.823 MB / 0.7169 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001865/2.229, allocations: 0.752 MB / 0.7177 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001248/2.229, allocations: 31.94 kB / 0.7177 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/2.229, allocations: 84.09 kB / 0.7178 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of SimCode: time 3.21e-07/2.229, allocations: 0 / 0.7178 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07602/2.305, allocations: 46.12 MB / 0.7628 GB, free: 184.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.844/12.15, allocations: 11.02 kB / 0.7628 GB, free: 184.3 MB / 0.5919 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)