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.7852/0.7852, allocations: 150.9 MB / 166.7 MB, free: 14.62 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003164/0.0003164, allocations: 11.97 kB / 204.8 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1527/0.153, allocations: 31.32 MB / 236.1 MB, free: 5.445 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.531/1.684, allocations: 293.5 MB / 0.5172 GB, free: 13.77 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0411/1.725, allocations: 34.88 MB / 0.5513 GB, free: 11.03 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002298/1.725, allocations: 8 kB / 0.5513 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/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.0004299/1.726, allocations: 87.61 kB / 0.5514 GB, free: 10.93 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002885/1.726, allocations: 87.36 kB / 0.5514 GB, free: 10.85 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.02389/1.75, allocations: 8.45 MB / 0.5597 GB, free: 2.398 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005105/1.75, allocations: 350.8 kB / 0.56 GB, free: 2.055 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002159/1.751, allocations: 126 kB / 0.5602 GB, free: 1.934 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00024/1.751, allocations: 147.3 kB / 0.5603 GB, free: 1.789 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001483/1.751, allocations: 111.4 kB / 0.5604 GB, free: 1.68 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.944e-05/1.751, allocations: 24 kB / 0.5604 GB, free: 1.656 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0304/1.782, allocations: 17.82 MB / 0.5778 GB, free: 15.81 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001274/1.782, allocations: 47.83 kB / 0.5779 GB, free: 15.76 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003687/1.782, allocations: 135.3 kB / 0.578 GB, free: 15.63 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01392/1.796, allocations: 5.739 MB / 0.5836 GB, free: 9.875 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.039e-05/1.796, allocations: 0 / 0.5836 GB, free: 9.875 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.898e-06/1.796, allocations: 0 / 0.5836 GB, free: 9.875 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.891e-05/1.796, allocations: 0 / 0.5836 GB, free: 9.875 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.006621/1.803, allocations: 1.47 MB / 0.585 GB, free: 8.355 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/1.803, allocations: 8.031 kB / 0.5851 GB, free: 8.348 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/1.803, allocations: 27.62 kB / 0.5851 GB, free: 8.32 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00033/1.803, allocations: 226.6 kB / 0.5853 GB, free: 8.059 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.902e-05/1.803, allocations: 16.44 kB / 0.5853 GB, free: 8.039 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.067e-05/1.803, allocations: 22.62 kB / 0.5853 GB, free: 8.02 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006097/1.804, allocations: 317.1 kB / 0.5856 GB, free: 7.68 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/1.804, allocations: 3.938 kB / 0.5856 GB, free: 7.676 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.793e-05/1.804, allocations: 11.94 kB / 0.5857 GB, free: 7.664 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.225e-05/1.804, allocations: 11.98 kB / 0.5857 GB, free: 7.652 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003076/1.804, allocations: 173 kB / 0.5858 GB, free: 7.484 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.03631/1.841, allocations: 18.06 MB / 0.6035 GB, free: 3.551 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004481/1.841, allocations: 146.5 kB / 0.6036 GB, free: 3.398 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/1.841, allocations: 88.84 kB / 0.6037 GB, free: 3.309 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1352/1.977, allocations: 77.46 MB / 0.6793 GB, free: 13.05 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.019e-05/1.977, allocations: 30.56 kB / 0.6794 GB, free: 13.01 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 1.623e-06/1.977, allocations: 0 / 0.6794 GB, free: 13.01 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.00085/1.977, allocations: 431.4 kB / 0.6798 GB, free: 12.56 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.501e-05/1.978, allocations: 81.09 kB / 0.6799 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002218/1.978, allocations: 223.1 kB / 0.6801 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/1.978, allocations: 25.7 kB / 0.6801 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.698e-05/1.978, allocations: 156.4 kB / 0.6802 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.385e-05/1.978, allocations: 114.3 kB / 0.6803 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.254e-05/1.978, allocations: 49.69 kB / 0.6804 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000111/1.978, allocations: 334.8 kB / 0.6807 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000102/1.978, allocations: 75.97 kB / 0.6808 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/1.978, allocations: 130 kB / 0.6809 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002451/1.979, allocations: 229.2 kB / 0.6811 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/1.979, allocations: 0 / 0.6811 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004079/1.979, allocations: 309.9 kB / 0.6814 GB, free: 10.76 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/1.979, allocations: 7.938 kB / 0.6814 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/1.979, allocations: 4 kB / 0.6814 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008758/1.98, allocations: 136.8 kB / 0.6816 GB, free: 10.61 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.058e-05/1.98, allocations: 15.98 kB / 0.6816 GB, free: 10.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004838/1.981, allocations: 0.6109 MB / 0.6822 GB, free: 9.961 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001492/1.981, allocations: 35.66 kB / 0.6822 GB, free: 9.926 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/1.981, allocations: 7.984 kB / 0.6822 GB, free: 9.918 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.0001197/1.981, allocations: 138.4 kB / 0.6824 GB, free: 9.773 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.538e-05/1.981, allocations: 23.66 kB / 0.6824 GB, free: 9.75 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008473/1.982, allocations: 0.6026 MB / 0.683 GB, free: 9.082 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005319/1.982, allocations: 230.3 kB / 0.6832 GB, free: 8.848 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/1.982, allocations: 3.938 kB / 0.6832 GB, free: 8.844 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/1.982, allocations: 7.922 kB / 0.6832 GB, free: 8.836 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/1.983, allocations: 0.7444 MB / 0.6839 GB, free: 8.031 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-06/1.983, allocations: 4 kB / 0.6839 GB, free: 8.027 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.414e-05/1.984, allocations: 19.98 kB / 0.6839 GB, free: 8.008 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003299/1.984, allocations: 112.8 kB / 0.6841 GB, free: 7.895 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/1.984, allocations: 0 / 0.6841 GB, free: 7.895 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004417/1.984, allocations: 0.6383 MB / 0.6847 GB, free: 7.23 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/1.984, allocations: 4.062 kB / 0.6847 GB, free: 7.227 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005768/1.985, allocations: 337.6 kB / 0.685 GB, free: 6.879 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.779e-05/1.985, allocations: 108.8 kB / 0.6851 GB, free: 6.754 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.336e-05/1.985, allocations: 15.78 kB / 0.6851 GB, free: 6.738 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/1.985, allocations: 11.98 kB / 0.6851 GB, free: 6.727 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.863e-05/1.985, allocations: 11.98 kB / 0.6851 GB, free: 6.715 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.884e-06/1.985, allocations: 4 kB / 0.6851 GB, free: 6.711 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002212/1.985, allocations: 237.9 kB / 0.6854 GB, free: 6.484 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.985, allocations: 0 / 0.6854 GB, free: 6.484 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002998/1.988, allocations: 1.21 MB / 0.6866 GB, free: 5.273 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.004587/1.993, allocations: 1.829 MB / 0.6883 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000581/1.994, allocations: 261.4 kB / 0.6886 GB, free: 3.199 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/1.994, allocations: 0 / 0.6886 GB, free: 3.199 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002348/1.994, allocations: 92.88 kB / 0.6887 GB, free: 3.109 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007137/1.995, allocations: 128.8 kB / 0.6888 GB, free: 2.98 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007854/1.995, allocations: 0.6354 MB / 0.6894 GB, free: 2.316 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002734/1.996, allocations: 0.7751 MB / 0.6902 GB, free: 1.516 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.783e-05/1.996, allocations: 23.44 kB / 0.6902 GB, free: 1.492 MB / 0.5762 GB Notification: Performance of SimCode: time 2.51e-07/1.996, allocations: 0 / 0.6902 GB, free: 1.492 MB / 0.5762 GB Notification: Performance of Templates: time 0.1955/2.191, allocations: 25.36 MB / 0.715 GB, free: 219.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)