Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.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.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_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.798/0.798, allocations: 150.9 MB / 166.5 MB, free: 14.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003277/0.0003278, allocations: 16.78 kB / 236.5 MB, free: 2.074 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05921/0.05955, allocations: 31.34 MB / 267.9 MB, free: 7.637 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.Book.SimpleExamples.PressureLoss.TestPipePressureLoss): time 1.609/1.668, allocations: 294.6 MB / 0.5493 GB, free: 13.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03847/1.707, allocations: 34.43 MB / 0.5829 GB, free: 10.48 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002174/1.707, allocations: 4 kB / 0.5829 GB, free: 10.48 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.0004087/1.707, allocations: 107.3 kB / 0.583 GB, free: 10.38 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002975/1.708, allocations: 95.17 kB / 0.5831 GB, free: 10.28 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.02452/1.732, allocations: 9.568 MB / 0.5925 GB, free: 0.6992 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004795/1.733, allocations: 346.4 kB / 0.5928 GB, free: 368 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001912/1.733, allocations: 116.4 kB / 0.5929 GB, free: 256 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002044/1.733, allocations: 147.3 kB / 0.5931 GB, free: 108 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001527/1.733, allocations: 111.5 kB / 0.5932 GB, free: 15.99 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.606e-05/1.733, allocations: 20 kB / 0.5932 GB, free: 15.97 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02859/1.762, allocations: 17.89 MB / 0.6107 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001049/1.762, allocations: 43.8 kB / 0.6107 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002328/1.762, allocations: 131.4 kB / 0.6108 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01999/1.782, allocations: 8.414 MB / 0.619 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/1.782, allocations: 4 kB / 0.619 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.924e-06/1.782, allocations: 0 / 0.619 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.351e-05/1.782, allocations: 0 / 0.619 GB, free: 5.453 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.004205/1.787, allocations: 1.431 MB / 0.6204 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/1.787, allocations: 8.031 kB / 0.6204 GB, free: 3.965 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.653e-05/1.787, allocations: 70.47 kB / 0.6205 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.69e-05/1.787, allocations: 27.72 kB / 0.6205 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002591/1.787, allocations: 239 kB / 0.6208 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.768e-05/1.787, allocations: 16.38 kB / 0.6208 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.008e-05/1.787, allocations: 24 kB / 0.6208 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004536/1.788, allocations: 295.3 kB / 0.6211 GB, free: 3.234 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/1.788, allocations: 8 kB / 0.6211 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.987e-05/1.788, allocations: 8 kB / 0.6211 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.64e-05/1.788, allocations: 15.98 kB / 0.6211 GB, free: 3.203 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002537/1.788, allocations: 165 kB / 0.6213 GB, free: 3.043 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.03604/1.824, allocations: 18.12 MB / 0.639 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003413/1.824, allocations: 130.7 kB / 0.6391 GB, free: 14.9 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001193/1.825, allocations: 92.84 kB / 0.6392 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3345/2.159, allocations: 77.72 MB / 0.7151 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.592e-05/2.159, allocations: 32.5 kB / 0.7151 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.264e-06/2.159, allocations: 0 / 0.7151 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.001018/2.16, allocations: 457.1 kB / 0.7156 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.53e-05/2.16, allocations: 52.81 kB / 0.7156 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/2.16, allocations: 219.5 kB / 0.7158 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.103e-05/2.16, allocations: 25.7 kB / 0.7158 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.867e-05/2.16, allocations: 153 kB / 0.716 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.408e-05/2.161, allocations: 113.1 kB / 0.7161 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.113e-05/2.161, allocations: 47.83 kB / 0.7161 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.429e-05/2.161, allocations: 337.1 kB / 0.7165 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.648e-05/2.161, allocations: 73.23 kB / 0.7165 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001208/2.161, allocations: 113.9 kB / 0.7166 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002329/2.161, allocations: 206.2 kB / 0.7168 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/2.161, allocations: 1.094 kB / 0.7168 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003992/2.162, allocations: 300.9 kB / 0.7171 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/2.162, allocations: 11.34 kB / 0.7171 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/2.162, allocations: 0 / 0.7171 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008395/2.162, allocations: 159.4 kB / 0.7173 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.431e-05/2.163, allocations: 13.62 kB / 0.7173 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003712/2.163, allocations: 0.6334 MB / 0.7179 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/2.163, allocations: 31.19 kB / 0.7179 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.319e-05/2.163, allocations: 8.156 kB / 0.718 GB, free: 211.3 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 9.957e-05/2.163, allocations: 138.6 kB / 0.7181 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.076e-05/2.163, allocations: 25.19 kB / 0.7181 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006177/2.164, allocations: 0.601 MB / 0.7187 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003064/2.164, allocations: 220.3 kB / 0.7189 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/2.164, allocations: 0 / 0.7189 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/2.164, allocations: 5.969 kB / 0.7189 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007396/2.165, allocations: 0.734 MB / 0.7196 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/2.165, allocations: 0 / 0.7196 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.253e-05/2.165, allocations: 20.92 kB / 0.7196 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003278/2.165, allocations: 111.2 kB / 0.7198 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/2.165, allocations: 3.688 kB / 0.7198 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003027/2.166, allocations: 0.6555 MB / 0.7204 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/2.166, allocations: 0 / 0.7204 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000344/2.166, allocations: 338.8 kB / 0.7207 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.562e-05/2.166, allocations: 106.4 kB / 0.7208 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.001e-05/2.166, allocations: 24.41 kB / 0.7208 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.592e-05/2.166, allocations: 2.281 kB / 0.7208 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.652e-05/2.166, allocations: 10.7 kB / 0.7209 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/2.166, allocations: 6.312 kB / 0.7209 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001737/2.166, allocations: 241.2 kB / 0.7211 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/2.166, allocations: 0 / 0.7211 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002769/2.169, allocations: 1.175 MB / 0.7222 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.004417/2.174, allocations: 2.497 MB / 0.7247 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004517/2.174, allocations: 245.3 kB / 0.7249 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/2.174, allocations: 0 / 0.7249 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001676/2.174, allocations: 91.48 kB / 0.725 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.0006641/2.175, allocations: 127.7 kB / 0.7251 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003045/2.178, allocations: 3.023 MB / 0.7281 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001659/2.178, allocations: 0.7705 MB / 0.7288 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 8.743e-05/2.178, allocations: 19.83 kB / 0.7288 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.477e-05/2.178, allocations: 94.95 kB / 0.7289 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of SimCode: time 7.21e-07/2.178, allocations: 0 / 0.7289 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06974/2.248, allocations: 47.86 MB / 0.7757 GB, free: 171.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/15.17, allocations: 2.562 kB / 0.7757 GB, free: 171.7 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1)