Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: translateModel(Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|X_w|phi",fileNamePrefix="Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX") translateModel(Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|X_w|phi",fileNamePrefix="Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009147/0.0009147, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 179.3 kB / 16.92 MB, free: 6.652 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.49/1.49, allocations: 223.3 MB / 241 MB, free: 5.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.671/2.671, allocations: 443.2 MB / 0.7181 GB, free: 1.516 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000349/0.000349, allocations: 14.7 kB / 0.8801 GB, free: 42.19 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3596/0.36, allocations: 155.1 MB / 1.032 GB, free: 4.73 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX): time 0.001665/0.3617, allocations: 1.003 MB / 1.033 GB, free: 3.719 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001446/0.3632, allocations: 0.8308 MB / 1.033 GB, free: 2.883 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.849e-05/0.3632, allocations: 4 kB / 1.033 GB, free: 2.879 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.335e-05/0.3632, allocations: 3.938 kB / 1.033 GB, free: 2.875 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.203e-05/0.3633, allocations: 0 / 1.033 GB, free: 2.875 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004235/0.3637, allocations: 107.5 kB / 1.034 GB, free: 2.77 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.95e-05/0.3638, allocations: 23.92 kB / 1.034 GB, free: 2.746 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.556e-05/0.3639, allocations: 7.984 kB / 1.034 GB, free: 2.738 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.339e-05/0.3639, allocations: 15.92 kB / 1.034 GB, free: 2.723 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.257e-05/0.364, allocations: 8 kB / 1.034 GB, free: 2.715 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.285e-05/0.364, allocations: 0 / 1.034 GB, free: 2.715 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003241/0.3643, allocations: 179.7 kB / 1.034 GB, free: 2.539 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.668e-05/0.3643, allocations: 7.922 kB / 1.034 GB, free: 2.531 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.271e-05/0.3644, allocations: 29.7 kB / 1.034 GB, free: 2.496 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001745/0.3646, allocations: 88.06 kB / 1.034 GB, free: 2.41 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3646, allocations: 0 / 1.034 GB, free: 2.41 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.753e-06/0.3646, allocations: 0 / 1.034 GB, free: 2.41 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.222e-06/0.3646, allocations: 4 kB / 1.034 GB, free: 2.406 MB / 0.7794 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.0004508/0.3651, allocations: 359.4 kB / 1.034 GB, free: 2.004 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.3651, allocations: 8.031 kB / 1.034 GB, free: 1.996 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.025e-05/0.3652, allocations: 4.922 kB / 1.034 GB, free: 1.992 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001262/0.3653, allocations: 172.3 kB / 1.034 GB, free: 1.785 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.496e-05/0.3654, allocations: 30.2 kB / 1.034 GB, free: 1.75 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.007e-05/0.3654, allocations: 4.375 kB / 1.034 GB, free: 1.746 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001403/0.3655, allocations: 42.25 kB / 1.034 GB, free: 1.699 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.964e-06/0.3656, allocations: 3.938 kB / 1.034 GB, free: 1.695 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/0.3656, allocations: 0 / 1.034 GB, free: 1.695 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.3656, allocations: 4 kB / 1.034 GB, free: 1.691 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001044/0.3657, allocations: 19.98 kB / 1.034 GB, free: 1.672 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001769/0.3659, allocations: 161.6 kB / 1.035 GB, free: 1.465 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002171/0.3661, allocations: 54.53 kB / 1.035 GB, free: 1.402 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.917e-05/0.3662, allocations: 16.86 kB / 1.035 GB, free: 1.383 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002912/0.3665, allocations: 182.3 kB / 1.035 GB, free: 1.168 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.371e-05/0.3665, allocations: 30.56 kB / 1.035 GB, free: 1.129 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 3.476e-06/0.3665, allocations: 0 / 1.035 GB, free: 1.129 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0002623/0.3668, allocations: 73.55 kB / 1.035 GB, free: 1.051 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.658e-05/0.3668, allocations: 55.34 kB / 1.035 GB, free: 0.9844 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.202e-05/0.3669, allocations: 101.8 kB / 1.035 GB, free: 0.875 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/0.3669, allocations: 29.7 kB / 1.035 GB, free: 0.8398 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.336e-05/0.367, allocations: 80.14 kB / 1.035 GB, free: 0.7578 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.804e-05/0.367, allocations: 11.81 kB / 1.035 GB, free: 0.7461 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.03e-05/0.367, allocations: 13.72 kB / 1.035 GB, free: 0.7266 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.3672, allocations: 310.8 kB / 1.036 GB, free: 424 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.833e-05/0.3672, allocations: 11.98 kB / 1.036 GB, free: 412 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.974e-05/0.3673, allocations: 11.98 kB / 1.036 GB, free: 400 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.257e-05/0.3674, allocations: 24.86 kB / 1.036 GB, free: 372 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3674, allocations: 0 / 1.036 GB, free: 372 kB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001344/0.3675, allocations: 66.08 kB / 1.036 GB, free: 300 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.3675, allocations: 7.938 kB / 1.036 GB, free: 292 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.3675, allocations: 0 / 1.036 GB, free: 292 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.03e-05/0.3676, allocations: 0 / 1.036 GB, free: 292 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.099e-05/0.3676, allocations: 8.047 kB / 1.036 GB, free: 284 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.3676, allocations: 0 / 1.036 GB, free: 284 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.521e-05/0.3677, allocations: 15.91 kB / 1.036 GB, free: 268 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-06/0.3677, allocations: 4 kB / 1.036 GB, free: 264 kB / 0.7794 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 8.809e-05/0.3678, allocations: 113.8 kB / 1.036 GB, free: 140 kB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.19e-05/0.3678, allocations: 7.938 kB / 1.036 GB, free: 132 kB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001802/0.368, allocations: 65.11 kB / 1.036 GB, free: 52 kB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.368, allocations: 0 / 1.036 GB, free: 52 kB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.368, allocations: 4 kB / 1.036 GB, free: 48 kB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.368, allocations: 0 / 1.036 GB, free: 48 kB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001357/0.3682, allocations: 157.6 kB / 1.036 GB, free: 15.84 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3682, allocations: 0 / 1.036 GB, free: 15.84 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.777e-05/0.3682, allocations: 15.98 kB / 1.036 GB, free: 15.83 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.3682, allocations: 7.875 kB / 1.036 GB, free: 15.82 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.663e-06/0.3682, allocations: 0 / 1.036 GB, free: 15.82 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3682, allocations: 0 / 1.036 GB, free: 15.82 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.3683, allocations: 0 / 1.036 GB, free: 15.82 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000166/0.3684, allocations: 81.11 kB / 1.036 GB, free: 15.72 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.465e-05/0.3685, allocations: 81.11 kB / 1.036 GB, free: 15.62 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.642e-05/0.3685, allocations: 7.938 kB / 1.036 GB, free: 15.62 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.009e-05/0.3686, allocations: 11.92 kB / 1.036 GB, free: 15.61 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.823e-05/0.3686, allocations: 4 kB / 1.036 GB, free: 15.6 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.188e-06/0.3686, allocations: 3.938 kB / 1.036 GB, free: 15.6 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.24e-05/0.3687, allocations: 79.28 kB / 1.036 GB, free: 15.52 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3687, allocations: 0 / 1.036 GB, free: 15.52 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002349/0.3689, allocations: 43.92 kB / 1.036 GB, free: 15.48 MB / 0.795 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.0002334/0.3692, allocations: 131.2 kB / 1.036 GB, free: 15.34 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001494/0.3693, allocations: 27.98 kB / 1.037 GB, free: 15.31 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3693, allocations: 0 / 1.037 GB, free: 15.31 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 5.476e-05/0.3694, allocations: 16 kB / 1.037 GB, free: 15.3 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002328/0.3696, allocations: 13.98 kB / 1.037 GB, free: 15.29 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003042/0.3699, allocations: 156.3 kB / 1.037 GB, free: 15.1 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00026/0.3702, allocations: 0.6809 MB / 1.037 GB, free: 14.39 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.515e-05/0.3702, allocations: 15.44 kB / 1.037 GB, free: 14.38 MB / 0.795 GB Notification: Performance of SimCode: time 3.41e-07/0.3702, allocations: 0 / 1.037 GB, free: 14.38 MB / 0.795 GB Notification: Performance of Templates: time 0.002499/0.3727, allocations: 0.9906 MB / 1.038 GB, free: 13.39 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.makefile (rm -f Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe >> ../files/Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.sim & ./Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Psychrometrics_Functions_Examples_phi_pTX.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches