Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.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.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss",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.8285/0.8285, allocations: 150.9 MB / 166.5 MB, free: 14.35 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003117/0.0003118, allocations: 16.5 kB / 236.6 MB, free: 2 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05608/0.05641, allocations: 31.35 MB / 267.9 MB, free: 7.527 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.TestPipePressureLoss): time 1.552/1.608, allocations: 294.7 MB / 0.5495 GB, free: 12.99 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03465/1.643, allocations: 34.43 MB / 0.5831 GB, free: 10.43 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000193/1.643, allocations: 0 / 0.5831 GB, free: 10.43 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/PipePressureLoss.mo:35:3-37:42: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/PipePressureLoss.mo:38:3-40:37: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.0003415/1.643, allocations: 111.3 kB / 0.5832 GB, free: 10.32 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001924/1.644, allocations: 95.16 kB / 0.5833 GB, free: 10.23 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.0219/1.666, allocations: 9.582 MB / 0.5926 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004995/1.666, allocations: 342.5 kB / 0.593 GB, free: 300 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001916/1.666, allocations: 124.4 kB / 0.5931 GB, free: 176 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001962/1.667, allocations: 135.4 kB / 0.5932 GB, free: 40 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001601/1.667, allocations: 107.6 kB / 0.5933 GB, free: 15.93 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.489e-05/1.667, allocations: 16 kB / 0.5933 GB, free: 15.91 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02776/1.694, allocations: 17.9 MB / 0.6108 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.558e-05/1.695, allocations: 47.78 kB / 0.6109 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001682/1.695, allocations: 135.3 kB / 0.611 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01741/1.712, allocations: 8.406 MB / 0.6192 GB, free: 5.387 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/1.712, allocations: 0 / 0.6192 GB, free: 5.387 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.184e-06/1.712, allocations: 0 / 0.6192 GB, free: 5.387 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.143e-06/1.712, allocations: 0 / 0.6192 GB, free: 5.387 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.003538/1.716, allocations: 1.439 MB / 0.6206 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/1.716, allocations: 11.97 kB / 0.6206 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.275e-05/1.716, allocations: 70.47 kB / 0.6207 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.925e-05/1.716, allocations: 27.72 kB / 0.6207 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001973/1.716, allocations: 234.5 kB / 0.6209 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.627e-05/1.716, allocations: 12.44 kB / 0.621 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.325e-05/1.716, allocations: 20 kB / 0.621 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003729/1.717, allocations: 295.3 kB / 0.6213 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/1.717, allocations: 0 / 0.6213 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.806e-05/1.717, allocations: 12 kB / 0.6213 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/1.717, allocations: 15.98 kB / 0.6213 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002222/1.717, allocations: 161.1 kB / 0.6214 GB, free: 2.984 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.03416/1.751, allocations: 18.12 MB / 0.6391 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003116/1.751, allocations: 142.6 kB / 0.6393 GB, free: 14.83 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/1.751, allocations: 88.83 kB / 0.6394 GB, free: 14.74 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3072/2.059, allocations: 77.72 MB / 0.7153 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.327e-05/2.059, allocations: 35.94 kB / 0.7153 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.565e-06/2.059, allocations: 0 / 0.7153 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.0009646/2.06, allocations: 451.7 kB / 0.7157 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.534e-05/2.06, allocations: 56.81 kB / 0.7158 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002056/2.06, allocations: 214.1 kB / 0.716 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.091e-05/2.06, allocations: 26.89 kB / 0.716 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.898e-05/2.06, allocations: 156.8 kB / 0.7162 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.458e-05/2.06, allocations: 110.9 kB / 0.7163 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.774e-05/2.06, allocations: 51.77 kB / 0.7163 GB, free: 212.2 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.863e-05/2.06, allocations: 333.1 kB / 0.7166 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.65e-05/2.06, allocations: 71.7 kB / 0.7167 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000118/2.061, allocations: 119.3 kB / 0.7168 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002188/2.061, allocations: 203.3 kB / 0.717 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/2.061, allocations: 4 kB / 0.717 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000381/2.061, allocations: 301.1 kB / 0.7173 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/2.061, allocations: 6.062 kB / 0.7173 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/2.061, allocations: 2.344 kB / 0.7173 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008681/2.062, allocations: 163.8 kB / 0.7175 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.702e-05/2.062, allocations: 8.5 kB / 0.7175 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003518/2.063, allocations: 0.6315 MB / 0.7181 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.855e-05/2.063, allocations: 28.94 kB / 0.7181 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.219e-05/2.063, allocations: 8.969 kB / 0.7181 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 (pipePressureLoss.C2.b,pipePressureLoss.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,4)} Notification: Performance of prepare postOptimizeDAE: time 8.299e-05/2.063, allocations: 137.9 kB / 0.7182 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.648e-05/2.063, allocations: 19.62 kB / 0.7183 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005415/2.063, allocations: 0.5984 MB / 0.7189 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002921/2.064, allocations: 227.1 kB / 0.7191 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/2.064, allocations: 0.5625 kB / 0.7191 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/2.064, allocations: 3.469 kB / 0.7191 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006986/2.064, allocations: 0.728 MB / 0.7198 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/2.064, allocations: 0 / 0.7198 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.088e-05/2.064, allocations: 17.06 kB / 0.7198 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003193/2.065, allocations: 115.6 kB / 0.7199 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/2.065, allocations: 4.438 kB / 0.7199 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003173/2.065, allocations: 0.6499 MB / 0.7205 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/2.065, allocations: 0.5 kB / 0.7205 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003846/2.065, allocations: 351.6 kB / 0.7209 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.609e-05/2.066, allocations: 101.1 kB / 0.721 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.905e-05/2.066, allocations: 18.41 kB / 0.721 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.695e-05/2.066, allocations: 2.406 kB / 0.721 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.145e-05/2.066, allocations: 15.38 kB / 0.721 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.443e-06/2.066, allocations: 2.656 kB / 0.721 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001767/2.066, allocations: 239.4 kB / 0.7212 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.4e-07/2.066, allocations: 4 kB / 0.7212 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002398/2.068, allocations: 1.184 MB / 0.7224 GB, free: 209.6 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004447/2.073, allocations: 2.508 MB / 0.7249 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000471/2.073, allocations: 238.9 kB / 0.7251 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/2.073, allocations: 4.25 kB / 0.7251 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001633/2.073, allocations: 83.14 kB / 0.7252 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.0006692/2.074, allocations: 121.4 kB / 0.7253 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003132/2.077, allocations: 3.035 MB / 0.7282 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001536/2.077, allocations: 0.7739 MB / 0.729 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 9.093e-05/2.078, allocations: 22.25 kB / 0.729 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.399e-05/2.078, allocations: 86.67 kB / 0.7291 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of SimCode: time 4.71e-07/2.078, allocations: 1.281 kB / 0.7291 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06526/2.143, allocations: 47.83 MB / 0.7758 GB, free: 171.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.1/15.24, allocations: 13.06 kB / 0.7758 GB, free: 171.6 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe 2>&1)