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.8353/0.8353, allocations: 150.9 MB / 166.4 MB, free: 14.4 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003372/0.0003372, allocations: 19.97 kB / 204.5 MB, free: 9.746 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1438, allocations: 31.32 MB / 235.9 MB, free: 5.426 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.608/1.752, allocations: 294.7 MB / 0.5182 GB, free: 13.33 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03865/1.791, allocations: 34.43 MB / 0.5518 GB, free: 11.02 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002038/1.791, allocations: 4 kB / 0.5518 GB, free: 11.02 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.0003845/1.791, allocations: 107.4 kB / 0.5519 GB, free: 10.91 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001902/1.791, allocations: 95.17 kB / 0.552 GB, free: 10.82 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.02404/1.815, allocations: 9.571 MB / 0.5613 GB, free: 1.246 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005119/1.816, allocations: 342.4 kB / 0.5616 GB, free: 0.9102 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002047/1.816, allocations: 109.7 kB / 0.5618 GB, free: 0.8047 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002003/1.816, allocations: 139.3 kB / 0.5619 GB, free: 0.668 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001429/1.817, allocations: 115.4 kB / 0.562 GB, free: 0.5547 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.573e-05/1.817, allocations: 16 kB / 0.562 GB, free: 0.5391 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02867/1.845, allocations: 17.67 MB / 0.5793 GB, free: 14.84 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.773e-05/1.845, allocations: 47.78 kB / 0.5793 GB, free: 14.8 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001819/1.846, allocations: 127.4 kB / 0.5794 GB, free: 14.67 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01715/1.863, allocations: 8.425 MB / 0.5877 GB, free: 6.227 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/1.863, allocations: 4 kB / 0.5877 GB, free: 6.223 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.105e-06/1.863, allocations: 4 kB / 0.5877 GB, free: 6.219 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.827e-05/1.863, allocations: 0 / 0.5877 GB, free: 6.219 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.003851/1.867, allocations: 1.439 MB / 0.5891 GB, free: 4.73 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/1.867, allocations: 8.031 kB / 0.5891 GB, free: 4.723 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.598e-05/1.867, allocations: 35.56 kB / 0.5891 GB, free: 4.688 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002205/1.867, allocations: 223.8 kB / 0.5893 GB, free: 4.43 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.787e-05/1.867, allocations: 16.44 kB / 0.5893 GB, free: 4.414 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.781e-05/1.867, allocations: 24 kB / 0.5894 GB, free: 4.391 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003896/1.867, allocations: 295.3 kB / 0.5897 GB, free: 4.07 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/1.867, allocations: 0 / 0.5897 GB, free: 4.07 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/1.868, allocations: 8 kB / 0.5897 GB, free: 4.062 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.714e-05/1.868, allocations: 15.98 kB / 0.5897 GB, free: 4.047 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002448/1.868, allocations: 173 kB / 0.5898 GB, free: 3.879 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.03807/1.906, allocations: 18.02 MB / 0.6074 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003454/1.906, allocations: 126.6 kB / 0.6076 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/1.906, allocations: 88.84 kB / 0.6076 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1568/2.063, allocations: 77.28 MB / 0.6831 GB, free: 9.715 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.593e-05/2.063, allocations: 30.56 kB / 0.6831 GB, free: 9.676 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.264e-06/2.063, allocations: 0 / 0.6831 GB, free: 9.676 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001093/2.064, allocations: 447.4 kB / 0.6836 GB, free: 9.211 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.337e-05/2.064, allocations: 51.41 kB / 0.6836 GB, free: 9.148 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002463/2.065, allocations: 223.1 kB / 0.6838 GB, free: 8.922 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/2.065, allocations: 25.7 kB / 0.6839 GB, free: 8.891 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.272e-05/2.065, allocations: 148.5 kB / 0.684 GB, free: 8.742 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.94e-05/2.065, allocations: 114.2 kB / 0.6841 GB, free: 8.629 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.283e-05/2.065, allocations: 53.59 kB / 0.6842 GB, free: 8.57 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001189/2.065, allocations: 338.8 kB / 0.6845 GB, free: 8.23 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001154/2.065, allocations: 71.98 kB / 0.6845 GB, free: 8.16 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001305/2.065, allocations: 116.2 kB / 0.6847 GB, free: 8.031 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002648/2.066, allocations: 204.2 kB / 0.6849 GB, free: 7.816 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/2.066, allocations: 0 / 0.6849 GB, free: 7.816 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004568/2.066, allocations: 299.8 kB / 0.6851 GB, free: 7.516 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/2.066, allocations: 13.5 kB / 0.6852 GB, free: 7.504 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.403e-06/2.066, allocations: 0 / 0.6852 GB, free: 7.504 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009346/2.067, allocations: 158.3 kB / 0.6853 GB, free: 7.348 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.9e-05/2.067, allocations: 11.98 kB / 0.6853 GB, free: 7.336 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005298/2.068, allocations: 0.6382 MB / 0.6859 GB, free: 6.672 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/2.068, allocations: 27.66 kB / 0.686 GB, free: 6.645 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.466e-05/2.068, allocations: 4 kB / 0.686 GB, free: 6.641 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.000135/2.068, allocations: 137.8 kB / 0.6861 GB, free: 6.496 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.679e-05/2.068, allocations: 19.72 kB / 0.6861 GB, free: 6.477 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007441/2.069, allocations: 0.6003 MB / 0.6867 GB, free: 5.805 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003693/2.069, allocations: 224.4 kB / 0.6869 GB, free: 5.578 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/2.069, allocations: 4 kB / 0.6869 GB, free: 5.574 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/2.069, allocations: 0 / 0.6869 GB, free: 5.574 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/2.07, allocations: 0.7414 MB / 0.6876 GB, free: 4.777 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/2.07, allocations: 0 / 0.6876 GB, free: 4.777 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.694e-05/2.07, allocations: 12 kB / 0.6877 GB, free: 4.766 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003851/2.071, allocations: 104.8 kB / 0.6878 GB, free: 4.66 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/2.071, allocations: 12.06 kB / 0.6878 GB, free: 4.648 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005215/2.071, allocations: 0.6627 MB / 0.6884 GB, free: 3.961 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/2.071, allocations: 4.094 kB / 0.6884 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004696/2.072, allocations: 339.9 kB / 0.6887 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.452e-05/2.072, allocations: 110.2 kB / 0.6888 GB, free: 3.48 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.777e-05/2.072, allocations: 11.84 kB / 0.6889 GB, free: 3.469 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/2.072, allocations: 12 kB / 0.6889 GB, free: 3.457 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.872e-05/2.072, allocations: 11.98 kB / 0.6889 GB, free: 3.445 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.724e-06/2.072, allocations: 4 kB / 0.6889 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002427/2.072, allocations: 233.9 kB / 0.6891 GB, free: 3.215 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/2.072, allocations: 4 kB / 0.6891 GB, free: 3.211 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003063/2.075, allocations: 1.179 MB / 0.6903 GB, free: 2.031 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.005758/2.081, allocations: 1.729 MB / 0.692 GB, free: 320 kB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006286/2.082, allocations: 238.8 kB / 0.6922 GB, free: 76 kB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/2.082, allocations: 0 / 0.6922 GB, free: 76 kB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.1548/2.237, allocations: 95.33 kB / 0.6923 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008869/2.238, allocations: 121.7 kB / 0.6924 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009165/2.238, allocations: 0.5087 MB / 0.6929 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001679/2.239, allocations: 0.7695 MB / 0.6936 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001142/2.239, allocations: 22 kB / 0.6937 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.853e-05/2.239, allocations: 18.69 kB / 0.6937 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of SimCode: time 6.51e-07/2.239, allocations: 0.8125 kB / 0.6937 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of Templates: time 0.04929/2.288, allocations: 42.47 MB / 0.7351 GB, free: 206.2 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe 2>&1)