Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX,fileNamePrefix="Buildings_9_Buildings_Utilities_Psychrometrics_Functions_Examples_phi_pTX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX,fileNamePrefix="Buildings_9_Buildings_Utilities_Psychrometrics_Functions_Examples_phi_pTX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.927/1.927, allocations: 387.1 MB / 399.7 MB, free: 9.492 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009325/0.0009326, allocations: 168.9 kB / 492.3 MB, free: 0.6289 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.218/1.218, allocations: 221.3 MB / 0.7871 GB, free: 12.99 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007329/0.0007328, allocations: 100.8 kB / 0.9267 GB, free: 14.05 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.24e-05/2.242e-05, allocations: 7.984 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1941/0.1941, allocations: 142.3 MB / 1.212 GB, free: 38.47 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6588/0.8529, allocations: 150.9 MB / 1.36 GB, free: 19.08 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001766/0.8531, allocations: 80.14 kB / 1.36 GB, free: 19.08 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.007288/0.8604, allocations: 2.704 MB / 1.363 GB, free: 34.64 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.282e-06/0.8605, allocations: 0 / 1.363 GB, free: 34.64 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.102e-06/0.8605, allocations: 0 / 1.363 GB, free: 34.64 MB / 0.8386 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.0002655/0.8607, allocations: 359.8 kB / 1.363 GB, free: 34.28 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.8608, allocations: 7.688 kB / 1.363 GB, free: 34.28 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.272e-05/0.8608, allocations: 34.94 kB / 1.363 GB, free: 34.24 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.777e-05/0.8609, allocations: 4.75 kB / 1.363 GB, free: 34.24 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.358e-05/0.8609, allocations: 172.1 kB / 1.363 GB, free: 34.03 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.24e-05/0.861, allocations: 34.94 kB / 1.363 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.127e-06/0.861, allocations: 0 / 1.363 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.199e-05/0.8611, allocations: 39.88 kB / 1.363 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.8611, allocations: 0 / 1.363 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.8612, allocations: 2.562 kB / 1.363 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.8612, allocations: 3.875 kB / 1.363 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.623e-05/0.8612, allocations: 16.56 kB / 1.363 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001221/0.8613, allocations: 160.6 kB / 1.363 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001571/0.8615, allocations: 46.53 kB / 1.363 GB, free: 33.74 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.607e-05/0.8615, allocations: 11.86 kB / 1.363 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002066/0.8618, allocations: 181.8 kB / 1.364 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.394e-05/0.8618, allocations: 38.05 kB / 1.364 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.8618, allocations: 4 kB / 1.364 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of matching and sorting (n=4): time 0.0001139/0.8619, allocations: 48.3 kB / 1.364 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.06e-05/0.8619, allocations: 55.28 kB / 1.364 GB, free: 33.4 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.349e-05/0.862, allocations: 94.06 kB / 1.364 GB, free: 33.31 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.804e-06/0.862, allocations: 25.7 kB / 1.364 GB, free: 33.28 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.376e-05/0.862, allocations: 84.08 kB / 1.364 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.938e-05/0.8621, allocations: 13.16 kB / 1.364 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-06/0.8621, allocations: 0 / 1.364 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 6.251e-05/0.8621, allocations: 321.8 kB / 1.364 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.546e-05/0.8622, allocations: 9.031 kB / 1.364 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.162e-05/0.8622, allocations: 7.188 kB / 1.364 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.884e-05/0.8622, allocations: 5.25 kB / 1.364 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.8622, allocations: 0 / 1.364 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.213e-05/0.8623, allocations: 56.02 kB / 1.364 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.062e-05/0.8623, allocations: 3.812 kB / 1.364 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.8623, allocations: 0 / 1.364 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.417e-06/0.8623, allocations: 3.906 kB / 1.364 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.873e-05/0.8624, allocations: 5.266 kB / 1.364 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.8624, allocations: 0 / 1.364 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.882e-05/0.8624, allocations: 9.234 kB / 1.364 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.859e-06/0.8624, allocations: 0 / 1.364 GB, free: 32.82 MB / 0.8386 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 () * 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 4.387e-05/0.8625, allocations: 110.4 kB / 1.364 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.857e-06/0.8625, allocations: 4.984 kB / 1.364 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.734e-05/0.8626, allocations: 60.83 kB / 1.364 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.8626, allocations: 7.875 kB / 1.365 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.8626, allocations: 1.312 kB / 1.365 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.8626, allocations: 0 / 1.365 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.275e-05/0.8627, allocations: 164.7 kB / 1.365 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.8627, allocations: 0 / 1.365 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.245e-05/0.8627, allocations: 8.969 kB / 1.365 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.8627, allocations: 0 / 1.365 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-06/0.8627, allocations: 4 kB / 1.365 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.8628, allocations: 1.781 kB / 1.365 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.8628, allocations: 0 / 1.365 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.879e-05/0.8628, allocations: 78.27 kB / 1.365 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.244e-05/0.8629, allocations: 84.06 kB / 1.365 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.018e-05/0.8629, allocations: 4 kB / 1.365 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.587e-05/0.8629, allocations: 5.234 kB / 1.365 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.955e-05/0.863, allocations: 1.312 kB / 1.365 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.521e-06/0.863, allocations: 3.953 kB / 1.365 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 2.944e-05/0.863, allocations: 87.84 kB / 1.365 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/0.863, allocations: 0 / 1.365 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002096/0.8632, allocations: 40.12 kB / 1.365 GB, free: 32.21 MB / 0.8386 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 () * 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.0003338/0.8636, allocations: 0.6623 MB / 1.366 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.043e-05/0.8637, allocations: 27.95 kB / 1.366 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.8637, allocations: 0 / 1.366 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.204e-05/0.8637, allocations: 7.719 kB / 1.366 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001258/0.8638, allocations: 12.38 kB / 1.366 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002236/0.8641, allocations: 110.7 kB / 1.366 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001762/0.8643, allocations: 0.6848 MB / 1.366 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.319e-05/0.8643, allocations: 6.266 kB / 1.366 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.235e-05/0.8643, allocations: 15.16 kB / 1.366 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/0.8643, allocations: 4 kB / 1.366 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01073/0.8751, allocations: 1.622 MB / 1.368 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001277/0.8752, allocations: 169.9 kB / 1.368 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.417/2.292, allocations: 4 kB / 1.368 GB, free: 30.33 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe ; mkfifo Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe >> ../files/Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Psychrometrics_Functions_Examples_phi_pTX_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Psychrometrics_Functions_Examples_phi_pTX.fmu > Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.phi_pTX_res.mat does not exist to compare? outputFormat=mat