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.8169/0.8169, allocations: 150.9 MB / 166.4 MB, free: 14.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000294/0.000294, allocations: 19.97 kB / 204.5 MB, free: 9.742 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1374, allocations: 31.32 MB / 235.9 MB, free: 5.402 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.532/1.67, allocations: 294.6 MB / 0.518 GB, free: 13.37 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03726/1.707, allocations: 34.68 MB / 0.5519 GB, free: 10.83 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002026/1.707, allocations: 8 kB / 0.5519 GB, free: 10.82 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.0003284/1.708, allocations: 104.5 kB / 0.552 GB, free: 10.72 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000178/1.708, allocations: 99.16 kB / 0.5521 GB, free: 10.62 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.02215/1.73, allocations: 9.634 MB / 0.5615 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005136/1.731, allocations: 346.9 kB / 0.5618 GB, free: 0.6445 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001998/1.731, allocations: 119.7 kB / 0.562 GB, free: 0.5273 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001995/1.731, allocations: 151.3 kB / 0.5621 GB, free: 388 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001533/1.731, allocations: 115.4 kB / 0.5622 GB, free: 272 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.796e-05/1.731, allocations: 20 kB / 0.5622 GB, free: 252 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02793/1.759, allocations: 17.74 MB / 0.5796 GB, free: 14.48 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.389e-05/1.759, allocations: 47.83 kB / 0.5796 GB, free: 14.43 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001837/1.759, allocations: 135.3 kB / 0.5797 GB, free: 14.3 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01736/1.777, allocations: 8.472 MB / 0.588 GB, free: 5.809 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/1.777, allocations: 3.938 kB / 0.588 GB, free: 5.805 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.382e-06/1.777, allocations: 0 / 0.588 GB, free: 5.805 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/1.777, allocations: 0 / 0.588 GB, free: 5.805 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.003534/1.78, allocations: 1.458 MB / 0.5894 GB, free: 4.297 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/1.78, allocations: 12.03 kB / 0.5894 GB, free: 4.285 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.175e-05/1.781, allocations: 27.62 kB / 0.5895 GB, free: 4.258 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002126/1.781, allocations: 231.1 kB / 0.5897 GB, free: 3.992 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.592e-05/1.781, allocations: 18.27 kB / 0.5897 GB, free: 3.973 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.954e-05/1.781, allocations: 20 kB / 0.5897 GB, free: 3.953 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004215/1.781, allocations: 313.1 kB / 0.59 GB, free: 3.613 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/1.781, allocations: 3.938 kB / 0.59 GB, free: 3.609 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.304e-05/1.781, allocations: 12 kB / 0.59 GB, free: 3.598 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.473e-05/1.781, allocations: 15.98 kB / 0.5901 GB, free: 3.582 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002441/1.782, allocations: 169 kB / 0.5902 GB, free: 3.418 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.03808/1.82, allocations: 18.07 MB / 0.6079 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004421/1.82, allocations: 151.1 kB / 0.608 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.766e-05/1.82, allocations: 80.84 kB / 0.6081 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1582/1.978, allocations: 77.46 MB / 0.6837 GB, free: 8.98 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/1.979, allocations: 34.55 kB / 0.6838 GB, free: 8.938 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.224e-06/1.979, allocations: 0 / 0.6838 GB, free: 8.938 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.0009257/1.979, allocations: 427.4 kB / 0.6842 GB, free: 8.492 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/1.98, allocations: 81.11 kB / 0.6842 GB, free: 8.395 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002311/1.98, allocations: 219.1 kB / 0.6844 GB, free: 8.172 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/1.98, allocations: 29.7 kB / 0.6845 GB, free: 8.137 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/1.98, allocations: 156.4 kB / 0.6846 GB, free: 7.977 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.177e-05/1.98, allocations: 114.3 kB / 0.6847 GB, free: 7.863 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.812e-05/1.98, allocations: 45.7 kB / 0.6848 GB, free: 7.812 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001191/1.98, allocations: 334.8 kB / 0.6851 GB, free: 7.477 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/1.98, allocations: 75.97 kB / 0.6852 GB, free: 7.402 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/1.98, allocations: 130 kB / 0.6853 GB, free: 7.254 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000292/1.981, allocations: 237.1 kB / 0.6855 GB, free: 7.004 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/1.981, allocations: 0 / 0.6855 GB, free: 7.004 MB / 0.5762 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005103/1.981, allocations: 306 kB / 0.6858 GB, free: 6.695 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/1.981, allocations: 13.66 kB / 0.6858 GB, free: 6.684 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/1.981, allocations: 0 / 0.6858 GB, free: 6.684 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009787/1.982, allocations: 140.8 kB / 0.686 GB, free: 6.543 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.885e-05/1.982, allocations: 16 kB / 0.686 GB, free: 6.527 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005213/1.983, allocations: 0.603 MB / 0.6866 GB, free: 5.898 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001492/1.983, allocations: 35.64 kB / 0.6866 GB, free: 5.863 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.651e-05/1.983, allocations: 8 kB / 0.6866 GB, free: 5.855 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.0001503/1.983, allocations: 145.7 kB / 0.6867 GB, free: 5.703 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.147e-05/1.983, allocations: 23.72 kB / 0.6868 GB, free: 5.68 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009378/1.984, allocations: 0.6043 MB / 0.6874 GB, free: 5.008 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005534/1.985, allocations: 231.4 kB / 0.6876 GB, free: 4.773 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/1.985, allocations: 7.938 kB / 0.6876 GB, free: 4.766 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/1.985, allocations: 0 / 0.6876 GB, free: 4.766 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001128/1.986, allocations: 0.7382 MB / 0.6883 GB, free: 3.973 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/1.986, allocations: 0 / 0.6883 GB, free: 3.973 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.507e-05/1.986, allocations: 19.98 kB / 0.6883 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003823/1.987, allocations: 116.8 kB / 0.6884 GB, free: 3.836 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.938e-06/1.987, allocations: 0 / 0.6884 GB, free: 3.836 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004793/1.987, allocations: 0.6357 MB / 0.6891 GB, free: 3.176 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/1.987, allocations: 0 / 0.6891 GB, free: 3.176 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006349/1.988, allocations: 344 kB / 0.6894 GB, free: 2.82 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.747e-05/1.988, allocations: 112.8 kB / 0.6895 GB, free: 2.691 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.784e-05/1.988, allocations: 19.72 kB / 0.6895 GB, free: 2.672 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001292/1.988, allocations: 4 kB / 0.6895 GB, free: 2.668 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.341e-05/1.988, allocations: 15.92 kB / 0.6895 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.243e-06/1.988, allocations: 4 kB / 0.6895 GB, free: 2.648 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002376/1.988, allocations: 237.9 kB / 0.6898 GB, free: 2.418 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/1.988, allocations: 0 / 0.6898 GB, free: 2.418 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002853/1.991, allocations: 1.214 MB / 0.6909 GB, free: 1.203 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 (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.1554/2.147, allocations: 1.75 MB / 0.6927 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007369/2.147, allocations: 249.9 kB / 0.6929 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/2.147, allocations: 2.625 kB / 0.6929 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002532/2.148, allocations: 108 kB / 0.693 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000777/2.148, allocations: 125.7 kB / 0.6931 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007279/2.149, allocations: 0.5046 MB / 0.6936 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001843/2.149, allocations: 0.7701 MB / 0.6944 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001166/2.149, allocations: 31.75 kB / 0.6944 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.312e-05/2.149, allocations: 21.41 kB / 0.6944 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of SimCode: time 3.11e-07/2.149, allocations: 0 / 0.6944 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of Templates: time 0.04616/2.196, allocations: 42.95 MB / 0.7364 GB, free: 205.2 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1)