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: translateModel(ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss") translateModel(ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8253/0.8253, allocations: 150.9 MB / 167.1 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003195/0.0003196, allocations: 23.97 kB / 206 MB, free: 9.059 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1312, allocations: 31.33 MB / 237.3 MB, free: 5.73 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.SimpleExamples.TestPipePressureLoss): time 1.554/1.686, allocations: 294.5 MB / 0.5193 GB, free: 13.23 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03604/1.722, allocations: 34.43 MB / 0.553 GB, free: 10.93 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00018/1.722, allocations: 4 kB / 0.553 GB, free: 10.93 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.000356/1.722, allocations: 104.5 kB / 0.5531 GB, free: 10.82 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001821/1.722, allocations: 99.16 kB / 0.5532 GB, free: 10.73 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.0218/1.744, allocations: 9.567 MB / 0.5625 GB, free: 1.152 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004515/1.745, allocations: 346.4 kB / 0.5628 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/1.745, allocations: 112.4 kB / 0.5629 GB, free: 0.7031 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001939/1.745, allocations: 143.4 kB / 0.5631 GB, free: 0.5625 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001346/1.745, allocations: 103.5 kB / 0.5632 GB, free: 472 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.635e-05/1.745, allocations: 20 kB / 0.5632 GB, free: 452 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02714/1.772, allocations: 17.9 MB / 0.5807 GB, free: 14.52 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.246e-05/1.773, allocations: 47.8 kB / 0.5807 GB, free: 14.47 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001704/1.773, allocations: 135.3 kB / 0.5808 GB, free: 14.34 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01622/1.789, allocations: 8.41 MB / 0.5891 GB, free: 5.91 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/1.789, allocations: 0 / 0.5891 GB, free: 5.91 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.373e-06/1.789, allocations: 0 / 0.5891 GB, free: 5.91 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/1.789, allocations: 0 / 0.5891 GB, free: 5.91 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.003362/1.792, allocations: 1.443 MB / 0.5905 GB, free: 4.418 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/1.792, allocations: 8.031 kB / 0.5905 GB, free: 4.41 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.924e-05/1.793, allocations: 39.56 kB / 0.5905 GB, free: 4.371 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002006/1.793, allocations: 228.5 kB / 0.5907 GB, free: 4.109 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.418e-05/1.793, allocations: 12.44 kB / 0.5907 GB, free: 4.098 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.701e-05/1.793, allocations: 20 kB / 0.5908 GB, free: 4.078 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003817/1.793, allocations: 291.3 kB / 0.591 GB, free: 3.762 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/1.793, allocations: 11.94 kB / 0.5911 GB, free: 3.75 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.865e-05/1.793, allocations: 8 kB / 0.5911 GB, free: 3.742 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.462e-05/1.793, allocations: 15.98 kB / 0.5911 GB, free: 3.727 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002397/1.793, allocations: 162.9 kB / 0.5912 GB, free: 3.57 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.03637/1.83, allocations: 18.12 MB / 0.6089 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003142/1.83, allocations: 138.5 kB / 0.6091 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001212/1.83, allocations: 92.83 kB / 0.6091 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1473/1.978, allocations: 77.72 MB / 0.685 GB, free: 8.844 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.26e-05/1.978, allocations: 34.56 kB / 0.6851 GB, free: 8.801 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.184e-06/1.978, allocations: 0 / 0.6851 GB, free: 8.801 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001018/1.979, allocations: 443.3 kB / 0.6855 GB, free: 8.34 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.017e-05/1.979, allocations: 55.41 kB / 0.6856 GB, free: 8.273 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002229/1.979, allocations: 219.1 kB / 0.6858 GB, free: 8.051 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.604e-05/1.979, allocations: 33.7 kB / 0.6858 GB, free: 8.012 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.657e-05/1.979, allocations: 152.5 kB / 0.6859 GB, free: 7.859 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.922e-05/1.979, allocations: 110.3 kB / 0.6861 GB, free: 7.75 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.226e-05/1.979, allocations: 53.59 kB / 0.6861 GB, free: 7.691 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000107/1.979, allocations: 334.8 kB / 0.6864 GB, free: 7.355 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/1.98, allocations: 67.98 kB / 0.6865 GB, free: 7.289 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001334/1.98, allocations: 121.6 kB / 0.6866 GB, free: 7.156 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002399/1.98, allocations: 207.9 kB / 0.6868 GB, free: 6.938 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/1.98, allocations: 4 kB / 0.6868 GB, free: 6.934 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004222/1.98, allocations: 293.8 kB / 0.6871 GB, free: 6.637 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/1.98, allocations: 16 kB / 0.6871 GB, free: 6.621 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/1.98, allocations: 4 kB / 0.6871 GB, free: 6.617 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008991/1.981, allocations: 156.7 kB / 0.6873 GB, free: 6.461 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.7e-05/1.981, allocations: 11.98 kB / 0.6873 GB, free: 6.449 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005051/1.982, allocations: 0.6321 MB / 0.6879 GB, free: 5.793 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00012/1.982, allocations: 27.78 kB / 0.6879 GB, free: 5.766 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/1.982, allocations: 8 kB / 0.6879 GB, free: 5.758 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.0001166/1.982, allocations: 137.8 kB / 0.688 GB, free: 5.613 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.605e-05/1.982, allocations: 23.78 kB / 0.6881 GB, free: 5.59 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007272/1.983, allocations: 0.5962 MB / 0.6887 GB, free: 4.922 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003493/1.983, allocations: 217 kB / 0.6889 GB, free: 4.703 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.299e-06/1.983, allocations: 0 / 0.6889 GB, free: 4.703 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/1.983, allocations: 0 / 0.6889 GB, free: 4.703 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009223/1.984, allocations: 0.736 MB / 0.6896 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/1.984, allocations: 0 / 0.6896 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.881e-05/1.984, allocations: 23.88 kB / 0.6896 GB, free: 3.887 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003656/1.985, allocations: 112.7 kB / 0.6897 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.194e-05/1.985, allocations: 7.984 kB / 0.6897 GB, free: 3.766 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004239/1.985, allocations: 0.6508 MB / 0.6904 GB, free: 3.09 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/1.985, allocations: 0 / 0.6904 GB, free: 3.09 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004231/1.986, allocations: 349.3 kB / 0.6907 GB, free: 2.73 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.081e-05/1.986, allocations: 100.9 kB / 0.6908 GB, free: 2.613 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.57e-05/1.986, allocations: 19.91 kB / 0.6908 GB, free: 2.594 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/1.986, allocations: 0 / 0.6908 GB, free: 2.594 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.256e-05/1.986, allocations: 7.984 kB / 0.6908 GB, free: 2.586 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/1.986, allocations: 8 kB / 0.6908 GB, free: 2.578 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002246/1.986, allocations: 237.9 kB / 0.691 GB, free: 2.348 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2e-07/1.986, allocations: 0 / 0.691 GB, free: 2.348 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0027/1.989, allocations: 1.179 MB / 0.6922 GB, free: 1.168 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.1433/2.132, allocations: 1.724 MB / 0.6939 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000554/2.133, allocations: 232.9 kB / 0.6941 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/2.133, allocations: 2.156 kB / 0.6941 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001961/2.133, allocations: 88.66 kB / 0.6942 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006938/2.134, allocations: 127.1 kB / 0.6943 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000736/2.134, allocations: 0.5014 MB / 0.6948 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001618/2.135, allocations: 0.7735 MB / 0.6956 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 7.334e-05/2.135, allocations: 21.12 kB / 0.6956 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.719e-05/2.135, allocations: 24.16 kB / 0.6956 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of SimCode: time 3.1e-07/2.135, allocations: 0 / 0.6956 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of Templates: time 0.04345/2.178, allocations: 42.37 MB / 0.737 GB, free: 205.8 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.makefile (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 & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe 2>&1)