Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Examples.SaturationPressureLiquid.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.Examples.SaturationPressureLiquid,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Psychrometrics_Examples_SaturationPressureLiquid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Psychrometrics.Examples.SaturationPressureLiquid,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Psychrometrics_Examples_SaturationPressureLiquid",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.004278/0.004278, allocations: 104 kB / 15.73 MB, free: 5.949 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.00113/0.00113, allocations: 192.3 kB / 16.67 MB, free: 5.871 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.226/1.226, 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.001998/0.001998, allocations: 294.6 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8955/0.8955, allocations: 169.3 MB / 0.4983 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001865/0.001865, allocations: 95.84 kB / 0.6809 GB, free: 7.461 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4153/0.4172, allocations: 86.97 MB / 0.7659 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Psychrometrics.Examples.SaturationPressureLiquid): time 0.003041/0.4203, allocations: 1.405 MB / 0.7673 GB, free: 2.445 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0005771/0.4209, allocations: 210.2 kB / 0.7675 GB, free: 2.242 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.928e-05/0.4209, allocations: 0 / 0.7675 GB, free: 2.242 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.484e-05/0.421, allocations: 3.938 kB / 0.7675 GB, free: 2.238 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.023e-05/0.4211, allocations: 11.98 kB / 0.7675 GB, free: 2.227 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002646/0.4214, allocations: 23.84 kB / 0.7675 GB, free: 2.203 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 9.054e-05/0.4215, allocations: 19.92 kB / 0.7675 GB, free: 2.184 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.4216, allocations: 8 kB / 0.7675 GB, free: 2.176 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 5.441e-05/0.4217, allocations: 11.97 kB / 0.7675 GB, free: 2.164 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.743e-05/0.4217, allocations: 11.94 kB / 0.7675 GB, free: 2.152 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.396e-05/0.4217, allocations: 0 / 0.7675 GB, free: 2.152 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001074/0.4218, allocations: 27.97 kB / 0.7676 GB, free: 2.125 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.599e-05/0.4219, allocations: 12 kB / 0.7676 GB, free: 2.113 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.496e-05/0.4219, allocations: 3.938 kB / 0.7676 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001358/0.422, allocations: 43.89 kB / 0.7676 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.4221, allocations: 0 / 0.7676 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.543e-06/0.4221, allocations: 0 / 0.7676 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.678e-06/0.4221, allocations: 0 / 0.7676 GB, free: 2.066 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004394/0.4225, allocations: 343.4 kB / 0.768 GB, free: 1.68 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.4226, allocations: 8.031 kB / 0.768 GB, free: 1.672 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.765e-05/0.4226, allocations: 34.69 kB / 0.768 GB, free: 1.629 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001137/0.4227, allocations: 16.92 kB / 0.768 GB, free: 1.613 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.4228, allocations: 160.4 kB / 0.7682 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.4229, allocations: 384 / 0.7682 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.204e-05/0.4229, allocations: 8.375 kB / 0.7682 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001667/0.4231, allocations: 54.16 kB / 0.7682 GB, free: 1.352 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.4231, allocations: 3.938 kB / 0.7682 GB, free: 1.348 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.4231, allocations: 4 kB / 0.7682 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.4231, allocations: 0 / 0.7682 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001588/0.4233, allocations: 39.95 kB / 0.7683 GB, free: 1.305 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003259/0.4236, allocations: 244.9 kB / 0.7685 GB, free: 1.016 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001223/0.4237, allocations: 46.42 kB / 0.7685 GB, free: 0.9609 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.394e-05/0.4238, allocations: 16.91 kB / 0.7686 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/0.4238, allocations: 4 kB / 0.7686 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.42e-05/0.4239, allocations: 34.56 kB / 0.7686 GB, free: 0.8945 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.4239, allocations: 3.938 kB / 0.7686 GB, free: 0.8906 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0003304/0.4242, allocations: 77.64 kB / 0.7687 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.68e-05/0.4243, allocations: 55.41 kB / 0.7687 GB, free: 0.7422 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.78e-05/0.4243, allocations: 102 kB / 0.7688 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.441e-05/0.4244, allocations: 33.64 kB / 0.7689 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 4.087e-05/0.4244, allocations: 80.14 kB / 0.7689 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.018e-05/0.4244, allocations: 7.844 kB / 0.7689 GB, free: 0.5039 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.798e-05/0.4245, allocations: 17.72 kB / 0.769 GB, free: 492 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.4246, allocations: 310.8 kB / 0.7693 GB, free: 172 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.761e-05/0.4247, allocations: 23.97 kB / 0.7693 GB, free: 148 kB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.366e-05/0.4248, allocations: 15.98 kB / 0.7693 GB, free: 132 kB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001395/0.4249, allocations: 36.83 kB / 0.7693 GB, free: 92 kB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.4249, allocations: 3.938 kB / 0.7693 GB, free: 88 kB / 0.5294 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001821/0.4251, allocations: 61.66 kB / 0.7694 GB, free: 20 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.4251, allocations: 8 kB / 0.7694 GB, free: 12 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.4252, allocations: 0 / 0.7694 GB, free: 12 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.4252, allocations: 4.094 kB / 0.7694 GB, free: 8 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/0.4253, allocations: 16.03 kB / 0.7694 GB, free: 15.99 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.4253, allocations: 4 kB / 0.7694 GB, free: 15.98 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.332e-05/0.4254, allocations: 7.984 kB / 0.7694 GB, free: 15.98 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.12e-06/0.4254, allocations: 0 / 0.7694 GB, free: 15.98 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 (2): * Single equations (assignments): 2 * 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 7.673e-05/0.4255, allocations: 109.8 kB / 0.7695 GB, free: 15.86 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.45e-05/0.4255, allocations: 4 kB / 0.7695 GB, free: 15.86 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002365/0.4257, allocations: 76.77 kB / 0.7696 GB, free: 15.78 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.4258, allocations: 4 kB / 0.7696 GB, free: 15.77 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.4258, allocations: 0 / 0.7696 GB, free: 15.77 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.4258, allocations: 0 / 0.7696 GB, free: 15.77 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00015/0.4259, allocations: 165.5 kB / 0.7698 GB, free: 15.56 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.4259, allocations: 0 / 0.7698 GB, free: 15.56 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.669e-05/0.426, allocations: 11.98 kB / 0.7698 GB, free: 15.55 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.426, allocations: 0 / 0.7698 GB, free: 15.55 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.426, allocations: 11.94 kB / 0.7698 GB, free: 15.54 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.426, allocations: 0 / 0.7698 GB, free: 15.54 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.426, allocations: 4 kB / 0.7698 GB, free: 15.54 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002206/0.4263, allocations: 167.5 kB / 0.77 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.843e-05/0.4263, allocations: 81.38 kB / 0.77 GB, free: 15.26 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.216e-05/0.4263, allocations: 3.828 kB / 0.77 GB, free: 15.26 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.608e-05/0.4264, allocations: 8 kB / 0.7701 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.094e-05/0.4265, allocations: 11.97 kB / 0.7701 GB, free: 15.24 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.4265, allocations: 0 / 0.7701 GB, free: 15.24 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.469e-05/0.4265, allocations: 79.28 kB / 0.7701 GB, free: 15.16 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4265, allocations: 0 / 0.7701 GB, free: 15.16 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002082/0.4267, allocations: 8 kB / 0.7701 GB, free: 15.15 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 (3): * Single equations (assignments): 3 * 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.0004472/0.4272, allocations: 0.7063 MB / 0.7708 GB, free: 14.42 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001868/0.4274, allocations: 35.97 kB / 0.7709 GB, free: 14.38 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.4274, allocations: 0 / 0.7709 GB, free: 14.38 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 7.941e-05/0.4275, allocations: 27.91 kB / 0.7709 GB, free: 14.36 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002588/0.4277, allocations: 1.75 kB / 0.7709 GB, free: 14.36 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004237/0.4282, allocations: 160.3 kB / 0.7711 GB, free: 14.16 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002173/0.4284, allocations: 0.6768 MB / 0.7717 GB, free: 13.45 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.774e-05/0.4284, allocations: 4 kB / 0.7717 GB, free: 13.45 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.559e-05/0.4285, allocations: 11.42 kB / 0.7717 GB, free: 13.44 MB / 0.545 GB Notification: Performance of SimCode: time 3.71e-07/0.4285, allocations: 0 / 0.7717 GB, free: 13.44 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01582/0.4443, allocations: 1.389 MB / 0.7731 GB, free: 12.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.042/7.487, allocations: 4.688 kB / 0.7731 GB, free: 12.2 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Examples.SaturationPressureLiquid.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Examples.SaturationPressureLiquid.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Examples.SaturationPressureLiquid.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Examples.SaturationPressureLiquid.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Psychrometrics_Examples_SaturationPressureLiquid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Psychrometrics_Examples_SaturationPressureLiquid.fmu > BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Examples.SaturationPressureLiquid.pipe 2>&1)