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.7929/0.7929, allocations: 150.9 MB / 166.5 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003277/0.0003277, allocations: 17.47 kB / 236.6 MB, free: 1.996 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05092/0.05126, allocations: 31.36 MB / 268 MB, free: 7.531 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.TestAirHumidity): time 1.582/1.633, allocations: 294.8 MB / 0.5496 GB, free: 12.98 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1681/1.801, allocations: 159.1 MB / 0.705 GB, free: 13.22 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00023/1.802, allocations: 4 kB / 0.705 GB, free: 13.21 MB / 0.5919 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.0004818/1.802, allocations: 131.3 kB / 0.7051 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002992/1.803, allocations: 99.19 kB / 0.7052 GB, free: 12.99 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.008733/1.811, allocations: 3.388 MB / 0.7085 GB, free: 9.605 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0005004/1.812, allocations: 367.1 kB / 0.7089 GB, free: 9.246 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003094/1.812, allocations: 196.1 kB / 0.7091 GB, free: 9.051 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002225/1.812, allocations: 155.4 kB / 0.7092 GB, free: 8.898 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002104/1.813, allocations: 163.2 kB / 0.7094 GB, free: 8.738 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.535e-05/1.813, allocations: 32 kB / 0.7094 GB, free: 8.707 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01274/1.825, allocations: 7.592 MB / 0.7168 GB, free: 1.105 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001146/1.826, allocations: 75.77 kB / 0.7169 GB, free: 1.031 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000214/1.826, allocations: 175.2 kB / 0.7171 GB, free: 0.8594 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.3258/2.152, allocations: 3.475 MB / 0.7204 GB, free: 9.625 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/2.152, allocations: 0 / 0.7204 GB, free: 9.625 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.885e-06/2.152, allocations: 1.734 kB / 0.7204 GB, free: 9.625 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.638e-05/2.152, allocations: 0.9844 kB / 0.7204 GB, free: 9.625 MB / 0.5919 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.003032/2.155, allocations: 0.8456 MB / 0.7213 GB, free: 9.086 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/2.155, allocations: 10.31 kB / 0.7213 GB, free: 9.086 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.177e-05/2.155, allocations: 78.11 kB / 0.7214 GB, free: 9.047 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.595e-05/2.155, allocations: 42.05 kB / 0.7214 GB, free: 9.027 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002318/2.155, allocations: 247.8 kB / 0.7216 GB, free: 8.809 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.542e-05/2.155, allocations: 30.03 kB / 0.7217 GB, free: 8.809 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.199e-05/2.155, allocations: 35.44 kB / 0.7217 GB, free: 8.809 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006348/2.156, allocations: 426.6 kB / 0.7221 GB, free: 8.68 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/2.156, allocations: 1.594 kB / 0.7221 GB, free: 8.68 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.993e-05/2.156, allocations: 14.88 kB / 0.7221 GB, free: 8.68 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.641e-05/2.156, allocations: 11.23 kB / 0.7221 GB, free: 8.68 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004275/2.156, allocations: 247.1 kB / 0.7224 GB, free: 8.676 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001945/2.158, allocations: 2.128 MB / 0.7244 GB, free: 7.078 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005344/2.159, allocations: 175.7 kB / 0.7246 GB, free: 7.055 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002019/2.159, allocations: 98.98 kB / 0.7247 GB, free: 7.047 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01837/2.178, allocations: 8.568 MB / 0.7331 GB, free: 18.35 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.437e-05/2.178, allocations: 36.09 kB / 0.7331 GB, free: 18.31 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=23): time 1.904e-06/2.178, allocations: 2.094 kB / 0.7331 GB, free: 18.31 MB / 0.6075 GB Notification: Performance of matching and sorting (n=23): time 0.001056/2.179, allocations: 499.2 kB / 0.7336 GB, free: 18.05 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.565e-05/2.179, allocations: 57.12 kB / 0.7336 GB, free: 17.99 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003304/2.179, allocations: 289.7 kB / 0.7339 GB, free: 17.88 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/2.179, allocations: 27.77 kB / 0.7339 GB, free: 17.85 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/2.179, allocations: 180 kB / 0.7341 GB, free: 17.73 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.504e-05/2.179, allocations: 83.06 kB / 0.7342 GB, free: 17.68 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.404e-05/2.179, allocations: 49.83 kB / 0.7342 GB, free: 17.66 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001234/2.179, allocations: 341 kB / 0.7346 GB, free: 17.34 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/2.18, allocations: 67.14 kB / 0.7346 GB, free: 17.34 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001454/2.18, allocations: 139 kB / 0.7348 GB, free: 17.26 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002671/2.18, allocations: 215.4 kB / 0.735 GB, free: 17.18 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/2.18, allocations: 0 / 0.735 GB, free: 17.18 MB / 0.6075 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004474/2.18, allocations: 295.1 kB / 0.7352 GB, free: 17.12 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/2.181, allocations: 6.875 kB / 0.7353 GB, free: 17.12 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/2.181, allocations: 2.406 kB / 0.7353 GB, free: 17.12 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003106/2.181, allocations: 77.45 kB / 0.7353 GB, free: 17.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003836/2.181, allocations: 58.48 kB / 0.7354 GB, free: 17.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006672/2.182, allocations: 1.098 MB / 0.7365 GB, free: 16.06 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001661/2.182, allocations: 42.31 kB / 0.7365 GB, free: 16.04 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.655e-05/2.182, allocations: 8.688 kB / 0.7365 GB, free: 16.04 MB / 0.6075 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.000147/2.182, allocations: 154.5 kB / 0.7367 GB, free: 15.92 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.729e-05/2.182, allocations: 32.67 kB / 0.7367 GB, free: 15.9 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004557/2.183, allocations: 254 kB / 0.7369 GB, free: 15.84 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/2.183, allocations: 3.875 kB / 0.7369 GB, free: 15.84 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/2.183, allocations: 0 / 0.7369 GB, free: 15.84 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/2.183, allocations: 9.797 kB / 0.7369 GB, free: 15.83 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000918/2.184, allocations: 0.6589 MB / 0.7376 GB, free: 15.48 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/2.184, allocations: 2.594 kB / 0.7376 GB, free: 15.48 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002176/2.184, allocations: 33.67 kB / 0.7376 GB, free: 15.48 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002057/2.184, allocations: 62.53 kB / 0.7377 GB, free: 15.47 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/2.184, allocations: 4.906 kB / 0.7377 GB, free: 15.47 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000597/2.185, allocations: 1.09 MB / 0.7388 GB, free: 14.43 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/2.185, allocations: 2.781 kB / 0.7388 GB, free: 14.43 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000387/2.185, allocations: 351.9 kB / 0.7391 GB, free: 14.25 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.844e-05/2.185, allocations: 113.7 kB / 0.7392 GB, free: 14.13 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.085e-05/2.185, allocations: 2.672 kB / 0.7392 GB, free: 14.13 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/2.185, allocations: 7.969 kB / 0.7392 GB, free: 14.13 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.736e-05/2.186, allocations: 13.36 kB / 0.7392 GB, free: 14.13 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/2.186, allocations: 9.438 kB / 0.7392 GB, free: 14.13 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001612/2.186, allocations: 201 kB / 0.7394 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of sort global known variables: time 7.72e-07/2.186, allocations: 4.031 kB / 0.7394 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001782/2.187, allocations: 419.5 kB / 0.7398 GB, free: 14.02 MB / 0.6075 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.003278/2.191, allocations: 1.283 MB / 0.7411 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004644/2.191, allocations: 194.3 kB / 0.7413 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/2.191, allocations: 0.5625 kB / 0.7413 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001934/2.191, allocations: 107.3 kB / 0.7414 GB, free: 13.24 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004929/2.192, allocations: 79.34 kB / 0.7414 GB, free: 13.24 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004089/2.196, allocations: 3.035 MB / 0.7444 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/2.196, allocations: 0.766 MB / 0.7452 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0001145/2.197, allocations: 22.48 kB / 0.7452 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.691e-05/2.197, allocations: 95.12 kB / 0.7453 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of SimCode: time 3e-07/2.197, allocations: 4 kB / 0.7453 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03927/2.236, allocations: 18.36 MB / 0.7632 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/14.15, allocations: 24.09 kB / 0.7632 GB, free: 9.566 MB / 0.6075 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)