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.815/0.815, allocations: 150.9 MB / 166.4 MB, free: 14.22 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005461/0.0005462, allocations: 19.97 kB / 204.6 MB, free: 9.543 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.155/0.1556, allocations: 31.34 MB / 236 MB, free: 5.41 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.444/1.599, allocations: 294.7 MB / 0.5182 GB, free: 13.37 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03458/1.634, allocations: 34.41 MB / 0.5518 GB, free: 11.08 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001657/1.634, allocations: 7.938 kB / 0.5518 GB, free: 11.07 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.0002992/1.635, allocations: 108.6 kB / 0.5519 GB, free: 10.96 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001543/1.635, allocations: 91.23 kB / 0.552 GB, free: 10.88 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.02004/1.655, allocations: 9.569 MB / 0.5614 GB, free: 1.305 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003824/1.655, allocations: 326.5 kB / 0.5617 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001753/1.655, allocations: 105.4 kB / 0.5618 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001712/1.655, allocations: 139.4 kB / 0.5619 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001224/1.656, allocations: 107.4 kB / 0.562 GB, free: 0.6406 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.442e-05/1.656, allocations: 16 kB / 0.562 GB, free: 0.625 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02522/1.681, allocations: 17.67 MB / 0.5793 GB, free: 14.94 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 5.749e-05/1.681, allocations: 43.83 kB / 0.5793 GB, free: 14.89 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001502/1.681, allocations: 127.4 kB / 0.5795 GB, free: 14.77 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01388/1.695, allocations: 8.41 MB / 0.5877 GB, free: 6.34 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/1.695, allocations: 0 / 0.5877 GB, free: 6.34 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.283e-06/1.695, allocations: 0 / 0.5877 GB, free: 6.34 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.049e-05/1.695, allocations: 0 / 0.5877 GB, free: 6.34 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.002935/1.698, allocations: 1.423 MB / 0.5891 GB, free: 4.867 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/1.698, allocations: 12.03 kB / 0.5891 GB, free: 4.855 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.485e-05/1.698, allocations: 62.53 kB / 0.5891 GB, free: 4.785 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.035e-05/1.698, allocations: 35.56 kB / 0.5892 GB, free: 4.75 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001954/1.698, allocations: 226.5 kB / 0.5894 GB, free: 4.488 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.282e-05/1.698, allocations: 16.44 kB / 0.5894 GB, free: 4.473 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.503e-05/1.698, allocations: 21.27 kB / 0.5894 GB, free: 4.453 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003637/1.699, allocations: 290.7 kB / 0.5897 GB, free: 4.137 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/1.699, allocations: 0 / 0.5897 GB, free: 4.137 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/1.699, allocations: 4 kB / 0.5897 GB, free: 4.133 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/1.699, allocations: 23.92 kB / 0.5897 GB, free: 4.109 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002269/1.699, allocations: 157.1 kB / 0.5899 GB, free: 3.957 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.0362/1.735, allocations: 17.99 MB / 0.6074 GB, free: 96 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003314/1.736, allocations: 126.5 kB / 0.6076 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.329e-05/1.736, allocations: 76.97 kB / 0.6076 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1528/1.889, allocations: 77.28 MB / 0.6831 GB, free: 9.832 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.507e-05/1.889, allocations: 30.56 kB / 0.6831 GB, free: 9.793 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 2.144e-06/1.889, allocations: 0 / 0.6831 GB, free: 9.793 MB / 0.5762 GB Notification: Performance of matching and sorting (n=32): time 0.0007828/1.889, allocations: 399.2 kB / 0.6835 GB, free: 9.375 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.167e-05/1.889, allocations: 55.39 kB / 0.6836 GB, free: 9.309 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001969/1.89, allocations: 215.7 kB / 0.6838 GB, free: 9.09 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.206e-05/1.89, allocations: 25.7 kB / 0.6838 GB, free: 9.059 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.146e-05/1.89, allocations: 148.5 kB / 0.6839 GB, free: 8.91 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.965e-05/1.89, allocations: 98.45 kB / 0.684 GB, free: 8.812 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.393e-05/1.89, allocations: 45.61 kB / 0.6841 GB, free: 8.762 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001014/1.89, allocations: 338.8 kB / 0.6844 GB, free: 8.422 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.485e-05/1.89, allocations: 68.3 kB / 0.6845 GB, free: 8.355 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001292/1.89, allocations: 110.2 kB / 0.6846 GB, free: 8.234 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000234/1.89, allocations: 213.5 kB / 0.6848 GB, free: 8.012 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/1.89, allocations: 0 / 0.6848 GB, free: 8.012 MB / 0.5762 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003791/1.891, allocations: 273.9 kB / 0.685 GB, free: 7.734 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/1.891, allocations: 8 kB / 0.685 GB, free: 7.727 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/1.891, allocations: 0 / 0.685 GB, free: 7.727 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008224/1.892, allocations: 147.5 kB / 0.6852 GB, free: 7.582 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.695e-05/1.892, allocations: 15.98 kB / 0.6852 GB, free: 7.566 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004536/1.892, allocations: 0.6122 MB / 0.6858 GB, free: 6.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/1.892, allocations: 36.08 kB / 0.6858 GB, free: 6.895 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/1.892, allocations: 4 kB / 0.6858 GB, free: 6.891 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.0001108/1.892, allocations: 134.2 kB / 0.686 GB, free: 6.75 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.457e-05/1.893, allocations: 23.66 kB / 0.686 GB, free: 6.727 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006315/1.893, allocations: 0.5592 MB / 0.6865 GB, free: 6.102 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003118/1.893, allocations: 202 kB / 0.6867 GB, free: 5.898 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/1.893, allocations: 3.984 kB / 0.6867 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/1.894, allocations: 0 / 0.6867 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007275/1.894, allocations: 0.6781 MB / 0.6874 GB, free: 5.156 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/1.894, allocations: 4.062 kB / 0.6874 GB, free: 5.152 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.807e-05/1.894, allocations: 23.92 kB / 0.6874 GB, free: 5.129 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003437/1.895, allocations: 116.8 kB / 0.6875 GB, free: 5.012 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/1.895, allocations: 4 kB / 0.6875 GB, free: 5.008 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003994/1.895, allocations: 0.6281 MB / 0.6881 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/1.895, allocations: 0 / 0.6881 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003004/1.895, allocations: 311.8 kB / 0.6884 GB, free: 4.031 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.862e-05/1.895, allocations: 108.8 kB / 0.6885 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.173e-05/1.896, allocations: 15.84 kB / 0.6886 GB, free: 3.891 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.381e-05/1.896, allocations: 0 / 0.6886 GB, free: 3.891 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.311e-05/1.896, allocations: 11.98 kB / 0.6886 GB, free: 3.879 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/1.896, allocations: 4 kB / 0.6886 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002132/1.896, allocations: 229.9 kB / 0.6888 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.896, allocations: 0 / 0.6888 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002459/1.898, allocations: 1.191 MB / 0.69 GB, free: 2.461 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.1403/2.039, allocations: 2.46 MB / 0.6924 GB, free: 225 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005645/2.039, allocations: 223.9 kB / 0.6926 GB, free: 225 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/2.039, allocations: 0 / 0.6926 GB, free: 225 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000202/2.04, allocations: 88.86 kB / 0.6927 GB, free: 225 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007679/2.04, allocations: 117.1 kB / 0.6928 GB, free: 225 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003571/2.044, allocations: 2.917 MB / 0.6956 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001539/2.044, allocations: 0.7645 MB / 0.6964 GB, free: 222.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001045/2.044, allocations: 24.47 kB / 0.6964 GB, free: 222.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.79e-05/2.044, allocations: 89.84 kB / 0.6965 GB, free: 222.9 MB / 0.5762 GB Notification: Performance of SimCode: time 2.71e-07/2.044, allocations: 3.469 kB / 0.6965 GB, free: 222.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.279/3.324, allocations: 47.39 MB / 0.7427 GB, free: 198.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.43/22.76, allocations: 13.12 kB / 0.7428 GB, free: 198.4 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1)