Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.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.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve",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.8391/0.8391, allocations: 150.9 MB / 166.4 MB, free: 14.19 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003545/0.0003545, allocations: 15.97 kB / 204.6 MB, free: 9.512 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1706/0.171, allocations: 31.32 MB / 236 MB, free: 5.438 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.TestControlValve): time 1.604/1.775, allocations: 294.7 MB / 0.5182 GB, free: 13.3 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03665/1.811, allocations: 34.75 MB / 0.5521 GB, free: 10.68 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002147/1.812, allocations: 8 kB / 0.5521 GB, free: 10.67 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/ControlValve.mo:45:3-47:43: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/ControlValve.mo:48:3-50:38: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.0004819/1.812, allocations: 159.2 kB / 0.5523 GB, free: 10.52 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002198/1.812, allocations: 151 kB / 0.5524 GB, free: 10.37 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.02269/1.835, allocations: 9.74 MB / 0.562 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005167/1.836, allocations: 386.3 kB / 0.5623 GB, free: 256 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002015/1.836, allocations: 131.1 kB / 0.5625 GB, free: 128 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002359/1.836, allocations: 167.3 kB / 0.5626 GB, free: 15.96 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001909/1.836, allocations: 163.4 kB / 0.5628 GB, free: 15.8 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.071e-05/1.836, allocations: 27.94 kB / 0.5628 GB, free: 15.77 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02801/1.864, allocations: 17.74 MB / 0.5801 GB, free: 14.01 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001459/1.864, allocations: 71.77 kB / 0.5802 GB, free: 13.94 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002215/1.865, allocations: 163 kB / 0.5803 GB, free: 13.78 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02405/1.889, allocations: 8.538 MB / 0.5887 GB, free: 5.219 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/1.889, allocations: 0 / 0.5887 GB, free: 5.219 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.904e-06/1.889, allocations: 0 / 0.5887 GB, free: 5.219 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.418e-06/1.889, allocations: 0 / 0.5887 GB, free: 5.219 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.004096/1.893, allocations: 1.524 MB / 0.5902 GB, free: 3.645 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/1.893, allocations: 8.031 kB / 0.5902 GB, free: 3.637 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.014e-05/1.893, allocations: 62.53 kB / 0.5902 GB, free: 3.566 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.392e-05/1.893, allocations: 47.38 kB / 0.5903 GB, free: 3.52 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003033/1.893, allocations: 286.1 kB / 0.5906 GB, free: 3.203 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.008e-05/1.893, allocations: 12.44 kB / 0.5906 GB, free: 3.191 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.731e-05/1.894, allocations: 27.98 kB / 0.5906 GB, free: 3.164 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004012/1.894, allocations: 315.4 kB / 0.5909 GB, free: 2.824 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/1.894, allocations: 0 / 0.5909 GB, free: 2.824 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.508e-05/1.894, allocations: 15.94 kB / 0.5909 GB, free: 2.809 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.693e-05/1.894, allocations: 19.92 kB / 0.5909 GB, free: 2.789 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002624/1.894, allocations: 201 kB / 0.5911 GB, free: 2.594 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.03651/1.931, allocations: 18.11 MB / 0.6088 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002197/1.931, allocations: 142.5 kB / 0.6089 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/1.931, allocations: 100.8 kB / 0.609 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1533/2.084, allocations: 77.28 MB / 0.6845 GB, free: 8.305 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/2.085, allocations: 38.56 kB / 0.6845 GB, free: 8.258 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 3.606e-06/2.085, allocations: 1.641 kB / 0.6845 GB, free: 8.258 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001246/2.086, allocations: 0.4914 MB / 0.685 GB, free: 7.738 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/2.086, allocations: 59.34 kB / 0.6851 GB, free: 7.668 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003877/2.086, allocations: 348.5 kB / 0.6854 GB, free: 7.324 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.28e-05/2.086, allocations: 29.7 kB / 0.6854 GB, free: 7.289 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/2.086, allocations: 196.3 kB / 0.6856 GB, free: 7.09 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.919e-05/2.086, allocations: 106.3 kB / 0.6857 GB, free: 6.984 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.865e-05/2.087, allocations: 49.69 kB / 0.6858 GB, free: 6.93 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001199/2.087, allocations: 346.8 kB / 0.6861 GB, free: 6.582 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001154/2.087, allocations: 87.97 kB / 0.6862 GB, free: 6.496 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/2.087, allocations: 140.2 kB / 0.6863 GB, free: 6.344 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000275/2.087, allocations: 252.5 kB / 0.6866 GB, free: 6.082 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/2.087, allocations: 4 kB / 0.6866 GB, free: 6.078 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004715/2.088, allocations: 337.5 kB / 0.6869 GB, free: 5.738 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/2.088, allocations: 11.94 kB / 0.6869 GB, free: 5.727 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/2.088, allocations: 0 / 0.6869 GB, free: 5.727 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008165/2.089, allocations: 142.8 kB / 0.687 GB, free: 5.586 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.964e-05/2.089, allocations: 8 kB / 0.6871 GB, free: 5.578 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005133/2.089, allocations: 0.6225 MB / 0.6877 GB, free: 4.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001269/2.089, allocations: 31.56 kB / 0.6877 GB, free: 4.898 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.474e-05/2.089, allocations: 8 kB / 0.6877 GB, free: 4.891 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (ControlValve.C2.b,ControlValve.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 (13): * Single equations (assignments): 10 * 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.0001466/2.09, allocations: 161.8 kB / 0.6879 GB, free: 4.723 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.017e-05/2.09, allocations: 27.62 kB / 0.6879 GB, free: 4.695 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007631/2.09, allocations: 0.6523 MB / 0.6885 GB, free: 3.969 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003921/2.091, allocations: 251.5 kB / 0.6888 GB, free: 3.715 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/2.091, allocations: 3.938 kB / 0.6888 GB, free: 3.711 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.401e-06/2.091, allocations: 0 / 0.6888 GB, free: 3.711 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/2.092, allocations: 0.8432 MB / 0.6896 GB, free: 2.812 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.125e-06/2.092, allocations: 0 / 0.6896 GB, free: 2.812 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.496e-05/2.092, allocations: 19.94 kB / 0.6896 GB, free: 2.793 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003348/2.092, allocations: 104.8 kB / 0.6897 GB, free: 2.688 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.63e-05/2.092, allocations: 8 kB / 0.6897 GB, free: 2.68 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004574/2.093, allocations: 0.6304 MB / 0.6903 GB, free: 2.023 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/2.093, allocations: 3.938 kB / 0.6903 GB, free: 2.02 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004913/2.093, allocations: 383.8 kB / 0.6907 GB, free: 1.625 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/2.093, allocations: 124.6 kB / 0.6908 GB, free: 1.484 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.864e-05/2.093, allocations: 11.84 kB / 0.6908 GB, free: 1.473 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/2.094, allocations: 12 kB / 0.6908 GB, free: 1.461 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.555e-05/2.094, allocations: 7.984 kB / 0.6908 GB, free: 1.453 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/2.094, allocations: 4 kB / 0.6908 GB, free: 1.449 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00035/2.094, allocations: 335.1 kB / 0.6912 GB, free: 1.121 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.9e-07/2.094, allocations: 0 / 0.6912 GB, free: 1.121 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.1812/2.275, allocations: 1.198 MB / 0.6923 GB, free: 226 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.006213/2.281, allocations: 2.561 MB / 0.6948 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006799/2.282, allocations: 292.5 kB / 0.6951 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/2.282, allocations: 0.5312 kB / 0.6951 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000271/2.282, allocations: 121.9 kB / 0.6952 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007639/2.283, allocations: 133.6 kB / 0.6954 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004553/2.288, allocations: 3.699 MB / 0.699 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002359/2.288, allocations: 0.8105 MB / 0.6998 GB, free: 223.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001259/2.288, allocations: 33.34 kB / 0.6998 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/2.288, allocations: 128.1 kB / 0.6999 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of SimCode: time 6.21e-07/2.288, allocations: 0 / 0.6999 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07232/2.361, allocations: 49.13 MB / 0.7479 GB, free: 194.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/14.66, allocations: 12.91 kB / 0.7479 GB, free: 194.4 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve_res.csv --start-time 0 --stop-time 80 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.032 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)