Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_Buildings_Utilities_Psychrometrics_Functions_Examples_pW_X",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X,fileNamePrefix="Buildings_9_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.0009808/0.0009806, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009193/0.0009192, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 223.2 MB / 239.9 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.475/2.475, allocations: 390.2 MB / 0.6653 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003521/0.0003521, allocations: 12 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7658/0.7662, allocations: 142.3 MB / 0.9536 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X): time 0.001385/0.7676, allocations: 0.976 MB / 0.9545 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005439/0.7682, allocations: 252.2 kB / 0.9548 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.402e-05/0.7682, allocations: 0 / 0.9548 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.425e-05/0.7682, allocations: 1.562 kB / 0.9548 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.321e-05/0.7683, allocations: 7.984 kB / 0.9548 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002813/0.7686, allocations: 50.95 kB / 0.9548 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.503e-05/0.7686, allocations: 10.33 kB / 0.9549 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.837e-05/0.7687, allocations: 1.344 kB / 0.9549 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.035e-05/0.7688, allocations: 6.922 kB / 0.9549 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.027e-05/0.7688, allocations: 16.02 kB / 0.9549 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.218e-05/0.7688, allocations: 0 / 0.9549 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001408/0.769, allocations: 54.95 kB / 0.9549 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.606e-06/0.769, allocations: 0 / 0.9549 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.446e-05/0.769, allocations: 31.95 kB / 0.955 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.7692, allocations: 33.75 kB / 0.955 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.7692, allocations: 0 / 0.955 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.286e-06/0.7692, allocations: 1.062 kB / 0.955 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.7692, allocations: 0 / 0.955 GB, free: 7.008 MB / 0.7169 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.0003618/0.7695, allocations: 336.4 kB / 0.9553 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 7.597e-05/0.7696, allocations: 9.375 kB / 0.9553 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.675e-05/0.7697, allocations: 39.84 kB / 0.9554 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002319/0.7699, allocations: 26.59 kB / 0.9554 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.88e-05/0.77, allocations: 164.3 kB / 0.9555 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.569e-05/0.77, allocations: 1.5 kB / 0.9555 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.457e-05/0.7701, allocations: 5.297 kB / 0.9555 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001422/0.7702, allocations: 39.41 kB / 0.9556 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.7702, allocations: 1.406 kB / 0.9556 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.7702, allocations: 3.953 kB / 0.9556 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.7702, allocations: 0 / 0.9556 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.103e-05/0.7703, allocations: 21.48 kB / 0.9556 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001537/0.7705, allocations: 158.2 kB / 0.9558 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00188/0.7724, allocations: 268.2 kB / 0.956 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.532e-05/0.7724, allocations: 9.281 kB / 0.956 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.008e-05/0.7724, allocations: 31.56 kB / 0.9561 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.142e-06/0.7724, allocations: 0 / 0.9561 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.000175/0.7726, allocations: 57.19 kB / 0.9561 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.109e-05/0.7726, allocations: 64.39 kB / 0.9562 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.815e-05/0.7727, allocations: 90.92 kB / 0.9563 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.052e-05/0.7727, allocations: 25.7 kB / 0.9563 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.766e-05/0.7727, allocations: 85.27 kB / 0.9564 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.978e-05/0.7728, allocations: 20.78 kB / 0.9564 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.519e-06/0.7728, allocations: 5 kB / 0.9564 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.382e-05/0.7728, allocations: 311.6 kB / 0.9567 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.249e-05/0.7729, allocations: 4.312 kB / 0.9567 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.846e-05/0.7729, allocations: 8.719 kB / 0.9567 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.013e-05/0.7729, allocations: 13.11 kB / 0.9567 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.7729, allocations: 0 / 0.9567 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.457e-05/0.773, allocations: 48.98 kB / 0.9568 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.7731, allocations: 13.45 kB / 0.9568 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.7731, allocations: 3.938 kB / 0.9568 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.7731, allocations: 1.375 kB / 0.9568 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.118e-05/0.7732, allocations: 8.125 kB / 0.9568 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.84e-06/0.7732, allocations: 1.219 kB / 0.9568 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.144e-05/0.7732, allocations: 5.359 kB / 0.9568 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.779e-06/0.7732, allocations: 0 / 0.9568 GB, free: 5.238 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.099e-05/0.7733, allocations: 112.6 kB / 0.9569 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.676e-06/0.7733, allocations: 1.281 kB / 0.9569 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.526e-05/0.7733, allocations: 11.5 kB / 0.9569 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.7733, allocations: 1 kB / 0.9569 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.7734, allocations: 3.984 kB / 0.9569 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.7734, allocations: 0 / 0.9569 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.567e-05/0.7735, allocations: 155 kB / 0.9571 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.7735, allocations: 8.25 kB / 0.9571 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.508e-05/0.7735, allocations: 5.531 kB / 0.9571 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.7735, allocations: 1.125 kB / 0.9571 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.7736, allocations: 0 / 0.9571 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.7736, allocations: 1.031 kB / 0.9571 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.7736, allocations: 8 kB / 0.9571 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001306/0.7737, allocations: 93.88 kB / 0.9572 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.07e-05/0.7738, allocations: 78.17 kB / 0.9572 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.71e-05/0.7738, allocations: 5.234 kB / 0.9573 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.452e-05/0.7739, allocations: 1.281 kB / 0.9573 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.936e-05/0.7739, allocations: 1.031 kB / 0.9573 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.592e-06/0.7739, allocations: 1.219 kB / 0.9573 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.742e-05/0.7739, allocations: 84.5 kB / 0.9573 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7739, allocations: 0 / 0.9573 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001892/0.7741, allocations: 5.562 kB / 0.9573 GB, free: 4.617 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003119/0.7745, allocations: 0.6181 MB / 0.9579 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.115e-05/0.7746, allocations: 18.38 kB / 0.958 GB, free: 4 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.7746, allocations: 5.156 kB / 0.958 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.659e-05/0.7746, allocations: 16.08 kB / 0.958 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001958/0.7748, allocations: 8.469 kB / 0.958 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003787/0.7752, allocations: 166.3 kB / 0.9582 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001094/0.7753, allocations: 0.6816 MB / 0.9588 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.748e-05/0.7754, allocations: 5.297 kB / 0.9588 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.023e-05/0.7754, allocations: 13.66 kB / 0.9588 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.7754, allocations: 0 / 0.9588 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01072/0.7861, allocations: 1.078 MB / 0.9599 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001521/0.7863, allocations: 203.8 kB / 0.9601 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.674/2.461, allocations: 0 / 0.9601 GB, free: 2.34 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.pipe ; mkfifo Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.pipe >> ../files/Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Psychrometrics_Functions_Examples_pW_X_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Psychrometrics_Functions_Examples_pW_X.fmu > Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X_res.mat does not exist to compare? outputFormat=mat