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.8627/0.8627, allocations: 150.9 MB / 166.1 MB, free: 14.63 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002812/0.0002813, allocations: 15.98 kB / 204.2 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1299, allocations: 31.33 MB / 235.5 MB, free: 5.457 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.525/1.655, allocations: 293.6 MB / 0.5167 GB, free: 13.67 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03688/1.691, allocations: 34.64 MB / 0.5506 GB, free: 11.17 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002442/1.692, allocations: 4 kB / 0.5506 GB, free: 11.17 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.0003534/1.692, allocations: 83.61 kB / 0.5506 GB, free: 11.09 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001812/1.692, allocations: 87.38 kB / 0.5507 GB, free: 11 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.0224/1.715, allocations: 8.397 MB / 0.5589 GB, free: 2.602 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000476/1.715, allocations: 342.4 kB / 0.5592 GB, free: 2.266 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001844/1.715, allocations: 111.7 kB / 0.5594 GB, free: 2.164 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002165/1.716, allocations: 139.3 kB / 0.5595 GB, free: 2.027 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001302/1.716, allocations: 115.4 kB / 0.5596 GB, free: 1.914 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.451e-05/1.716, allocations: 23.94 kB / 0.5596 GB, free: 1.891 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02669/1.742, allocations: 17.75 MB / 0.577 GB, free: 120 kB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 6.935e-05/1.743, allocations: 51.72 kB / 0.577 GB, free: 68 kB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000187/1.743, allocations: 131.4 kB / 0.5771 GB, free: 15.93 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01842/1.761, allocations: 8.437 MB / 0.5854 GB, free: 7.48 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/1.761, allocations: 0 / 0.5854 GB, free: 7.48 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.573e-06/1.761, allocations: 0 / 0.5854 GB, free: 7.48 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.123e-05/1.761, allocations: 0 / 0.5854 GB, free: 7.48 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.004056/1.765, allocations: 1.439 MB / 0.5868 GB, free: 5.992 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/1.765, allocations: 12.03 kB / 0.5868 GB, free: 5.98 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.784e-05/1.765, allocations: 35.5 kB / 0.5868 GB, free: 5.945 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002049/1.766, allocations: 227.4 kB / 0.587 GB, free: 5.684 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.635e-05/1.766, allocations: 12.44 kB / 0.587 GB, free: 5.672 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.025e-05/1.766, allocations: 31.92 kB / 0.5871 GB, free: 5.641 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004141/1.766, allocations: 291.4 kB / 0.5874 GB, free: 5.328 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/1.766, allocations: 3.938 kB / 0.5874 GB, free: 5.324 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.26e-05/1.766, allocations: 12 kB / 0.5874 GB, free: 5.312 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/1.766, allocations: 11.98 kB / 0.5874 GB, free: 5.301 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002443/1.766, allocations: 161.1 kB / 0.5875 GB, free: 5.145 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.03488/1.801, allocations: 18.01 MB / 0.6051 GB, free: 1.258 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003029/1.802, allocations: 146.5 kB / 0.6053 GB, free: 1.105 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/1.802, allocations: 84.84 kB / 0.6053 GB, free: 1.02 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1402/1.942, allocations: 77.26 MB / 0.6808 GB, free: 10.99 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.85e-05/1.942, allocations: 34.56 kB / 0.6808 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 3.947e-06/1.942, allocations: 0.9844 kB / 0.6808 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001002/1.943, allocations: 455.3 kB / 0.6813 GB, free: 10.47 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.845e-05/1.943, allocations: 51.41 kB / 0.6813 GB, free: 10.41 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001985/1.943, allocations: 219.1 kB / 0.6815 GB, free: 10.19 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/1.943, allocations: 29.7 kB / 0.6815 GB, free: 10.15 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.595e-05/1.943, allocations: 148.5 kB / 0.6817 GB, free: 10 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.303e-05/1.944, allocations: 110.3 kB / 0.6818 GB, free: 9.895 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.815e-05/1.944, allocations: 57.59 kB / 0.6819 GB, free: 9.832 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.757e-05/1.944, allocations: 326.8 kB / 0.6822 GB, free: 9.504 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.794e-05/1.944, allocations: 75.97 kB / 0.6822 GB, free: 9.43 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/1.944, allocations: 124.1 kB / 0.6824 GB, free: 9.293 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002391/1.944, allocations: 208.6 kB / 0.6826 GB, free: 9.074 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/1.944, allocations: 0 / 0.6826 GB, free: 9.074 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003889/1.945, allocations: 297.6 kB / 0.6828 GB, free: 8.773 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/1.945, allocations: 11.92 kB / 0.6828 GB, free: 8.762 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/1.945, allocations: 0 / 0.6828 GB, free: 8.762 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008712/1.946, allocations: 160.8 kB / 0.683 GB, free: 8.602 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.405e-05/1.946, allocations: 11.94 kB / 0.683 GB, free: 8.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004791/1.946, allocations: 0.6352 MB / 0.6836 GB, free: 7.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001159/1.946, allocations: 27.62 kB / 0.6837 GB, free: 7.902 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.296e-05/1.946, allocations: 8 kB / 0.6837 GB, free: 7.895 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.0001131/1.946, allocations: 137.7 kB / 0.6838 GB, free: 7.75 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.236e-05/1.946, allocations: 20.56 kB / 0.6838 GB, free: 7.73 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006685/1.947, allocations: 0.601 MB / 0.6844 GB, free: 7.059 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003295/1.947, allocations: 214.4 kB / 0.6846 GB, free: 6.84 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/1.947, allocations: 3.984 kB / 0.6846 GB, free: 6.836 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/1.947, allocations: 0 / 0.6846 GB, free: 6.836 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008579/1.948, allocations: 0.7377 MB / 0.6853 GB, free: 6.043 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/1.948, allocations: 0 / 0.6853 GB, free: 6.043 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.502e-05/1.948, allocations: 24.05 kB / 0.6854 GB, free: 6.02 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003533/1.949, allocations: 118.1 kB / 0.6855 GB, free: 5.902 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/1.949, allocations: 4 kB / 0.6855 GB, free: 5.898 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004081/1.949, allocations: 0.6537 MB / 0.6861 GB, free: 5.219 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/1.949, allocations: 4.062 kB / 0.6861 GB, free: 5.215 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004048/1.95, allocations: 339.8 kB / 0.6864 GB, free: 4.863 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.281e-05/1.95, allocations: 104.8 kB / 0.6865 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.986e-05/1.95, allocations: 20.38 kB / 0.6866 GB, free: 4.723 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/1.95, allocations: 4 kB / 0.6866 GB, free: 4.719 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.181e-05/1.95, allocations: 7.984 kB / 0.6866 GB, free: 4.711 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.265e-06/1.95, allocations: 12 kB / 0.6866 GB, free: 4.699 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002131/1.95, allocations: 234 kB / 0.6868 GB, free: 4.477 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.95, allocations: 0 / 0.6868 GB, free: 4.477 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002698/1.953, allocations: 1.183 MB / 0.688 GB, free: 3.293 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.004378/1.957, allocations: 1.794 MB / 0.6897 GB, free: 1.512 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004913/1.958, allocations: 237.4 kB / 0.6899 GB, free: 1.273 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/1.958, allocations: 0 / 0.6899 GB, free: 1.273 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001937/1.958, allocations: 95.73 kB / 0.69 GB, free: 1.18 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00071/1.959, allocations: 120.1 kB / 0.6901 GB, free: 1.062 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000785/1.959, allocations: 0.611 MB / 0.6907 GB, free: 436 kB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.147/2.106, allocations: 0.763 MB / 0.6915 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001436/2.107, allocations: 22.2 kB / 0.6915 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.272e-05/2.107, allocations: 23.03 kB / 0.6915 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of SimCode: time 6.11e-07/2.107, allocations: 1.156 kB / 0.6915 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of Templates: time 0.04606/2.153, allocations: 42.81 MB / 0.7333 GB, free: 206.6 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)