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.7842/0.7842, allocations: 150.9 MB / 166.5 MB, free: 14.45 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000403/0.0004031, allocations: 16.94 kB / 236.6 MB, free: 1.992 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05825/0.05868, allocations: 31.35 MB / 267.9 MB, free: 7.543 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.584/1.643, allocations: 294.5 MB / 0.5493 GB, free: 13.33 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03626/1.679, allocations: 34.38 MB / 0.5829 GB, free: 10.81 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001701/1.679, allocations: 0 / 0.5829 GB, free: 10.81 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.0003309/1.68, allocations: 104.4 kB / 0.583 GB, free: 10.71 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000149/1.68, allocations: 71.39 kB / 0.583 GB, free: 10.64 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.02297/1.703, allocations: 9.563 MB / 0.5924 GB, free: 1.059 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004246/1.703, allocations: 278.7 kB / 0.5926 GB, free: 0.7852 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001843/1.703, allocations: 116.1 kB / 0.5927 GB, free: 0.6758 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/1.704, allocations: 115.5 kB / 0.5928 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001204/1.704, allocations: 99.5 kB / 0.5929 GB, free: 476 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.304e-05/1.704, allocations: 16 kB / 0.593 GB, free: 460 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03041/1.734, allocations: 17.89 MB / 0.6104 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.151e-05/1.734, allocations: 35.84 kB / 0.6105 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001489/1.734, allocations: 115.4 kB / 0.6106 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01791/1.752, allocations: 8.359 MB / 0.6187 GB, free: 6.008 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.291e-06/1.752, allocations: 4 kB / 0.6187 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.743e-06/1.752, allocations: 0 / 0.6187 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.335e-06/1.752, allocations: 0 / 0.6187 GB, free: 6.004 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.003883/1.756, allocations: 1.396 MB / 0.6201 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/1.756, allocations: 8.031 kB / 0.6201 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.238e-05/1.756, allocations: 62.55 kB / 0.6202 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.194e-05/1.757, allocations: 27.66 kB / 0.6202 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002129/1.757, allocations: 226.5 kB / 0.6204 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.392e-05/1.757, allocations: 16.31 kB / 0.6204 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.855e-05/1.757, allocations: 20 kB / 0.6204 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000392/1.757, allocations: 262 kB / 0.6207 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/1.757, allocations: 0 / 0.6207 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.941e-05/1.757, allocations: 8 kB / 0.6207 GB, free: 3.871 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/1.757, allocations: 11.94 kB / 0.6207 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002653/1.758, allocations: 144.4 kB / 0.6209 GB, free: 3.719 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.01825/1.776, allocations: 9.562 MB / 0.6302 GB, free: 9.172 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001791/1.776, allocations: 82.48 kB / 0.6303 GB, free: 9.082 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/1.776, allocations: 60.89 kB / 0.6303 GB, free: 9.02 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1463/1.922, allocations: 77.73 MB / 0.7062 GB, free: 2.523 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.262e-05/1.922, allocations: 34.56 kB / 0.7063 GB, free: 2.48 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=22): time 2.264e-06/1.922, allocations: 0 / 0.7063 GB, free: 2.48 MB / 0.5919 GB Notification: Performance of matching and sorting (n=22): time 0.0005394/1.923, allocations: 203.8 kB / 0.7065 GB, free: 2.277 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.736e-05/1.923, allocations: 51.41 kB / 0.7065 GB, free: 2.215 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002829/1.923, allocations: 232 kB / 0.7067 GB, free: 1.98 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/1.923, allocations: 25.7 kB / 0.7068 GB, free: 1.949 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.081e-05/1.923, allocations: 140.2 kB / 0.7069 GB, free: 1.809 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.67e-05/1.924, allocations: 74.92 kB / 0.707 GB, free: 1.734 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.523e-05/1.924, allocations: 45.61 kB / 0.707 GB, free: 1.684 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001263/1.924, allocations: 338.8 kB / 0.7073 GB, free: 1.344 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/1.924, allocations: 47.98 kB / 0.7074 GB, free: 1.297 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001266/1.924, allocations: 88.27 kB / 0.7075 GB, free: 1.195 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002316/1.924, allocations: 150.4 kB / 0.7076 GB, free: 1.035 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/1.924, allocations: 4 kB / 0.7076 GB, free: 1.031 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003462/1.925, allocations: 200.5 kB / 0.7078 GB, free: 0.832 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/1.925, allocations: 6.031 kB / 0.7078 GB, free: 0.8281 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/1.925, allocations: 12.06 kB / 0.7078 GB, free: 0.8164 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/1.925, allocations: 0 / 0.7078 GB, free: 0.8164 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006195/1.925, allocations: 95.88 kB / 0.7079 GB, free: 0.7227 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/1.925, allocations: 3.938 kB / 0.7079 GB, free: 0.7188 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/1.925, allocations: 35.59 kB / 0.7079 GB, free: 0.6836 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.307e-05/1.925, allocations: 4 kB / 0.7079 GB, free: 0.6797 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.0001103/1.926, allocations: 137.8 kB / 0.7081 GB, free: 0.5352 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.897e-05/1.926, allocations: 15.81 kB / 0.7081 GB, free: 0.5195 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004416/1.926, allocations: 323.6 kB / 0.7084 GB, free: 164 kB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002167/1.926, allocations: 145 kB / 0.7085 GB, free: 16 kB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.004e-06/1.926, allocations: 3.938 kB / 0.7085 GB, free: 12 kB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.372e-05/1.926, allocations: 11.98 kB / 0.7086 GB, free: 0 / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1831/2.109, allocations: 0.5943 MB / 0.7091 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/2.11, allocations: 0.6562 kB / 0.7091 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000561/2.11, allocations: 98.88 kB / 0.7092 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/2.11, allocations: 1.75 kB / 0.7092 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/2.11, allocations: 5.953 kB / 0.7092 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/2.11, allocations: 1.188 kB / 0.7092 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/2.11, allocations: 1.406 kB / 0.7092 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003944/2.111, allocations: 281.5 kB / 0.7095 GB, free: 215.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.312e-05/2.111, allocations: 110.7 kB / 0.7096 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.782e-05/2.111, allocations: 11.31 kB / 0.7096 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/2.111, allocations: 9.766 kB / 0.7096 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.675e-05/2.111, allocations: 7.531 kB / 0.7096 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.006e-05/2.111, allocations: 3.375 kB / 0.7096 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002038/2.111, allocations: 208.5 kB / 0.7098 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/2.111, allocations: 1.188 kB / 0.7098 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003128/2.114, allocations: 1.174 MB / 0.711 GB, free: 215.1 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.005583/2.12, allocations: 2.448 MB / 0.7134 GB, free: 214.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004779/2.12, allocations: 198.3 kB / 0.7136 GB, free: 214.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/2.12, allocations: 2.906 kB / 0.7136 GB, free: 214.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001363/2.12, allocations: 72.81 kB / 0.7136 GB, free: 214.3 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006384/2.121, allocations: 97.5 kB / 0.7137 GB, free: 214.3 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003817/2.125, allocations: 2.799 MB / 0.7165 GB, free: 212.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00017/2.125, allocations: 0.7519 MB / 0.7172 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001269/2.125, allocations: 28.75 kB / 0.7172 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/2.125, allocations: 87.39 kB / 0.7173 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of SimCode: time 6.41e-07/2.125, allocations: 0 / 0.7173 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06317/2.189, allocations: 46.2 MB / 0.7624 GB, free: 185.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.668/11.86, allocations: 15.98 kB / 0.7624 GB, free: 185.5 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)