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.7933/0.7933, allocations: 150.9 MB / 166.5 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000489/0.000489, allocations: 21.14 kB / 236.6 MB, free: 2.012 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07083/0.07134, allocations: 31.35 MB / 267.9 MB, free: 7.555 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.579/1.65, allocations: 294.7 MB / 0.5495 GB, free: 13.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03879/1.689, allocations: 34.42 MB / 0.5831 GB, free: 10.5 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002151/1.689, allocations: 7.938 kB / 0.5831 GB, free: 10.49 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.0004409/1.689, allocations: 127.4 kB / 0.5832 GB, free: 10.36 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002984/1.69, allocations: 115.2 kB / 0.5833 GB, free: 10.25 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.02468/1.714, allocations: 9.733 MB / 0.5928 GB, free: 0.5039 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005137/1.715, allocations: 330.5 kB / 0.5932 GB, free: 184 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002347/1.715, allocations: 112.5 kB / 0.5933 GB, free: 72 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003042/1.716, allocations: 139.5 kB / 0.5934 GB, free: 15.93 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/1.716, allocations: 111.4 kB / 0.5935 GB, free: 15.82 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.26e-05/1.716, allocations: 16 kB / 0.5935 GB, free: 15.8 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02883/1.745, allocations: 17.89 MB / 0.611 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.513e-05/1.745, allocations: 35.86 kB / 0.611 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000187/1.745, allocations: 127.4 kB / 0.6111 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01821/1.763, allocations: 8.419 MB / 0.6194 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/1.763, allocations: 0 / 0.6194 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.633e-06/1.763, allocations: 4 kB / 0.6194 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.445e-05/1.763, allocations: 0 / 0.6194 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.003769/1.767, allocations: 1.479 MB / 0.6208 GB, free: 3.758 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/1.767, allocations: 8.031 kB / 0.6208 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.401e-05/1.767, allocations: 62.53 kB / 0.6209 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.532e-05/1.767, allocations: 31.75 kB / 0.6209 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001984/1.767, allocations: 224.2 kB / 0.6211 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/1.767, allocations: 12.44 kB / 0.6211 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.441e-05/1.767, allocations: 20 kB / 0.6212 GB, free: 3.359 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000395/1.768, allocations: 298.7 kB / 0.6214 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/1.768, allocations: 0 / 0.6214 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.721e-05/1.768, allocations: 4 kB / 0.6214 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.717e-05/1.768, allocations: 19.92 kB / 0.6215 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002201/1.768, allocations: 156.4 kB / 0.6216 GB, free: 2.867 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.03682/1.805, allocations: 18.12 MB / 0.6393 GB, free: 14.87 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003536/1.805, allocations: 130.5 kB / 0.6394 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/1.805, allocations: 81.23 kB / 0.6395 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3339/2.139, allocations: 77.72 MB / 0.7154 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.288e-05/2.139, allocations: 35.28 kB / 0.7154 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=32): time 3.075e-06/2.139, allocations: 4 kB / 0.7154 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=32): time 0.0008547/2.14, allocations: 402.5 kB / 0.7158 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.587e-05/2.14, allocations: 52.38 kB / 0.7159 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002163/2.141, allocations: 214.3 kB / 0.7161 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.099e-05/2.141, allocations: 25.7 kB / 0.7161 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.984e-05/2.141, allocations: 152.2 kB / 0.7163 GB, free: 212 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.82e-05/2.141, allocations: 110.9 kB / 0.7164 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.82e-05/2.141, allocations: 47.66 kB / 0.7164 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.1e-05/2.141, allocations: 333.7 kB / 0.7167 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000104/2.141, allocations: 65.48 kB / 0.7168 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001202/2.141, allocations: 114.5 kB / 0.7169 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000223/2.141, allocations: 199.6 kB / 0.7171 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/2.141, allocations: 0 / 0.7171 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004035/2.142, allocations: 279.4 kB / 0.7174 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/2.142, allocations: 6.125 kB / 0.7174 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/2.142, allocations: 5.531 kB / 0.7174 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008304/2.143, allocations: 140.4 kB / 0.7175 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.747e-05/2.143, allocations: 13.41 kB / 0.7175 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003964/2.143, allocations: 0.6145 MB / 0.7181 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/2.143, allocations: 29.23 kB / 0.7181 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.291e-05/2.143, allocations: 5.25 kB / 0.7181 GB, free: 210.9 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 0.0001009/2.143, allocations: 141.5 kB / 0.7183 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.625e-05/2.143, allocations: 19.83 kB / 0.7183 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005782/2.144, allocations: 0.57 MB / 0.7189 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002985/2.144, allocations: 205.9 kB / 0.719 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/2.144, allocations: 0 / 0.719 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/2.144, allocations: 0 / 0.719 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007118/2.145, allocations: 0.679 MB / 0.7197 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/2.145, allocations: 0.5625 kB / 0.7197 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.294e-05/2.145, allocations: 17.41 kB / 0.7197 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003225/2.145, allocations: 108.9 kB / 0.7198 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/2.145, allocations: 3.938 kB / 0.7198 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003339/2.146, allocations: 0.6305 MB / 0.7205 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/2.146, allocations: 0 / 0.7205 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002645/2.146, allocations: 314.7 kB / 0.7208 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.37e-05/2.146, allocations: 104.3 kB / 0.7209 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.276e-05/2.146, allocations: 15.33 kB / 0.7209 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/2.146, allocations: 0 / 0.7209 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.169e-05/2.146, allocations: 9.234 kB / 0.7209 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.625e-06/2.146, allocations: 5.844 kB / 0.7209 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001939/2.147, allocations: 232.4 kB / 0.7211 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.31e-07/2.147, allocations: 0 / 0.7211 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00296/2.15, allocations: 1.201 MB / 0.7223 GB, free: 209.3 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.005919/2.155, allocations: 2.492 MB / 0.7247 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000518/2.156, allocations: 227.7 kB / 0.7249 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/2.156, allocations: 4.25 kB / 0.7249 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002046/2.156, allocations: 80.67 kB / 0.725 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007327/2.157, allocations: 120.5 kB / 0.7251 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004175/2.161, allocations: 2.94 MB / 0.728 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002186/2.161, allocations: 0.7682 MB / 0.7287 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001201/2.162, allocations: 29.19 kB / 0.7288 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/2.162, allocations: 88.3 kB / 0.7289 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of SimCode: time 2.91e-07/2.162, allocations: 0 / 0.7289 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06936/2.231, allocations: 47.43 MB / 0.7752 GB, free: 172.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.93/16.16, allocations: 6.906 kB / 0.7752 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 & 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)