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.9373/0.9373, allocations: 150.9 MB / 166.4 MB, free: 14.25 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003493/0.0003493, allocations: 15.97 kB / 204.6 MB, free: 9.543 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1462/0.1466, allocations: 31.34 MB / 236 MB, free: 5.43 MB / 190.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.697/1.844, allocations: 294.7 MB / 0.5182 GB, free: 13.35 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04061/1.885, allocations: 34.44 MB / 0.5518 GB, free: 11.04 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000235/1.885, allocations: 0 / 0.5518 GB, free: 11.04 MB / 446.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.0003776/1.885, allocations: 108.6 kB / 0.5519 GB, free: 10.93 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002008/1.886, allocations: 103.2 kB / 0.552 GB, free: 10.83 MB / 446.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.02405/1.91, allocations: 9.566 MB / 0.5614 GB, free: 1.262 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005121/1.91, allocations: 342.4 kB / 0.5617 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001926/1.91, allocations: 105.6 kB / 0.5618 GB, free: 0.8242 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000206/1.911, allocations: 143.3 kB / 0.5619 GB, free: 0.6836 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/1.911, allocations: 115.4 kB / 0.562 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.644e-05/1.911, allocations: 20 kB / 0.5621 GB, free: 0.5508 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03174/1.942, allocations: 17.67 MB / 0.5793 GB, free: 14.86 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001206/1.943, allocations: 43.8 kB / 0.5794 GB, free: 14.82 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002358/1.943, allocations: 131.3 kB / 0.5795 GB, free: 14.69 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02158/1.964, allocations: 8.425 MB / 0.5877 GB, free: 6.242 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/1.965, allocations: 3.938 kB / 0.5877 GB, free: 6.238 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.553e-06/1.965, allocations: 0 / 0.5877 GB, free: 6.238 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.824e-06/1.965, allocations: 0 / 0.5877 GB, free: 6.238 MB / 478.1 MB 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.003975/1.969, allocations: 1.443 MB / 0.5891 GB, free: 4.746 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/1.969, allocations: 12.03 kB / 0.5891 GB, free: 4.734 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.414e-05/1.969, allocations: 66.47 kB / 0.5892 GB, free: 4.66 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.254e-05/1.969, allocations: 31.56 kB / 0.5892 GB, free: 4.629 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000234/1.969, allocations: 219.6 kB / 0.5894 GB, free: 4.375 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.774e-05/1.969, allocations: 12.44 kB / 0.5894 GB, free: 4.363 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.671e-05/1.969, allocations: 27.94 kB / 0.5895 GB, free: 4.336 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004153/1.969, allocations: 299.4 kB / 0.5898 GB, free: 4.012 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/1.969, allocations: 3.938 kB / 0.5898 GB, free: 4.008 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.89e-05/1.969, allocations: 8 kB / 0.5898 GB, free: 4 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.398e-05/1.969, allocations: 9.734 kB / 0.5898 GB, free: 3.992 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000262/1.97, allocations: 169.1 kB / 0.5899 GB, free: 3.828 MB / 478.1 MB 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.03911/2.009, allocations: 18.01 MB / 0.6075 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003355/2.009, allocations: 134.6 kB / 0.6077 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/2.009, allocations: 84.84 kB / 0.6077 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1672/2.177, allocations: 77.28 MB / 0.6832 GB, free: 9.672 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.372e-05/2.177, allocations: 34.56 kB / 0.6832 GB, free: 9.629 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.395e-06/2.177, allocations: 0 / 0.6832 GB, free: 9.629 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001185/2.178, allocations: 451.3 kB / 0.6837 GB, free: 9.16 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/2.178, allocations: 51.41 kB / 0.6837 GB, free: 9.098 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002654/2.178, allocations: 223 kB / 0.6839 GB, free: 8.871 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/2.178, allocations: 25.7 kB / 0.684 GB, free: 8.84 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/2.178, allocations: 148.5 kB / 0.6841 GB, free: 8.688 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.057e-05/2.178, allocations: 114.3 kB / 0.6842 GB, free: 8.574 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.916e-05/2.179, allocations: 57.61 kB / 0.6843 GB, free: 8.512 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000126/2.179, allocations: 334.8 kB / 0.6846 GB, free: 8.176 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001085/2.179, allocations: 71.91 kB / 0.6847 GB, free: 8.105 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/2.179, allocations: 113 kB / 0.6848 GB, free: 7.98 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002678/2.179, allocations: 208.6 kB / 0.685 GB, free: 7.762 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/2.179, allocations: 0 / 0.685 GB, free: 7.762 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004528/2.18, allocations: 309.5 kB / 0.6853 GB, free: 7.449 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/2.18, allocations: 9.656 kB / 0.6853 GB, free: 7.441 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/2.18, allocations: 0 / 0.6853 GB, free: 7.441 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009297/2.181, allocations: 165.9 kB / 0.6854 GB, free: 7.277 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.172e-05/2.181, allocations: 11.92 kB / 0.6854 GB, free: 7.266 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006248/2.181, allocations: 0.6344 MB / 0.6861 GB, free: 6.605 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/2.182, allocations: 19.69 kB / 0.6861 GB, free: 6.586 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.642e-05/2.182, allocations: 8 kB / 0.6861 GB, free: 6.578 MB / 0.5762 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 0.0001571/2.182, allocations: 141.7 kB / 0.6862 GB, free: 6.43 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.818e-05/2.182, allocations: 19.72 kB / 0.6862 GB, free: 6.41 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007257/2.183, allocations: 0.5925 MB / 0.6868 GB, free: 5.75 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003711/2.183, allocations: 227.4 kB / 0.687 GB, free: 5.52 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/2.183, allocations: 4 kB / 0.687 GB, free: 5.516 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/2.183, allocations: 0 / 0.687 GB, free: 5.516 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001011/2.184, allocations: 0.736 MB / 0.6877 GB, free: 4.723 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/2.184, allocations: 3.375 kB / 0.6878 GB, free: 4.723 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.085e-05/2.184, allocations: 16 kB / 0.6878 GB, free: 4.707 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003823/2.184, allocations: 117.9 kB / 0.6879 GB, free: 4.59 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/2.184, allocations: 4 kB / 0.6879 GB, free: 4.586 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004535/2.185, allocations: 0.6549 MB / 0.6885 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/2.185, allocations: 0 / 0.6885 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004552/2.185, allocations: 343.7 kB / 0.6889 GB, free: 3.551 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.572e-05/2.185, allocations: 104.8 kB / 0.689 GB, free: 3.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.512e-05/2.186, allocations: 15.84 kB / 0.689 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/2.186, allocations: 64 / 0.689 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.787e-05/2.186, allocations: 15.98 kB / 0.689 GB, free: 3.398 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/2.186, allocations: 4 kB / 0.689 GB, free: 3.395 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002653/2.186, allocations: 237.9 kB / 0.6892 GB, free: 3.164 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.51e-07/2.186, allocations: 0 / 0.6892 GB, free: 3.164 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00325/2.189, allocations: 1.183 MB / 0.6904 GB, free: 1.98 MB / 0.5762 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.1679/2.357, allocations: 2.49 MB / 0.6928 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006172/2.358, allocations: 246.2 kB / 0.693 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/2.358, allocations: 0 / 0.693 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000189/2.358, allocations: 94.12 kB / 0.6931 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007642/2.359, allocations: 122.9 kB / 0.6932 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004351/2.363, allocations: 3.019 MB / 0.6962 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002137/2.363, allocations: 0.777 MB / 0.6969 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001222/2.363, allocations: 20.94 kB / 0.697 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.414e-05/2.364, allocations: 88.45 kB / 0.6971 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of SimCode: time 5.01e-07/2.364, allocations: 0 / 0.6971 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08341/2.447, allocations: 47.69 MB / 0.7436 GB, free: 198.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.17/15.62, allocations: 12.75 kB / 0.7436 GB, free: 198.3 MB / 0.5762 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)