Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X,fileNamePrefix="Buildings_latest_Buildings_Utilities_Psychrometrics_Functions_Examples_pW_X",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X,fileNamePrefix="Buildings_latest_Buildings_Utilities_Psychrometrics_Functions_Examples_pW_X",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.007517/0.007517, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001757/0.001757, allocations: 201.5 kB / 16.68 MB, free: 5.969 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.442/1.442, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.022/3.022, allocations: 482.4 MB / 0.7548 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 67.89 kB / 1.083 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3517/0.3537, allocations: 162.2 MB / 1.241 GB, free: 10.26 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X): time 0.002365/0.3561, allocations: 1.27 MB / 1.243 GB, free: 8.977 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0005849/0.3567, allocations: 275.1 kB / 1.243 GB, free: 8.707 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.155e-05/0.3567, allocations: 0 / 1.243 GB, free: 8.707 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.131e-05/0.3568, allocations: 0 / 1.243 GB, free: 8.707 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.24e-05/0.3568, allocations: 15.86 kB / 1.243 GB, free: 8.691 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002911/0.3571, allocations: 59.69 kB / 1.243 GB, free: 8.633 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 6.43e-05/0.3572, allocations: 15.92 kB / 1.243 GB, free: 8.617 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.08e-05/0.3572, allocations: 4 kB / 1.243 GB, free: 8.613 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.265e-05/0.3573, allocations: 15.88 kB / 1.243 GB, free: 8.598 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.739e-05/0.3573, allocations: 3.984 kB / 1.243 GB, free: 8.594 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.033e-05/0.3574, allocations: 7.938 kB / 1.243 GB, free: 8.586 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001367/0.3575, allocations: 55.94 kB / 1.243 GB, free: 8.531 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.007e-05/0.3575, allocations: 0 / 1.243 GB, free: 8.531 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.137e-05/0.3575, allocations: 4 kB / 1.243 GB, free: 8.527 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001446/0.3577, allocations: 51.83 kB / 1.243 GB, free: 8.477 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.3577, allocations: 4 kB / 1.243 GB, free: 8.473 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.182e-06/0.3577, allocations: 0 / 1.243 GB, free: 8.473 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.847e-06/0.3577, allocations: 0 / 1.243 GB, free: 8.473 MB / 0.9981 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.0003934/0.3581, allocations: 335.4 kB / 1.244 GB, free: 8.094 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.3582, allocations: 16.02 kB / 1.244 GB, free: 8.078 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.199e-05/0.3582, allocations: 30.75 kB / 1.244 GB, free: 8.039 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002041/0.3584, allocations: 16.92 kB / 1.244 GB, free: 8.023 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001184/0.3585, allocations: 160.4 kB / 1.244 GB, free: 7.828 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.538e-06/0.3586, allocations: 4.375 kB / 1.244 GB, free: 7.824 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.428e-06/0.3586, allocations: 4.375 kB / 1.244 GB, free: 7.82 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001193/0.3587, allocations: 46.23 kB / 1.244 GB, free: 7.77 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.3587, allocations: 7.875 kB / 1.244 GB, free: 7.762 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.3587, allocations: 4 kB / 1.244 GB, free: 7.758 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.3587, allocations: 0 / 1.244 GB, free: 7.758 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.923e-05/0.3588, allocations: 16 kB / 1.244 GB, free: 7.742 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001733/0.359, allocations: 153.7 kB / 1.244 GB, free: 7.543 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001863/0.3608, allocations: 270.5 kB / 1.244 GB, free: 7.27 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.687e-05/0.3609, allocations: 20.84 kB / 1.244 GB, free: 7.246 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.043e-05/0.3609, allocations: 0 / 1.244 GB, free: 7.246 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/0.361, allocations: 38.5 kB / 1.244 GB, free: 7.199 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=4): time 9.32e-07/0.361, allocations: 3.938 kB / 1.244 GB, free: 7.195 MB / 0.9981 GB Notification: Performance of matching and sorting (n=4): time 0.0001639/0.3611, allocations: 69.58 kB / 1.244 GB, free: 7.121 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.482e-05/0.3612, allocations: 51.41 kB / 1.244 GB, free: 7.059 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.591e-05/0.3613, allocations: 93.86 kB / 1.244 GB, free: 6.957 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.107e-05/0.3613, allocations: 29.7 kB / 1.245 GB, free: 6.922 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.738e-05/0.3613, allocations: 80.14 kB / 1.245 GB, free: 6.84 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.698e-05/0.3614, allocations: 16 kB / 1.245 GB, free: 6.824 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.767e-05/0.3614, allocations: 21.67 kB / 1.245 GB, free: 6.797 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.3615, allocations: 314.8 kB / 1.245 GB, free: 6.48 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.209e-05/0.3616, allocations: 8 kB / 1.245 GB, free: 6.473 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.778e-05/0.3616, allocations: 7.984 kB / 1.245 GB, free: 6.465 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.524e-05/0.3617, allocations: 33.06 kB / 1.245 GB, free: 6.43 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3617, allocations: 0 / 1.245 GB, free: 6.43 MB / 0.9981 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.664e-05/0.3618, allocations: 53.69 kB / 1.245 GB, free: 6.371 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.3618, allocations: 7.938 kB / 1.245 GB, free: 6.363 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.3618, allocations: 7.938 kB / 1.245 GB, free: 6.355 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.3618, allocations: 0 / 1.245 GB, free: 6.355 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.703e-05/0.3619, allocations: 8 kB / 1.245 GB, free: 6.348 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.3619, allocations: 4 kB / 1.245 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.862e-05/0.3619, allocations: 0 / 1.245 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.038e-06/0.3619, allocations: 0 / 1.245 GB, free: 6.344 MB / 0.9981 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 7.955e-05/0.362, allocations: 106.4 kB / 1.245 GB, free: 6.23 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.24e-05/0.362, allocations: 15.86 kB / 1.245 GB, free: 6.215 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.228e-05/0.3621, allocations: 11.5 kB / 1.245 GB, free: 6.199 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.3621, allocations: 0 / 1.245 GB, free: 6.199 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.3621, allocations: 0 / 1.245 GB, free: 6.199 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.3621, allocations: 0 / 1.245 GB, free: 6.199 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001283/0.3622, allocations: 157.7 kB / 1.245 GB, free: 5.996 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.3622, allocations: 0 / 1.245 GB, free: 5.996 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.43e-05/0.3623, allocations: 4 kB / 1.245 GB, free: 5.992 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.3623, allocations: 3.938 kB / 1.245 GB, free: 5.988 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.3623, allocations: 4 kB / 1.245 GB, free: 5.984 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.3623, allocations: 0 / 1.245 GB, free: 5.984 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3623, allocations: 7.938 kB / 1.245 GB, free: 5.977 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001119/0.3624, allocations: 77.12 kB / 1.245 GB, free: 5.883 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.771e-05/0.3625, allocations: 85.05 kB / 1.245 GB, free: 5.781 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.314e-05/0.3625, allocations: 3.938 kB / 1.246 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.355e-05/0.3626, allocations: 4 kB / 1.246 GB, free: 5.773 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.687e-05/0.3626, allocations: 7.938 kB / 1.246 GB, free: 5.766 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.812e-06/0.3626, allocations: 4 kB / 1.246 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.441e-05/0.3627, allocations: 79.28 kB / 1.246 GB, free: 5.684 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3627, allocations: 4.094 kB / 1.246 GB, free: 5.68 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001915/0.3629, allocations: 4 kB / 1.246 GB, free: 5.676 MB / 0.9981 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.0004267/0.3633, allocations: 0.6163 MB / 1.246 GB, free: 5.027 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 9.311e-05/0.3634, allocations: 27.92 kB / 1.246 GB, free: 5 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3634, allocations: 0 / 1.246 GB, free: 5 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 2.384e-05/0.3634, allocations: 16 kB / 1.246 GB, free: 4.984 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002317/0.3637, allocations: 13.55 kB / 1.246 GB, free: 4.973 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004073/0.3641, allocations: 156.1 kB / 1.246 GB, free: 4.777 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.3644, allocations: 0.6729 MB / 1.247 GB, free: 4.078 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 4.243e-05/0.3645, allocations: 4.328 kB / 1.247 GB, free: 4.074 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.697e-05/0.3645, allocations: 15.38 kB / 1.247 GB, free: 4.059 MB / 0.9981 GB Notification: Performance of SimCode: time 2.3e-07/0.3645, allocations: 0 / 1.247 GB, free: 4.059 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02244/0.3869, allocations: 1.326 MB / 1.248 GB, free: 2.84 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.71/8.097, allocations: 7.344 kB / 1.248 GB, free: 2.836 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.pipe >> ../files/Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Psychrometrics_Functions_Examples_pW_X.fmu > Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Psychrometrics_Functions_Examples_pW_X.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches