Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.SimpleExamples.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm") translateModel(ThermoSysPro.Examples.SimpleExamples.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8139/0.8139, allocations: 150.9 MB / 166.4 MB, free: 14.21 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003286/0.0003286, allocations: 19.97 kB / 204.5 MB, free: 9.617 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1342, allocations: 31.33 MB / 235.9 MB, free: 5.441 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.TestDiaphragm): time 1.553/1.687, allocations: 294.7 MB / 0.5181 GB, free: 13.32 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03934/1.726, allocations: 34.67 MB / 0.552 GB, free: 10.79 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00021/1.727, allocations: 0 / 0.552 GB, free: 10.79 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.0003277/1.727, allocations: 116.8 kB / 0.5521 GB, free: 10.68 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000185/1.727, allocations: 95.17 kB / 0.5522 GB, free: 10.58 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.023/1.75, allocations: 9.626 MB / 0.5616 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004741/1.751, allocations: 350.8 kB / 0.5619 GB, free: 0.6094 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001982/1.751, allocations: 126.9 kB / 0.562 GB, free: 496 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002126/1.751, allocations: 151.3 kB / 0.5622 GB, free: 344 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001511/1.751, allocations: 115.4 kB / 0.5623 GB, free: 228 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.009e-05/1.751, allocations: 20 kB / 0.5623 GB, free: 208 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02784/1.779, allocations: 17.74 MB / 0.5796 GB, free: 14.44 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.911e-05/1.779, allocations: 39.84 kB / 0.5797 GB, free: 14.4 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001787/1.779, allocations: 135.3 kB / 0.5798 GB, free: 14.27 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01691/1.796, allocations: 8.476 MB / 0.5881 GB, free: 5.77 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/1.796, allocations: 3.938 kB / 0.5881 GB, free: 5.766 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.512e-06/1.796, allocations: 4 kB / 0.5881 GB, free: 5.762 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/1.796, allocations: 0 / 0.5881 GB, free: 5.762 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.003434/1.8, allocations: 1.458 MB / 0.5895 GB, free: 4.254 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/1.8, allocations: 8.031 kB / 0.5895 GB, free: 4.246 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.238e-05/1.8, allocations: 31.62 kB / 0.5896 GB, free: 4.215 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002074/1.8, allocations: 223.3 kB / 0.5898 GB, free: 3.957 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.918e-05/1.8, allocations: 16.44 kB / 0.5898 GB, free: 3.938 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.139e-05/1.8, allocations: 19.94 kB / 0.5898 GB, free: 3.918 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004162/1.801, allocations: 321.1 kB / 0.5901 GB, free: 3.57 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/1.801, allocations: 3.938 kB / 0.5901 GB, free: 3.566 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.115e-05/1.801, allocations: 8 kB / 0.5901 GB, free: 3.559 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.389e-05/1.801, allocations: 14 kB / 0.5901 GB, free: 3.547 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002478/1.801, allocations: 177 kB / 0.5903 GB, free: 3.375 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.03768/1.839, allocations: 18.07 MB / 0.6079 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004426/1.839, allocations: 146.6 kB / 0.6081 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/1.839, allocations: 88.84 kB / 0.6082 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1588/1.998, allocations: 77.46 MB / 0.6838 GB, free: 8.934 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/1.998, allocations: 34.56 kB / 0.6839 GB, free: 8.891 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.014e-06/1.998, allocations: 0 / 0.6839 GB, free: 8.891 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.0008999/1.999, allocations: 419.4 kB / 0.6843 GB, free: 8.453 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.854e-05/1.999, allocations: 81.11 kB / 0.6843 GB, free: 8.355 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002327/1.999, allocations: 223.1 kB / 0.6845 GB, free: 8.129 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.813e-05/1.999, allocations: 25.7 kB / 0.6846 GB, free: 8.098 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/2, allocations: 152.4 kB / 0.6847 GB, free: 7.945 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.116e-05/2, allocations: 114.3 kB / 0.6848 GB, free: 7.832 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.381e-05/2, allocations: 49.7 kB / 0.6849 GB, free: 7.777 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001137/2, allocations: 334.8 kB / 0.6852 GB, free: 7.441 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/2, allocations: 79.91 kB / 0.6853 GB, free: 7.363 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001538/2, allocations: 130 kB / 0.6854 GB, free: 7.215 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002964/2, allocations: 229.2 kB / 0.6856 GB, free: 6.973 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/2, allocations: 4 kB / 0.6856 GB, free: 6.969 MB / 0.5762 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004618/2.001, allocations: 305.9 kB / 0.6859 GB, free: 6.66 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/2.001, allocations: 7.938 kB / 0.6859 GB, free: 6.652 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/2.001, allocations: 4 kB / 0.6859 GB, free: 6.648 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009807/2.002, allocations: 135.8 kB / 0.686 GB, free: 6.516 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.819e-05/2.002, allocations: 19.92 kB / 0.6861 GB, free: 6.496 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005318/2.003, allocations: 0.6161 MB / 0.6867 GB, free: 5.855 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001468/2.003, allocations: 31.61 kB / 0.6867 GB, free: 5.824 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.625e-05/2.003, allocations: 11.94 kB / 0.6867 GB, free: 5.812 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.0001266/2.003, allocations: 137.7 kB / 0.6868 GB, free: 5.668 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.915e-05/2.003, allocations: 19.72 kB / 0.6869 GB, free: 5.648 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009217/2.004, allocations: 0.6003 MB / 0.6874 GB, free: 4.977 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005567/2.004, allocations: 231.5 kB / 0.6877 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/2.004, allocations: 11.94 kB / 0.6877 GB, free: 4.73 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/2.004, allocations: 0 / 0.6877 GB, free: 4.73 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001114/2.006, allocations: 0.7398 MB / 0.6884 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/2.006, allocations: 4 kB / 0.6884 GB, free: 3.93 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.759e-05/2.006, allocations: 19.92 kB / 0.6884 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00036/2.006, allocations: 110.5 kB / 0.6885 GB, free: 3.801 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/2.006, allocations: 4 kB / 0.6885 GB, free: 3.797 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004896/2.007, allocations: 0.6395 MB / 0.6892 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/2.007, allocations: 0 / 0.6892 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006233/2.007, allocations: 348.9 kB / 0.6895 GB, free: 2.773 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.191e-05/2.007, allocations: 104.8 kB / 0.6896 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.939e-05/2.007, allocations: 23.83 kB / 0.6896 GB, free: 2.629 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001277/2.008, allocations: 4 kB / 0.6896 GB, free: 2.625 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.797e-05/2.008, allocations: 11.98 kB / 0.6896 GB, free: 2.613 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/2.008, allocations: 4 kB / 0.6896 GB, free: 2.609 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000234/2.008, allocations: 237.9 kB / 0.6899 GB, free: 2.379 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.4e-07/2.008, allocations: 0 / 0.6899 GB, free: 2.379 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002883/2.011, allocations: 1.214 MB / 0.691 GB, free: 1.164 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.147/2.158, allocations: 1.747 MB / 0.6927 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007169/2.159, allocations: 257.2 kB / 0.693 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/2.159, allocations: 1.344 kB / 0.693 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002691/2.159, allocations: 102 kB / 0.6931 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007889/2.16, allocations: 127.4 kB / 0.6932 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008344/2.16, allocations: 0.5055 MB / 0.6937 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001836/2.161, allocations: 0.7704 MB / 0.6945 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001338/2.161, allocations: 25.02 kB / 0.6945 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.453e-05/2.161, allocations: 27.34 kB / 0.6945 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of SimCode: time 2.4e-07/2.161, allocations: 0 / 0.6945 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.04647/2.207, allocations: 42.94 MB / 0.7364 GB, free: 204.9 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.pipe 2>&1)