Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.Average.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.Math.Examples.Average,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Average",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.001215/0.001215, allocations: 92.23 kB / 15.06 MB, free: 1.098 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.001601/0.001601, allocations: 172.7 kB / 15.95 MB, free: 208 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.423/1.423, allocations: 223.3 MB / 240 MB, free: 5.434 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.347/2.347, allocations: 390.4 MB / 0.6655 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000411/0.0004111, allocations: 19.98 kB / 0.8149 GB, free: 14.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6924/0.6929, allocations: 142.3 MB / 0.9538 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001432/0.6943, allocations: 1.238 MB / 0.9551 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002735/0.6946, allocations: 104 kB / 0.9552 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.507e-05/0.6947, allocations: 0 / 0.9552 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.609e-05/0.6948, allocations: 9.672 kB / 0.9552 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.614e-05/0.6948, allocations: 13.2 kB / 0.9552 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001666/0.695, allocations: 19.64 kB / 0.9552 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.734e-05/0.6951, allocations: 50.5 kB / 0.9552 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.833e-05/0.6952, allocations: 18.36 kB / 0.9553 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.752e-05/0.6952, allocations: 16.11 kB / 0.9553 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.27e-05/0.6953, allocations: 31.62 kB / 0.9553 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.323e-05/0.6953, allocations: 1.719 kB / 0.9553 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.718e-05/0.6954, allocations: 8.594 kB / 0.9553 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.699e-05/0.6954, allocations: 15.56 kB / 0.9553 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.387e-05/0.6954, allocations: 36.8 kB / 0.9554 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.019e-05/0.6955, allocations: 44.33 kB / 0.9554 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.6955, allocations: 0 / 0.9554 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.613e-06/0.6955, allocations: 0.9375 kB / 0.9554 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.326e-06/0.6956, allocations: 0 / 0.9554 GB, free: 6.828 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004012/0.696, allocations: 383.9 kB / 0.9558 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.696, allocations: 9.312 kB / 0.9558 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.131e-05/0.696, allocations: 40.8 kB / 0.9558 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.394e-05/0.6961, allocations: 7.531 kB / 0.9558 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001103/0.6962, allocations: 181.2 kB / 0.956 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.971e-06/0.6962, allocations: 2.844 kB / 0.956 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.328e-05/0.6962, allocations: 6.812 kB / 0.956 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002588/0.6965, allocations: 96.83 kB / 0.9561 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.6965, allocations: 0.875 kB / 0.9561 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.6965, allocations: 3.953 kB / 0.9561 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.6965, allocations: 1.062 kB / 0.9561 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002963/0.6968, allocations: 105.7 kB / 0.9562 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004445/0.6973, allocations: 345.9 kB / 0.9565 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00019/0.6975, allocations: 75.47 kB / 0.9566 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001473/0.6976, allocations: 58.47 kB / 0.9567 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.222e-05/0.6977, allocations: 1.438 kB / 0.9567 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.299e-05/0.6977, allocations: 31.56 kB / 0.9567 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.6977, allocations: 0 / 0.9567 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005205/0.6982, allocations: 179.5 kB / 0.9569 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.426e-05/0.6983, allocations: 52.47 kB / 0.9569 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.719e-05/0.6983, allocations: 110.1 kB / 0.957 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.217e-06/0.6983, allocations: 34.94 kB / 0.9571 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.988e-05/0.6984, allocations: 86.39 kB / 0.9571 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.796e-05/0.6984, allocations: 13.03 kB / 0.9572 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.208e-06/0.6984, allocations: 1.219 kB / 0.9572 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.408e-05/0.6985, allocations: 324 kB / 0.9575 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001507/0.6986, allocations: 48.62 kB / 0.9575 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001497/0.6988, allocations: 52.48 kB / 0.9576 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001385/0.6989, allocations: 43.8 kB / 0.9576 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.6989, allocations: 0 / 0.9576 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003134/0.6993, allocations: 127.6 kB / 0.9577 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.6993, allocations: 6.031 kB / 0.9577 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.6993, allocations: 0 / 0.9577 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.6993, allocations: 4 kB / 0.9577 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.6994, allocations: 23.72 kB / 0.9578 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.6994, allocations: 1.031 kB / 0.9578 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.537e-05/0.6995, allocations: 15.67 kB / 0.9578 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.732e-05/0.6995, allocations: 0.9688 kB / 0.9578 GB, free: 4.746 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 (3): * Single equations (assignments): 3 * 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 5.485e-05/0.6996, allocations: 122.1 kB / 0.9579 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.764e-05/0.6996, allocations: 10.05 kB / 0.9579 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003465/0.7, allocations: 135.8 kB / 0.958 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.7, allocations: 0 / 0.958 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.7, allocations: 1.312 kB / 0.958 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.7, allocations: 0 / 0.958 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001306/0.7002, allocations: 173.6 kB / 0.9582 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.7002, allocations: 4.875 kB / 0.9582 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.602e-05/0.7003, allocations: 22.86 kB / 0.9582 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.7003, allocations: 9.188 kB / 0.9582 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.7003, allocations: 4 kB / 0.9582 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.7003, allocations: 1.375 kB / 0.9582 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.7003, allocations: 0 / 0.9582 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000324/0.7006, allocations: 227 kB / 0.9585 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.638e-05/0.7007, allocations: 78.39 kB / 0.9585 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.54e-05/0.7007, allocations: 7.953 kB / 0.9585 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.7008, allocations: 19.98 kB / 0.9586 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.598e-05/0.7008, allocations: 6.547 kB / 0.9586 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.155e-06/0.7008, allocations: 1.344 kB / 0.9586 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.234e-05/0.7009, allocations: 87.44 kB / 0.9586 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7009, allocations: 0 / 0.9586 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002404/0.7011, allocations: 13.33 kB / 0.9587 GB, free: 3.926 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 (3): * Single equations (assignments): 3 * 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.0005007/0.7016, allocations: 0.7641 MB / 0.9594 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003123/0.702, allocations: 94.39 kB / 0.9595 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.702, allocations: 0 / 0.9595 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001539/0.7021, allocations: 53.16 kB / 0.9595 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002784/0.7024, allocations: 16.42 kB / 0.9596 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.7034, allocations: 0.5755 MB / 0.9601 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001055/0.7036, allocations: 0.6891 MB / 0.9608 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.847e-05/0.7036, allocations: 8.359 kB / 0.9608 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.552e-05/0.7036, allocations: 14.19 kB / 0.9608 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.7037, allocations: 4 kB / 0.9608 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01138/0.715, allocations: 1.466 MB / 0.9623 GB, free: 1.281 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001302/0.7152, allocations: 174 kB / 0.9624 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.723/2.438, allocations: 0 / 0.9624 GB, free: 1.043 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Examples.Average_res.mat does not exist to compare? outputFormat=mat