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.8555/0.8555, allocations: 150.9 MB / 166.5 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003319/0.0003324, allocations: 21.47 kB / 236.6 MB, free: 1.992 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06256/0.06291, 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.TestSingularPressureLoss): time 1.543/1.606, allocations: 294.6 MB / 0.5494 GB, free: 13.03 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0356/1.642, allocations: 34.42 MB / 0.583 GB, free: 10.47 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000211/1.642, allocations: 4 kB / 0.583 GB, free: 10.46 MB / 478.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.0003579/1.642, allocations: 111.2 kB / 0.5831 GB, free: 10.36 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001939/1.643, allocations: 95.23 kB / 0.5832 GB, free: 10.26 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.02239/1.665, allocations: 9.567 MB / 0.5926 GB, free: 0.6797 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004524/1.665, allocations: 330.5 kB / 0.5929 GB, free: 364 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001776/1.666, allocations: 112.5 kB / 0.593 GB, free: 252 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001829/1.666, allocations: 135.4 kB / 0.5931 GB, free: 116 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001188/1.666, allocations: 111.4 kB / 0.5932 GB, free: 4 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.625e-05/1.666, allocations: 16.05 kB / 0.5932 GB, free: 15.98 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02947/1.695, allocations: 17.89 MB / 0.6107 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.986e-05/1.696, allocations: 31.86 kB / 0.6107 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002168/1.696, allocations: 139.3 kB / 0.6109 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02006/1.716, allocations: 8.402 MB / 0.6191 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/1.716, allocations: 0 / 0.6191 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.683e-06/1.716, allocations: 0 / 0.6191 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.23e-05/1.716, allocations: 0 / 0.6191 GB, free: 5.488 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.004066/1.72, allocations: 1.419 MB / 0.6205 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/1.72, allocations: 12.03 kB / 0.6205 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.754e-05/1.72, allocations: 62.53 kB / 0.6205 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.336e-05/1.72, allocations: 31.56 kB / 0.6206 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002201/1.72, allocations: 227.9 kB / 0.6208 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.723e-05/1.72, allocations: 12.44 kB / 0.6208 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.497e-05/1.72, allocations: 20 kB / 0.6208 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003973/1.721, allocations: 282.8 kB / 0.6211 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/1.721, allocations: 0 / 0.6211 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.757e-05/1.721, allocations: 12 kB / 0.6211 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.969e-05/1.721, allocations: 19.92 kB / 0.6211 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002293/1.721, allocations: 160.4 kB / 0.6213 GB, free: 3.125 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.0347/1.756, allocations: 18.11 MB / 0.6389 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003025/1.756, allocations: 122.5 kB / 0.6391 GB, free: 15.01 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.279e-05/1.756, allocations: 81.23 kB / 0.6391 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3239/2.08, allocations: 77.72 MB / 0.715 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.937e-05/2.08, allocations: 35 kB / 0.7151 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=32): time 2.264e-06/2.08, allocations: 0 / 0.7151 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=32): time 0.0008026/2.081, allocations: 404.3 kB / 0.7155 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.102e-05/2.081, allocations: 52.69 kB / 0.7155 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001938/2.081, allocations: 211.5 kB / 0.7157 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.185e-05/2.081, allocations: 29.52 kB / 0.7157 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.067e-05/2.081, allocations: 153.6 kB / 0.7159 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.331e-05/2.081, allocations: 98.06 kB / 0.716 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.061e-05/2.082, allocations: 48.83 kB / 0.716 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.265e-05/2.082, allocations: 329.8 kB / 0.7163 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.214e-05/2.082, allocations: 72.66 kB / 0.7164 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001164/2.082, allocations: 111 kB / 0.7165 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002194/2.082, allocations: 198.2 kB / 0.7167 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/2.082, allocations: 0 / 0.7167 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003839/2.082, allocations: 280.2 kB / 0.717 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/2.082, allocations: 6.969 kB / 0.717 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/2.083, allocations: 2.688 kB / 0.717 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008123/2.083, allocations: 147.6 kB / 0.7171 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.811e-05/2.083, allocations: 8.219 kB / 0.7171 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004058/2.084, allocations: 0.612 MB / 0.7177 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/2.084, allocations: 29.75 kB / 0.7178 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.393e-05/2.084, allocations: 4.938 kB / 0.7178 GB, free: 211.2 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 (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 9.878e-05/2.084, allocations: 142.7 kB / 0.7179 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.265e-05/2.084, allocations: 24.91 kB / 0.7179 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005424/2.085, allocations: 0.5658 MB / 0.7185 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002882/2.085, allocations: 213.5 kB / 0.7187 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/2.085, allocations: 0 / 0.7187 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/2.085, allocations: 0.5625 kB / 0.7187 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006166/2.086, allocations: 0.6741 MB / 0.7193 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/2.086, allocations: 3.375 kB / 0.7193 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.043e-05/2.086, allocations: 13.16 kB / 0.7193 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003103/2.086, allocations: 112.7 kB / 0.7195 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/2.086, allocations: 7.75 kB / 0.7195 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003003/2.086, allocations: 0.6272 MB / 0.7201 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/2.086, allocations: 2.719 kB / 0.7201 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000238/2.087, allocations: 306.1 kB / 0.7204 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.065e-05/2.087, allocations: 107.5 kB / 0.7205 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.681e-05/2.087, allocations: 14.66 kB / 0.7205 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.093e-05/2.087, allocations: 0.5 kB / 0.7205 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.863e-05/2.087, allocations: 11.98 kB / 0.7205 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.102e-06/2.087, allocations: 3.531 kB / 0.7205 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001756/2.087, allocations: 235.2 kB / 0.7207 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1e-07/2.087, allocations: 0 / 0.7207 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002691/2.09, allocations: 1.179 MB / 0.7219 GB, free: 209.5 MB / 0.5919 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.005209/2.095, allocations: 2.48 MB / 0.7243 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005552/2.095, allocations: 220.1 kB / 0.7245 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/2.095, allocations: 2.812 kB / 0.7245 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001896/2.096, allocations: 82.08 kB / 0.7246 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006796/2.096, allocations: 127 kB / 0.7247 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003524/2.1, allocations: 2.925 MB / 0.7276 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001903/2.1, allocations: 0.7666 MB / 0.7283 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001071/2.1, allocations: 23.61 kB / 0.7283 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.216e-05/2.1, allocations: 85.33 kB / 0.7284 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of SimCode: time 5.21e-07/2.1, allocations: 4 kB / 0.7284 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06902/2.169, allocations: 47.54 MB / 0.7748 GB, free: 172.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.23/15.4, allocations: 11.88 kB / 0.7749 GB, free: 172.2 MB / 0.5919 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)