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: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8746/0.8746, allocations: 150.9 MB / 166.5 MB, free: 14.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003121/0.0003121, allocations: 19.7 kB / 236.6 MB, free: 2.008 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07159/0.07193, allocations: 31.34 MB / 267.9 MB, free: 7.535 MB / 222.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.871/1.943, allocations: 294.8 MB / 0.5495 GB, free: 12.74 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04359/1.987, allocations: 34.68 MB / 0.5834 GB, free: 9.93 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003607/1.987, allocations: 4 kB / 0.5834 GB, free: 9.926 MB / 478.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.0004412/1.988, allocations: 131.4 kB / 0.5835 GB, free: 9.797 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002426/1.988, allocations: 115.2 kB / 0.5836 GB, free: 9.684 MB / 478.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.02897/2.017, allocations: 9.806 MB / 0.5932 GB, free: 15.86 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006726/2.018, allocations: 358.9 kB / 0.5935 GB, free: 15.51 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002224/2.018, allocations: 116.6 kB / 0.5937 GB, free: 15.4 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002315/2.018, allocations: 151.3 kB / 0.5938 GB, free: 15.25 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001728/2.018, allocations: 115.4 kB / 0.5939 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.811e-05/2.018, allocations: 20 kB / 0.5939 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03411/2.052, allocations: 17.96 MB / 0.6115 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001607/2.053, allocations: 51.83 kB / 0.6115 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002962/2.053, allocations: 135.3 kB / 0.6116 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.029/2.082, allocations: 8.485 MB / 0.6199 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 9.348e-06/2.082, allocations: 7.984 kB / 0.6199 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.663e-06/2.082, allocations: 0 / 0.6199 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.372e-05/2.082, allocations: 0 / 0.6199 GB, free: 4.438 MB / 0.4981 GB 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.004534/2.087, allocations: 1.498 MB / 0.6214 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/2.087, allocations: 16.03 kB / 0.6214 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.109e-05/2.087, allocations: 62.53 kB / 0.6215 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.494e-05/2.087, allocations: 27.81 kB / 0.6215 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002441/2.087, allocations: 239.9 kB / 0.6217 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.876e-05/2.087, allocations: 16.44 kB / 0.6218 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.743e-05/2.087, allocations: 16 kB / 0.6218 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004413/2.087, allocations: 321 kB / 0.6221 GB, free: 2.117 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/2.088, allocations: 7.938 kB / 0.6221 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.115e-05/2.088, allocations: 11.94 kB / 0.6221 GB, free: 2.098 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.414e-05/2.088, allocations: 12 kB / 0.6221 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002561/2.088, allocations: 173.1 kB / 0.6223 GB, free: 1.918 MB / 0.4981 GB 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.03698/2.125, allocations: 18.17 MB / 0.64 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004876/2.125, allocations: 150.5 kB / 0.6402 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001332/2.125, allocations: 88.78 kB / 0.6402 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3734/2.499, allocations: 77.92 MB / 0.7163 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.324e-05/2.499, allocations: 34.02 kB / 0.7164 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 3.046e-06/2.499, allocations: 0 / 0.7164 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.001268/2.5, allocations: 430.2 kB / 0.7168 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.184e-05/2.5, allocations: 82.42 kB / 0.7169 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002952/2.501, allocations: 220.8 kB / 0.7171 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/2.501, allocations: 25.7 kB / 0.7171 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.936e-05/2.501, allocations: 164 kB / 0.7172 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.292e-05/2.501, allocations: 113.7 kB / 0.7174 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.418e-05/2.501, allocations: 55.31 kB / 0.7174 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.895e-05/2.501, allocations: 331 kB / 0.7177 GB, free: 211 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001405/2.501, allocations: 76.52 kB / 0.7178 GB, free: 211 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/2.501, allocations: 134.9 kB / 0.7179 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003344/2.502, allocations: 222.3 kB / 0.7181 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/2.502, allocations: 2.719 kB / 0.7181 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005839/2.502, allocations: 314.8 kB / 0.7184 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/2.502, allocations: 5.531 kB / 0.7184 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.407e-06/2.502, allocations: 2.75 kB / 0.7184 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00122/2.504, allocations: 137.5 kB / 0.7186 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/2.504, allocations: 18.33 kB / 0.7186 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000618/2.504, allocations: 0.6126 MB / 0.7192 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002441/2.505, allocations: 36.48 kB / 0.7192 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/2.505, allocations: 5.344 kB / 0.7192 GB, free: 210.3 MB / 0.5919 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.0001617/2.505, allocations: 136 kB / 0.7194 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.888e-05/2.505, allocations: 21.11 kB / 0.7194 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001213/2.506, allocations: 0.6097 MB / 0.72 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0007483/2.507, allocations: 228.6 kB / 0.7202 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/2.507, allocations: 0.5 kB / 0.7202 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/2.507, allocations: 0 / 0.7202 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001614/2.509, allocations: 0.7352 MB / 0.7209 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/2.509, allocations: 3.312 kB / 0.7209 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/2.509, allocations: 18.28 kB / 0.7209 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005339/2.509, allocations: 112.9 kB / 0.721 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/2.509, allocations: 4.359 kB / 0.721 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005525/2.51, allocations: 0.6462 MB / 0.7217 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/2.51, allocations: 2.844 kB / 0.7217 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008473/2.511, allocations: 347 kB / 0.722 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001237/2.511, allocations: 114.7 kB / 0.7221 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.434e-05/2.511, allocations: 12.73 kB / 0.7221 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002326/2.511, allocations: 2.594 kB / 0.7221 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.923e-05/2.511, allocations: 7.609 kB / 0.7221 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/2.511, allocations: 10.28 kB / 0.7222 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003268/2.512, allocations: 234.7 kB / 0.7224 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.61e-07/2.512, allocations: 0.75 kB / 0.7224 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.004263/2.516, allocations: 1.229 MB / 0.7236 GB, free: 208.6 MB / 0.5919 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.008969/2.525, allocations: 2.561 MB / 0.7261 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0008561/2.526, allocations: 261.8 kB / 0.7263 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/2.526, allocations: 0 / 0.7263 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003855/2.526, allocations: 95.72 kB / 0.7264 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001193/2.527, allocations: 129.4 kB / 0.7265 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006848/2.534, allocations: 3.097 MB / 0.7296 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000306/2.535, allocations: 0.7652 MB / 0.7303 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001893/2.535, allocations: 24.53 kB / 0.7303 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001605/2.535, allocations: 97.25 kB / 0.7304 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of SimCode: time 8.22e-07/2.535, allocations: 0 / 0.7304 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08089/2.616, allocations: 48.22 MB / 0.7775 GB, free: 169.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.1/15.72, allocations: 16.33 kB / 0.7775 GB, free: 169.5 MB / 0.5919 GB (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 & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.pipe 2>&1)