Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestAirHumidity.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.TestAirHumidity,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestAirHumidity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestAirHumidity,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestAirHumidity",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.8358/0.8358, allocations: 150.9 MB / 166.4 MB, free: 14.4 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003994/0.0003996, allocations: 19.97 kB / 204.6 MB, free: 9.652 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1825/0.183, allocations: 31.33 MB / 236 MB, free: 5.387 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.TestAirHumidity): time 1.673/1.856, allocations: 294.7 MB / 0.5182 GB, free: 13.3 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1666/2.023, allocations: 159.1 MB / 0.6737 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002637/2.023, allocations: 3.938 kB / 0.6737 GB, free: 13.84 MB / 0.5606 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/BoundaryConditions/SourcePQ.mo:18:3-19:83:writable] Warning: Connector C is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/BoundaryConditions/AirHumidity.mo:33:3-35:16:writable] Warning: Connector C1 is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/BoundaryConditions/AirHumidity.mo:42:3-43:83:writable] Warning: Connector C2 is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/PressureLosses/SingularPressureLoss.mo:18:3-20:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/PressureLosses/SingularPressureLoss.mo:21:3-23:37:writable] Warning: Connector C2 is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/FlueGases/BoundaryConditions/Sink.mo:15:3-17:16:writable] Warning: Connector C is not balanced: The number of potential variables (7) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004803/2.024, allocations: 108.5 kB / 0.6738 GB, free: 13.74 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003278/2.024, allocations: 91.19 kB / 0.6739 GB, free: 13.65 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.009497/2.033, allocations: 3.365 MB / 0.6771 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0005552/2.034, allocations: 371.1 kB / 0.6775 GB, free: 9.914 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003255/2.034, allocations: 184.1 kB / 0.6777 GB, free: 9.742 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002419/2.035, allocations: 151.5 kB / 0.6778 GB, free: 9.594 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000213/2.035, allocations: 159.3 kB / 0.678 GB, free: 9.438 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.524e-05/2.035, allocations: 36 kB / 0.678 GB, free: 9.402 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01322/2.048, allocations: 7.436 MB / 0.6853 GB, free: 1.957 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001154/2.048, allocations: 79.75 kB / 0.6853 GB, free: 1.879 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002427/2.048, allocations: 171.2 kB / 0.6855 GB, free: 1.711 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.006665/2.055, allocations: 3.489 MB / 0.6889 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/2.055, allocations: 0 / 0.6889 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.903e-06/2.055, allocations: 4 kB / 0.6889 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.142e-05/2.055, allocations: 0 / 0.6889 GB, free: 14.21 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.00226/2.057, allocations: 0.8273 MB / 0.6897 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/2.058, allocations: 8.031 kB / 0.6897 GB, free: 13.33 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001006/2.058, allocations: 82.7 kB / 0.6898 GB, free: 13.24 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.631e-05/2.058, allocations: 48.47 kB / 0.6899 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002815/2.058, allocations: 242.8 kB / 0.6901 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.159e-05/2.058, allocations: 29 kB / 0.6901 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.426e-05/2.058, allocations: 36 kB / 0.6901 GB, free: 12.85 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006393/2.059, allocations: 425.2 kB / 0.6906 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/2.059, allocations: 0 / 0.6906 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.191e-05/2.059, allocations: 16 kB / 0.6906 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/2.059, allocations: 8 kB / 0.6906 GB, free: 12.37 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004333/2.059, allocations: 242.3 kB / 0.6908 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00222/2.062, allocations: 2.127 MB / 0.6929 GB, free: 9.836 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005353/2.062, allocations: 178.8 kB / 0.6931 GB, free: 9.652 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002003/2.062, allocations: 96.81 kB / 0.6931 GB, free: 9.555 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01804/2.08, allocations: 8.523 MB / 0.7015 GB, free: 108 kB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.822e-05/2.08, allocations: 38.56 kB / 0.7015 GB, free: 60 kB / 0.5762 GB Notification: Performance of pre-optimization done (n=23): time 2.285e-06/2.08, allocations: 0 / 0.7015 GB, free: 60 kB / 0.5762 GB Notification: Performance of matching and sorting (n=23): time 0.1908/2.271, allocations: 486.1 kB / 0.702 GB, free: 234.6 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.257e-05/2.271, allocations: 51.41 kB / 0.702 GB, free: 234.5 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003367/2.272, allocations: 296.9 kB / 0.7023 GB, free: 234.4 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.433e-05/2.272, allocations: 29.67 kB / 0.7023 GB, free: 234.4 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.992e-05/2.272, allocations: 173.3 kB / 0.7025 GB, free: 234.3 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 4.851e-05/2.272, allocations: 74.8 kB / 0.7026 GB, free: 234.2 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.502e-05/2.272, allocations: 56.61 kB / 0.7026 GB, free: 234.2 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.502e-05/2.272, allocations: 337.3 kB / 0.7029 GB, free: 233.9 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/2.272, allocations: 65.12 kB / 0.703 GB, free: 233.9 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001611/2.272, allocations: 137 kB / 0.7031 GB, free: 233.8 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003062/2.273, allocations: 234.6 kB / 0.7034 GB, free: 233.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/2.273, allocations: 0 / 0.7034 GB, free: 233.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005603/2.273, allocations: 291.4 kB / 0.7036 GB, free: 233.7 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/2.273, allocations: 6.031 kB / 0.7036 GB, free: 233.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/2.273, allocations: 2.938 kB / 0.7036 GB, free: 233.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003769/2.274, allocations: 69.02 kB / 0.7037 GB, free: 233.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004143/2.274, allocations: 61.94 kB / 0.7038 GB, free: 233.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005271/2.275, allocations: 1.099 MB / 0.7048 GB, free: 232.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001773/2.275, allocations: 38.25 kB / 0.7049 GB, free: 232.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.214e-05/2.275, allocations: 8.344 kB / 0.7049 GB, free: 232.6 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 (sinkFlueGases.C.a,singularPressureLoss.C2.b,singularPressureLoss.C1.a,airHumidity.C2.b,airHumidity.C1.a,sourceFlueGasesPQ.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001367/2.275, allocations: 148.3 kB / 0.705 GB, free: 232.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.271e-05/2.275, allocations: 34.12 kB / 0.7051 GB, free: 232.5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004925/2.276, allocations: 255.6 kB / 0.7053 GB, free: 232.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/2.276, allocations: 2.156 kB / 0.7053 GB, free: 232.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/2.276, allocations: 1.5 kB / 0.7053 GB, free: 232.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/2.276, allocations: 6.031 kB / 0.7053 GB, free: 232.4 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009644/2.277, allocations: 0.6569 MB / 0.706 GB, free: 232.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/2.277, allocations: 1.156 kB / 0.706 GB, free: 232.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002445/2.277, allocations: 38.17 kB / 0.706 GB, free: 232.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002372/2.277, allocations: 57.16 kB / 0.706 GB, free: 232 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.811e-05/2.277, allocations: 13.28 kB / 0.7061 GB, free: 232 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004283/2.278, allocations: 1.086 MB / 0.7071 GB, free: 231 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/2.278, allocations: 7.031 kB / 0.7071 GB, free: 231 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004243/2.278, allocations: 348 kB / 0.7075 GB, free: 230.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.303e-05/2.278, allocations: 108.8 kB / 0.7076 GB, free: 230.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.644e-05/2.278, allocations: 2.375 kB / 0.7076 GB, free: 230.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/2.278, allocations: 11.5 kB / 0.7076 GB, free: 230.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.034e-05/2.278, allocations: 10.52 kB / 0.7076 GB, free: 230.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.327e-06/2.278, allocations: 3.344 kB / 0.7076 GB, free: 230.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001932/2.279, allocations: 206.3 kB / 0.7078 GB, free: 230.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.11e-07/2.279, allocations: 7.438 kB / 0.7078 GB, free: 230.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001357/2.28, allocations: 412.5 kB / 0.7082 GB, free: 230.6 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002528/2.282, allocations: 1.277 MB / 0.7094 GB, free: 229.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005496/2.283, allocations: 201.6 kB / 0.7096 GB, free: 229.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/2.283, allocations: 4.281 kB / 0.7096 GB, free: 229.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002394/2.283, allocations: 98.72 kB / 0.7097 GB, free: 229.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005544/2.284, allocations: 85 kB / 0.7098 GB, free: 229.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00387/2.288, allocations: 3.037 MB / 0.7128 GB, free: 228.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002198/2.288, allocations: 0.765 MB / 0.7135 GB, free: 227.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001571/2.288, allocations: 25.3 kB / 0.7135 GB, free: 227.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/2.288, allocations: 94.34 kB / 0.7136 GB, free: 227.6 MB / 0.5762 GB Notification: Performance of SimCode: time 2.1e-07/2.288, allocations: 0 / 0.7136 GB, free: 227.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04267/2.331, allocations: 18.26 MB / 0.7315 GB, free: 223.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/13.62, allocations: 7.016 kB / 0.7315 GB, free: 223.5 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestAirHumidity.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestAirHumidity.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestAirHumidity.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestAirHumidity.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestAirHumidity_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_TestAirHumidity.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestAirHumidity.pipe 2>&1)