Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Psychrometrics_Functions_Examples_phi_pTX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Psychrometrics_Functions_Examples_phi_pTX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007975/0.007976, allocations: 99.81 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001451/0.001452, allocations: 195.2 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002235/0.002235, allocations: 292.1 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9763/0.9763, allocations: 169.3 MB / 0.4983 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001949/0.001949, allocations: 96.06 kB / 0.681 GB, free: 7.477 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4707/0.4727, allocations: 86.98 MB / 0.7659 GB, free: 3.852 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX): time 0.002416/0.4752, allocations: 1.261 MB / 0.7671 GB, free: 2.582 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001277/0.4765, allocations: 0.8358 MB / 0.768 GB, free: 1.742 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.29e-05/0.4765, allocations: 0 / 0.768 GB, free: 1.742 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.633e-05/0.4765, allocations: 0 / 0.768 GB, free: 1.742 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.581e-05/0.4766, allocations: 3.938 kB / 0.768 GB, free: 1.738 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005217/0.4771, allocations: 131.4 kB / 0.7681 GB, free: 1.609 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.986e-05/0.4772, allocations: 23.91 kB / 0.7681 GB, free: 1.586 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.37e-05/0.4773, allocations: 8 kB / 0.7681 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.395e-05/0.4773, allocations: 7.938 kB / 0.7681 GB, free: 1.57 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 6.235e-05/0.4774, allocations: 11.92 kB / 0.7681 GB, free: 1.559 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.652e-05/0.4774, allocations: 4 kB / 0.7681 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003242/0.4777, allocations: 167.8 kB / 0.7683 GB, free: 1.391 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.831e-05/0.4777, allocations: 7.984 kB / 0.7683 GB, free: 1.383 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.793e-05/0.4778, allocations: 11.94 kB / 0.7683 GB, free: 1.371 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002335/0.478, allocations: 116.7 kB / 0.7684 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.478, allocations: 8 kB / 0.7684 GB, free: 1.258 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.064e-06/0.478, allocations: 0 / 0.7684 GB, free: 1.258 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.929e-06/0.4781, allocations: 0 / 0.7684 GB, free: 1.258 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004524/0.4785, allocations: 367.2 kB / 0.7688 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.4786, allocations: 8.031 kB / 0.7688 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.576e-05/0.4786, allocations: 38.67 kB / 0.7688 GB, free: 0.793 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.368e-05/0.4786, allocations: 4.938 kB / 0.7688 GB, free: 0.7891 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001049/0.4787, allocations: 164.3 kB / 0.769 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.194e-05/0.4788, allocations: 30.27 kB / 0.769 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.207e-05/0.4788, allocations: 8.312 kB / 0.769 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001482/0.479, allocations: 49.98 kB / 0.7691 GB, free: 0.4922 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.479, allocations: 0 / 0.7691 GB, free: 0.4922 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.298e-05/0.479, allocations: 8 kB / 0.7691 GB, free: 496 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.479, allocations: 4 kB / 0.7691 GB, free: 492 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.263e-05/0.4791, allocations: 11.98 kB / 0.7691 GB, free: 480 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001599/0.4793, allocations: 161.7 kB / 0.7693 GB, free: 268 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002011/0.4795, allocations: 46.5 kB / 0.7693 GB, free: 212 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.696e-05/0.4796, allocations: 16.86 kB / 0.7693 GB, free: 192 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002714/0.4799, allocations: 178.3 kB / 0.7695 GB, free: 15.98 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.982e-05/0.4799, allocations: 34.5 kB / 0.7695 GB, free: 15.93 MB / 0.545 GB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.4799, allocations: 0 / 0.7695 GB, free: 15.93 MB / 0.545 GB Notification: Performance of matching and sorting (n=4): time 0.0002484/0.4801, allocations: 73.61 kB / 0.7696 GB, free: 15.86 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.829e-05/0.4802, allocations: 51.41 kB / 0.7696 GB, free: 15.79 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.661e-05/0.4802, allocations: 106 kB / 0.7697 GB, free: 15.68 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.4803, allocations: 25.7 kB / 0.7698 GB, free: 15.65 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.303e-05/0.4803, allocations: 80.14 kB / 0.7698 GB, free: 15.57 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.554e-05/0.4803, allocations: 19.84 kB / 0.7699 GB, free: 15.55 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.096e-05/0.4804, allocations: 17.7 kB / 0.7699 GB, free: 15.52 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.038e-05/0.4805, allocations: 318.8 kB / 0.7702 GB, free: 15.2 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.698e-05/0.4805, allocations: 4 kB / 0.7702 GB, free: 15.2 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.094e-05/0.4806, allocations: 12.17 kB / 0.7702 GB, free: 15.19 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.689e-05/0.4807, allocations: 32.92 kB / 0.7702 GB, free: 15.15 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.4807, allocations: 0 / 0.7702 GB, free: 15.15 MB / 0.545 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001323/0.4808, allocations: 61.62 kB / 0.7703 GB, free: 15.09 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.4808, allocations: 7.938 kB / 0.7703 GB, free: 15.08 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.4808, allocations: 0 / 0.7703 GB, free: 15.08 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.4809, allocations: 4 kB / 0.7703 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.585e-05/0.4809, allocations: 11.98 kB / 0.7703 GB, free: 15.06 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.4809, allocations: 0 / 0.7703 GB, free: 15.06 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.953e-05/0.481, allocations: 0 / 0.7703 GB, free: 15.06 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.862e-06/0.481, allocations: 4 kB / 0.7703 GB, free: 15.06 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.883e-05/0.481, allocations: 108.2 kB / 0.7704 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.649e-05/0.4811, allocations: 11.89 kB / 0.7704 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001716/0.4812, allocations: 77.09 kB / 0.7705 GB, free: 14.85 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.4812, allocations: 0 / 0.7705 GB, free: 14.85 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.4813, allocations: 7.938 kB / 0.7705 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.4813, allocations: 3.984 kB / 0.7705 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.434e-05/0.4814, allocations: 157.7 kB / 0.7707 GB, free: 14.64 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.4814, allocations: 0 / 0.7707 GB, free: 14.64 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.647e-05/0.4814, allocations: 8 kB / 0.7707 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.337e-06/0.4814, allocations: 3.938 kB / 0.7707 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.971e-06/0.4814, allocations: 0 / 0.7707 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.4814, allocations: 0 / 0.7707 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.4815, allocations: 0 / 0.7707 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001449/0.4816, allocations: 85.11 kB / 0.7708 GB, free: 14.52 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.547e-05/0.4817, allocations: 89 kB / 0.7708 GB, free: 14.42 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.273e-05/0.4817, allocations: 3.984 kB / 0.7708 GB, free: 14.41 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.906e-05/0.4817, allocations: 0 / 0.7708 GB, free: 14.41 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.67e-05/0.4818, allocations: 15.94 kB / 0.7709 GB, free: 14.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/0.4818, allocations: 0 / 0.7709 GB, free: 14.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.187e-05/0.4818, allocations: 83.27 kB / 0.7709 GB, free: 14.32 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4818, allocations: 4 kB / 0.7709 GB, free: 14.31 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002235/0.4821, allocations: 31.88 kB / 0.771 GB, free: 14.28 MB / 0.545 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004768/0.4825, allocations: 0.6593 MB / 0.7716 GB, free: 13.59 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001401/0.4827, allocations: 31.92 kB / 0.7717 GB, free: 13.56 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.4827, allocations: 0 / 0.7717 GB, free: 13.56 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 5.669e-05/0.4828, allocations: 24.06 kB / 0.7717 GB, free: 13.54 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002283/0.483, allocations: 4.562 kB / 0.7717 GB, free: 13.53 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003784/0.4834, allocations: 164.7 kB / 0.7718 GB, free: 13.33 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000185/0.4836, allocations: 0.6767 MB / 0.7725 GB, free: 12.62 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.843e-05/0.4836, allocations: 11.98 kB / 0.7725 GB, free: 12.61 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.918e-05/0.4837, allocations: 15.38 kB / 0.7725 GB, free: 12.6 MB / 0.545 GB Notification: Performance of SimCode: time 2.2e-07/0.4837, allocations: 0 / 0.7725 GB, free: 12.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01696/0.5006, allocations: 1.957 MB / 0.7744 GB, free: 10.79 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.36/7.861, allocations: 16.5 kB / 0.7745 GB, free: 10.77 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Psychrometrics_Functions_Examples_phi_pTX.fmu > BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe 2>&1)