Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.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.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss",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.7958/0.7958, allocations: 150.9 MB / 166.4 MB, free: 14.2 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003514/0.0003515, allocations: 19.97 kB / 204.6 MB, free: 9.531 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.1491, allocations: 31.33 MB / 236 MB, free: 5.402 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.TestSingularPressureLoss): time 1.587/1.736, allocations: 294.7 MB / 0.5182 GB, free: 13.38 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04104/1.777, allocations: 34.41 MB / 0.5518 GB, free: 11.09 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000209/1.778, allocations: 7.938 kB / 0.5518 GB, free: 11.08 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45: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/SingularPressureLoss.mo:25:3-27: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/SingularPressureLoss.mo:28:3-29:52: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.0003638/1.778, allocations: 107.4 kB / 0.5519 GB, free: 10.98 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002371/1.778, allocations: 91.23 kB / 0.552 GB, free: 10.89 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.02424/1.803, allocations: 9.575 MB / 0.5613 GB, free: 1.312 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005451/1.803, allocations: 326.5 kB / 0.5617 GB, free: 0.9922 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002386/1.803, allocations: 110.3 kB / 0.5618 GB, free: 0.8867 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002364/1.804, allocations: 131.4 kB / 0.5619 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001506/1.804, allocations: 111.4 kB / 0.562 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.482e-05/1.804, allocations: 16 kB / 0.562 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02887/1.833, allocations: 17.67 MB / 0.5793 GB, free: 14.95 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.942e-05/1.833, allocations: 43.84 kB / 0.5793 GB, free: 14.9 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001873/1.833, allocations: 123.4 kB / 0.5794 GB, free: 14.78 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01789/1.851, allocations: 8.418 MB / 0.5876 GB, free: 6.344 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/1.851, allocations: 0 / 0.5876 GB, free: 6.344 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.603e-06/1.851, allocations: 0 / 0.5876 GB, free: 6.344 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/1.851, allocations: 0 / 0.5876 GB, free: 6.344 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.00367/1.855, allocations: 1.427 MB / 0.589 GB, free: 4.867 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/1.855, allocations: 8.031 kB / 0.589 GB, free: 4.859 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.349e-05/1.855, allocations: 54.55 kB / 0.5891 GB, free: 4.797 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.399e-05/1.855, allocations: 39.55 kB / 0.5891 GB, free: 4.758 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002202/1.855, allocations: 226.5 kB / 0.5894 GB, free: 4.496 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/1.855, allocations: 12.44 kB / 0.5894 GB, free: 4.484 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.266e-05/1.855, allocations: 20 kB / 0.5894 GB, free: 4.465 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003824/1.855, allocations: 290.8 kB / 0.5897 GB, free: 4.148 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/1.855, allocations: 3.938 kB / 0.5897 GB, free: 4.145 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.719e-05/1.855, allocations: 8 kB / 0.5897 GB, free: 4.137 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/1.856, allocations: 11.94 kB / 0.5897 GB, free: 4.125 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000226/1.856, allocations: 157.1 kB / 0.5898 GB, free: 3.973 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.03742/1.893, allocations: 18 MB / 0.6074 GB, free: 104 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003653/1.894, allocations: 124.4 kB / 0.6075 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/1.894, allocations: 84.91 kB / 0.6076 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1503/2.044, allocations: 77.27 MB / 0.6831 GB, free: 9.848 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/2.044, allocations: 38.55 kB / 0.6831 GB, free: 9.801 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 1.904e-06/2.044, allocations: 0 / 0.6831 GB, free: 9.801 MB / 0.5762 GB Notification: Performance of matching and sorting (n=32): time 0.0008367/2.045, allocations: 395.2 kB / 0.6835 GB, free: 9.387 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.04e-05/2.045, allocations: 51.41 kB / 0.6835 GB, free: 9.324 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002247/2.045, allocations: 223.6 kB / 0.6837 GB, free: 9.098 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/2.045, allocations: 25.7 kB / 0.6838 GB, free: 9.066 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.865e-05/2.045, allocations: 152.5 kB / 0.6839 GB, free: 8.914 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.931e-05/2.045, allocations: 90.47 kB / 0.684 GB, free: 8.824 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.998e-05/2.046, allocations: 53.59 kB / 0.684 GB, free: 8.766 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001228/2.046, allocations: 334.8 kB / 0.6844 GB, free: 8.43 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.478e-05/2.046, allocations: 64.31 kB / 0.6844 GB, free: 8.367 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/2.046, allocations: 114.2 kB / 0.6845 GB, free: 8.242 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002282/2.046, allocations: 205.5 kB / 0.6847 GB, free: 8.027 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/2.046, allocations: 0 / 0.6847 GB, free: 8.027 MB / 0.5762 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003894/2.047, allocations: 277.9 kB / 0.685 GB, free: 7.746 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/2.047, allocations: 4 kB / 0.685 GB, free: 7.742 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/2.047, allocations: 0 / 0.685 GB, free: 7.742 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008066/2.047, allocations: 152.7 kB / 0.6851 GB, free: 7.59 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.363e-05/2.047, allocations: 8 kB / 0.6852 GB, free: 7.582 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004812/2.048, allocations: 0.6109 MB / 0.6858 GB, free: 6.945 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001007/2.048, allocations: 23.59 kB / 0.6858 GB, free: 6.922 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.502e-05/2.048, allocations: 13.17 kB / 0.6858 GB, free: 6.91 MB / 0.5762 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 (singularPressureLoss.C2.b,singularPressureLoss.C1.a,PuitsP1.C.a,SourceP1.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): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001204/2.048, allocations: 140.9 kB / 0.6859 GB, free: 6.766 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.388e-05/2.048, allocations: 27.64 kB / 0.6859 GB, free: 6.738 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006397/2.049, allocations: 0.5564 MB / 0.6865 GB, free: 6.113 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003095/2.049, allocations: 202.4 kB / 0.6867 GB, free: 5.91 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/2.049, allocations: 0 / 0.6867 GB, free: 5.91 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/2.049, allocations: 0 / 0.6867 GB, free: 5.91 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007446/2.05, allocations: 0.6867 MB / 0.6874 GB, free: 5.164 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/2.05, allocations: 3.938 kB / 0.6874 GB, free: 5.16 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.175e-05/2.05, allocations: 12 kB / 0.6874 GB, free: 5.148 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003333/2.05, allocations: 111.5 kB / 0.6875 GB, free: 5.039 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/2.05, allocations: 4.125 kB / 0.6875 GB, free: 5.035 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004381/2.051, allocations: 0.6382 MB / 0.6881 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-06/2.051, allocations: 4.078 kB / 0.6881 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003023/2.051, allocations: 307.8 kB / 0.6884 GB, free: 4.047 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.302e-05/2.051, allocations: 104.8 kB / 0.6885 GB, free: 3.926 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.913e-05/2.051, allocations: 15.91 kB / 0.6885 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.391e-05/2.051, allocations: 7.984 kB / 0.6885 GB, free: 3.902 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.22e-05/2.051, allocations: 7.938 kB / 0.6885 GB, free: 3.895 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.865e-06/2.051, allocations: 8 kB / 0.6885 GB, free: 3.887 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002131/2.052, allocations: 229.9 kB / 0.6888 GB, free: 3.664 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/2.052, allocations: 0 / 0.6888 GB, free: 3.664 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002603/2.054, allocations: 1.191 MB / 0.6899 GB, free: 2.473 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (11): * Single equations (assignments): 10 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005857/2.06, allocations: 2.456 MB / 0.6923 GB, free: 8 kB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.1533/2.213, allocations: 225.5 kB / 0.6925 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/2.213, allocations: 0.6875 kB / 0.6925 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002337/2.214, allocations: 93.7 kB / 0.6926 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008095/2.214, allocations: 114.5 kB / 0.6927 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004071/2.219, allocations: 2.919 MB / 0.6956 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001743/2.219, allocations: 0.7677 MB / 0.6963 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001145/2.219, allocations: 19.94 kB / 0.6964 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.485e-05/2.219, allocations: 86.7 kB / 0.6964 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of SimCode: time 6.11e-07/2.219, allocations: 0 / 0.6964 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07106/2.29, allocations: 47.39 MB / 0.7427 GB, free: 198.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/14.7, allocations: 12.5 kB / 0.7427 GB, free: 198.9 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss_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_TestSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1)