Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.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.Book.SimpleExamples.PressureLoss.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8247/0.8247, allocations: 150.9 MB / 167.1 MB, free: 14.49 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003263/0.0003263, allocations: 11.98 kB / 205.9 MB, free: 9.031 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1337, allocations: 31.33 MB / 237.3 MB, free: 5.75 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.TestDiaphragm): time 1.559/1.692, allocations: 294.4 MB / 0.5192 GB, free: 13.29 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03758/1.73, allocations: 34.67 MB / 0.5531 GB, free: 10.75 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001764/1.73, allocations: 4 kB / 0.5531 GB, free: 10.74 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/Diaphragm.mo:30:3-32: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/Diaphragm.mo:33:3-35: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.0003435/1.73, allocations: 111.3 kB / 0.5532 GB, free: 10.63 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001789/1.731, allocations: 91.23 kB / 0.5533 GB, free: 10.54 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.022/1.753, allocations: 9.637 MB / 0.5627 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004848/1.753, allocations: 354.8 kB / 0.563 GB, free: 0.5547 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001967/1.753, allocations: 114 kB / 0.5631 GB, free: 452 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002124/1.754, allocations: 155.3 kB / 0.5633 GB, free: 296 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001674/1.754, allocations: 111.4 kB / 0.5634 GB, free: 184 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.792e-05/1.754, allocations: 20 kB / 0.5634 GB, free: 164 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0278/1.782, allocations: 17.97 MB / 0.5809 GB, free: 14.17 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.832e-05/1.782, allocations: 43.84 kB / 0.581 GB, free: 14.12 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001679/1.782, allocations: 139.3 kB / 0.5811 GB, free: 13.99 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01692/1.799, allocations: 8.464 MB / 0.5894 GB, free: 5.504 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/1.799, allocations: 4 kB / 0.5894 GB, free: 5.5 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.426e-06/1.799, allocations: 0 / 0.5894 GB, free: 5.5 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.578e-06/1.799, allocations: 3.938 kB / 0.5894 GB, free: 5.496 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.003765/1.803, allocations: 1.454 MB / 0.5908 GB, free: 3.992 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/1.803, allocations: 8.031 kB / 0.5908 GB, free: 3.984 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.47e-05/1.803, allocations: 31.62 kB / 0.5908 GB, free: 3.953 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002169/1.803, allocations: 231.5 kB / 0.5911 GB, free: 3.688 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.808e-05/1.803, allocations: 12.44 kB / 0.5911 GB, free: 3.672 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.397e-05/1.803, allocations: 24 kB / 0.5911 GB, free: 3.648 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004385/1.803, allocations: 313.1 kB / 0.5914 GB, free: 3.309 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/1.804, allocations: 3.938 kB / 0.5914 GB, free: 3.305 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.638e-05/1.804, allocations: 12 kB / 0.5914 GB, free: 3.293 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.571e-05/1.804, allocations: 16.86 kB / 0.5914 GB, free: 3.277 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002667/1.804, allocations: 173 kB / 0.5916 GB, free: 3.109 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.03656/1.84, allocations: 18.17 MB / 0.6093 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004354/1.841, allocations: 148.4 kB / 0.6095 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001116/1.841, allocations: 84.83 kB / 0.6096 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1495/1.99, allocations: 77.92 MB / 0.6857 GB, free: 8.098 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/1.991, allocations: 30.56 kB / 0.6857 GB, free: 8.059 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.295e-06/1.991, allocations: 3.938 kB / 0.6857 GB, free: 8.055 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.0009361/1.991, allocations: 427.4 kB / 0.6861 GB, free: 7.609 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.081e-05/1.992, allocations: 81.09 kB / 0.6862 GB, free: 7.512 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002229/1.992, allocations: 223 kB / 0.6864 GB, free: 7.285 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/1.992, allocations: 29.7 kB / 0.6864 GB, free: 7.25 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.293e-05/1.992, allocations: 156.4 kB / 0.6866 GB, free: 7.09 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.835e-05/1.992, allocations: 114.3 kB / 0.6867 GB, free: 6.977 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.591e-05/1.992, allocations: 45.7 kB / 0.6867 GB, free: 6.926 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001211/1.992, allocations: 338.8 kB / 0.687 GB, free: 6.586 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/1.992, allocations: 75.97 kB / 0.6871 GB, free: 6.512 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001475/1.992, allocations: 130 kB / 0.6872 GB, free: 6.363 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002733/1.993, allocations: 225.6 kB / 0.6875 GB, free: 6.125 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/1.993, allocations: 0 / 0.6875 GB, free: 6.125 MB / 0.5762 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004537/1.993, allocations: 305.9 kB / 0.6877 GB, free: 5.816 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/1.993, allocations: 12.09 kB / 0.6878 GB, free: 5.805 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/1.993, allocations: 0 / 0.6878 GB, free: 5.805 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009634/1.994, allocations: 142.3 kB / 0.6879 GB, free: 5.664 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.875e-05/1.994, allocations: 19.94 kB / 0.6879 GB, free: 5.645 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005049/1.995, allocations: 0.6108 MB / 0.6885 GB, free: 5.008 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001519/1.995, allocations: 31.7 kB / 0.6885 GB, free: 4.977 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/1.995, allocations: 8 kB / 0.6885 GB, free: 4.969 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 4 (Diaphragm.C2.b,Diaphragm.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 (15): * Single equations (assignments): 12 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001371/1.995, allocations: 137.8 kB / 0.6887 GB, free: 4.824 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.772e-05/1.995, allocations: 23.78 kB / 0.6887 GB, free: 4.801 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009387/1.996, allocations: 0.6011 MB / 0.6893 GB, free: 4.133 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005366/1.997, allocations: 231.5 kB / 0.6895 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/1.997, allocations: 7.875 kB / 0.6895 GB, free: 3.891 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/1.997, allocations: 0 / 0.6895 GB, free: 3.891 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/1.998, allocations: 0.7282 MB / 0.6902 GB, free: 3.105 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/1.998, allocations: 0 / 0.6902 GB, free: 3.105 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.556e-05/1.998, allocations: 23.92 kB / 0.6903 GB, free: 3.082 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000339/1.998, allocations: 108.8 kB / 0.6904 GB, free: 2.973 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/1.998, allocations: 4 kB / 0.6904 GB, free: 2.969 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004575/1.999, allocations: 0.6373 MB / 0.691 GB, free: 2.309 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/1.999, allocations: 0 / 0.691 GB, free: 2.309 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005994/1.999, allocations: 351.8 kB / 0.6913 GB, free: 1.945 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.719e-05/1.999, allocations: 112.9 kB / 0.6914 GB, free: 1.816 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.281e-05/2, allocations: 15.78 kB / 0.6914 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001349/2, allocations: 4 kB / 0.6914 GB, free: 1.797 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.425e-05/2, allocations: 7.984 kB / 0.6914 GB, free: 1.789 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.335e-06/2, allocations: 7.938 kB / 0.6915 GB, free: 1.781 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002267/2, allocations: 237.9 kB / 0.6917 GB, free: 1.551 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/2, allocations: 0 / 0.6917 GB, free: 1.551 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00266/2.003, allocations: 1.218 MB / 0.6929 GB, free: 340 kB / 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 (13): * Single equations (assignments): 12 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1423/2.145, allocations: 1.751 MB / 0.6946 GB, free: 226.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007816/2.146, allocations: 255.3 kB / 0.6948 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/2.146, allocations: 5.594 kB / 0.6948 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002497/2.146, allocations: 95.16 kB / 0.6949 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006996/2.147, allocations: 124.5 kB / 0.695 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007179/2.147, allocations: 0.4982 MB / 0.6955 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001753/2.148, allocations: 0.7717 MB / 0.6963 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001047/2.148, allocations: 29.97 kB / 0.6963 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.978e-05/2.148, allocations: 21.53 kB / 0.6963 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of SimCode: time 2.51e-07/2.148, allocations: 3.828 kB / 0.6963 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.04411/2.192, allocations: 42.84 MB / 0.7382 GB, free: 204.9 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1)