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.001097/0.001097, allocations: 99.55 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.001255/0.001256, 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.373/1.373, allocations: 223.2 MB / 239.9 MB, free: 5.375 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.317/2.317, allocations: 390.3 MB / 0.6653 GB, free: 3.012 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004866/0.0004867, allocations: 16 kB / 0.8146 GB, free: 14.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6738/0.6743, allocations: 142.3 MB / 0.9536 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001418/0.6757, allocations: 1.23 MB / 0.9548 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002648/0.676, allocations: 117.3 kB / 0.9549 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.259e-05/0.6761, allocations: 1.125 kB / 0.9549 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001014/0.6762, allocations: 8.969 kB / 0.9549 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.383e-05/0.6762, allocations: 13.03 kB / 0.9549 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001673/0.6764, allocations: 19.86 kB / 0.9549 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.119e-05/0.6765, allocations: 39.53 kB / 0.955 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.593e-05/0.6766, allocations: 22.64 kB / 0.955 GB, free: 7 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.83e-05/0.6766, allocations: 19.45 kB / 0.955 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.32e-05/0.6767, allocations: 19.45 kB / 0.955 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.347e-05/0.6767, allocations: 2.094 kB / 0.955 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.667e-05/0.6768, allocations: 12.94 kB / 0.955 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.806e-05/0.6768, allocations: 14.98 kB / 0.9551 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.57e-05/0.6768, allocations: 32.39 kB / 0.9551 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.703e-05/0.6769, allocations: 36.69 kB / 0.9551 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.6769, allocations: 0 / 0.9551 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.903e-06/0.6769, allocations: 0 / 0.9551 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.517e-06/0.6769, allocations: 4 kB / 0.9551 GB, free: 6.895 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.0004237/0.6774, allocations: 384.6 kB / 0.9555 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.6774, allocations: 9.5 kB / 0.9555 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.889e-05/0.6774, allocations: 31.84 kB / 0.9555 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.84e-05/0.6775, allocations: 11.72 kB / 0.9555 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.6776, allocations: 178 kB / 0.9557 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.456e-06/0.6776, allocations: 1.281 kB / 0.9557 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.388e-05/0.6776, allocations: 7.656 kB / 0.9557 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002735/0.6779, allocations: 96.69 kB / 0.9558 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.6779, allocations: 4.625 kB / 0.9558 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.868e-06/0.6779, allocations: 4.953 kB / 0.9558 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.678, allocations: 0.9688 kB / 0.9558 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003312/0.6783, allocations: 104.3 kB / 0.9559 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004867/0.6788, allocations: 345.4 kB / 0.9563 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002119/0.679, allocations: 72.47 kB / 0.9563 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.365e-05/0.6791, allocations: 10.19 kB / 0.9563 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.365e-05/0.6791, allocations: 31.62 kB / 0.9564 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.6791, allocations: 0 / 0.9564 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005715/0.6797, allocations: 167.3 kB / 0.9565 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.158e-05/0.6797, allocations: 56.88 kB / 0.9566 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.531e-05/0.6798, allocations: 118.3 kB / 0.9567 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.436e-06/0.6798, allocations: 25.7 kB / 0.9567 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.207e-05/0.6798, allocations: 95.56 kB / 0.9568 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.861e-05/0.6798, allocations: 16.84 kB / 0.9568 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.421e-06/0.6798, allocations: 1.188 kB / 0.9568 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.957e-05/0.6799, allocations: 324.1 kB / 0.9571 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001617/0.6801, allocations: 44.25 kB / 0.9572 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001485/0.6802, allocations: 44.83 kB / 0.9572 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000155/0.6804, allocations: 48.7 kB / 0.9573 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.6804, allocations: 0 / 0.9573 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003444/0.6807, allocations: 126.9 kB / 0.9574 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.6808, allocations: 5.406 kB / 0.9574 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.6808, allocations: 0 / 0.9574 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.6808, allocations: 0.9688 kB / 0.9574 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.6809, allocations: 24.2 kB / 0.9574 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.6809, allocations: 7.922 kB / 0.9574 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.35e-05/0.681, allocations: 18.8 kB / 0.9574 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.87e-05/0.681, allocations: 4 kB / 0.9574 GB, free: 4.84 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.458e-05/0.6811, allocations: 110.7 kB / 0.9575 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.648e-05/0.6811, allocations: 11.86 kB / 0.9576 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003842/0.6815, allocations: 138.7 kB / 0.9577 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.6815, allocations: 1 kB / 0.9577 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.6815, allocations: 0 / 0.9577 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.6816, allocations: 1.438 kB / 0.9577 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001431/0.6817, allocations: 176.6 kB / 0.9579 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.6817, allocations: 0 / 0.9579 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001045/0.6818, allocations: 16.77 kB / 0.9579 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.6818, allocations: 11.89 kB / 0.9579 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.657e-06/0.6818, allocations: 5.062 kB / 0.9579 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.6819, allocations: 5.094 kB / 0.9579 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.6819, allocations: 0 / 0.9579 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003552/0.6822, allocations: 223.6 kB / 0.9581 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.771e-05/0.6822, allocations: 77.11 kB / 0.9582 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.605e-05/0.6823, allocations: 9.719 kB / 0.9582 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/0.6824, allocations: 19.05 kB / 0.9582 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.949e-05/0.6824, allocations: 5.781 kB / 0.9582 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.186e-06/0.6824, allocations: 1.812 kB / 0.9582 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.378e-05/0.6825, allocations: 96.31 kB / 0.9583 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6825, allocations: 0 / 0.9583 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002852/0.6828, allocations: 12.97 kB / 0.9583 GB, free: 4.02 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.0005674/0.6834, allocations: 0.7627 MB / 0.9591 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003695/0.6837, allocations: 98.89 kB / 0.9592 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.6837, allocations: 0 / 0.9592 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001666/0.6839, allocations: 53.27 kB / 0.9592 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001989/0.6841, allocations: 13.73 kB / 0.9592 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001091/0.6852, allocations: 0.5708 MB / 0.9598 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001425/0.6854, allocations: 0.6913 MB / 0.9605 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.149e-05/0.6854, allocations: 7.953 kB / 0.9605 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.84e-05/0.6855, allocations: 17.47 kB / 0.9605 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of SimCode: time 2.61e-07/0.6855, allocations: 0 / 0.9605 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01138/0.6969, allocations: 1.462 MB / 0.9619 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001283/0.6971, allocations: 171.7 kB / 0.9621 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.767/2.464, allocations: 0 / 0.9621 GB, free: 1.137 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