Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_8_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.0009204/0.0009204, allocations: 97.48 kB / 15.36 MB, free: 0.7344 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.007711/0.007711, allocations: 169 kB / 16.26 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.714/1.714, allocations: 205.4 MB / 222.4 MB, free: 5.797 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.709/1.709, allocations: 292.7 MB / 0.5502 GB, free: 14.46 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005404/0.0005406, allocations: 20.81 kB / 0.6744 GB, free: 26.07 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2564, allocations: 116.3 MB / 0.788 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001599/0.2581, allocations: 1.261 MB / 0.7892 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0003246/0.2584, allocations: 101.7 kB / 0.7893 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.046e-05/0.2585, allocations: 0 / 0.7893 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001144/0.2586, allocations: 11.86 kB / 0.7893 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 3.307e-05/0.2586, allocations: 15.92 kB / 0.7893 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002086/0.2589, allocations: 23.97 kB / 0.7894 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.963e-05/0.259, allocations: 51.84 kB / 0.7894 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001229/0.2591, allocations: 19.98 kB / 0.7894 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 5.585e-05/0.2591, allocations: 19.92 kB / 0.7895 GB, free: 9.988 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.862e-05/0.2592, allocations: 27.86 kB / 0.7895 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.723e-05/0.2592, allocations: 4 kB / 0.7895 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.318e-05/0.2593, allocations: 15.91 kB / 0.7895 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.068e-05/0.2594, allocations: 8 kB / 0.7895 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.372e-05/0.2594, allocations: 49.5 kB / 0.7896 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001211/0.2596, allocations: 52.14 kB / 0.7896 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2596, allocations: 0 / 0.7896 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.748e-06/0.2596, allocations: 0 / 0.7896 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.2596, allocations: 3.938 kB / 0.7896 GB, free: 9.824 MB / 0.6075 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.0005799/0.2602, allocations: 391.2 kB / 0.79 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.2602, allocations: 8.031 kB / 0.79 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.097e-05/0.2603, allocations: 38.75 kB / 0.79 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.504e-05/0.2603, allocations: 4.844 kB / 0.79 GB, free: 9.332 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000173/0.2605, allocations: 180.3 kB / 0.7902 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.2605, allocations: 8.375 kB / 0.7902 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.339e-05/0.2605, allocations: 8.375 kB / 0.7902 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003052/0.2608, allocations: 102.1 kB / 0.7903 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.2608, allocations: 7.938 kB / 0.7903 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/0.2609, allocations: 0 / 0.7903 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.2609, allocations: 0 / 0.7903 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003298/0.2612, allocations: 99.92 kB / 0.7904 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005399/0.2618, allocations: 336.7 kB / 0.7907 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002093/0.262, allocations: 74.53 kB / 0.7908 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/0.2622, allocations: 52.91 kB / 0.7909 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.911e-05/0.2622, allocations: 4 kB / 0.7909 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/0.2622, allocations: 34.56 kB / 0.7909 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 9.21e-07/0.2622, allocations: 0 / 0.7909 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0006058/0.2629, allocations: 177.5 kB / 0.7911 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.302e-05/0.2629, allocations: 55.34 kB / 0.7911 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.263, allocations: 121.8 kB / 0.7912 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/0.263, allocations: 25.7 kB / 0.7913 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.554e-05/0.2631, allocations: 95.98 kB / 0.7914 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.882e-05/0.2631, allocations: 7.891 kB / 0.7914 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.606e-05/0.2632, allocations: 17.72 kB / 0.7914 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.911e-05/0.2633, allocations: 318.8 kB / 0.7917 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.2634, allocations: 43.95 kB / 0.7917 GB, free: 7.43 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001462/0.2636, allocations: 43.97 kB / 0.7918 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002863/0.2639, allocations: 96.78 kB / 0.7919 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2639, allocations: 3.938 kB / 0.7919 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003359/0.2642, allocations: 133.5 kB / 0.792 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.2642, allocations: 4 kB / 0.792 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.2643, allocations: 0 / 0.792 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.117e-06/0.2643, allocations: 4 kB / 0.792 GB, free: 7.141 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.2644, allocations: 19.97 kB / 0.792 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.2644, allocations: 11.98 kB / 0.792 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.039e-05/0.2645, allocations: 15.98 kB / 0.792 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.567e-05/0.2645, allocations: 0 / 0.792 GB, free: 7.094 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.891e-05/0.2646, allocations: 118.4 kB / 0.7922 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.321e-05/0.2646, allocations: 0 / 0.7922 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003823/0.265, allocations: 141.4 kB / 0.7923 GB, free: 6.816 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.265, allocations: 4 kB / 0.7923 GB, free: 6.812 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.2651, allocations: 0 / 0.7923 GB, free: 6.812 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.2651, allocations: 0 / 0.7923 GB, free: 6.812 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001636/0.2652, allocations: 185.6 kB / 0.7925 GB, free: 6.582 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2652, allocations: 0 / 0.7925 GB, free: 6.582 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.409e-05/0.2653, allocations: 15.98 kB / 0.7925 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.2653, allocations: 4 kB / 0.7925 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-06/0.2654, allocations: 0 / 0.7925 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.2654, allocations: 3.984 kB / 0.7925 GB, free: 6.559 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.2654, allocations: 4 kB / 0.7925 GB, free: 6.555 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003843/0.2658, allocations: 227.6 kB / 0.7927 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.439e-05/0.2658, allocations: 88.98 kB / 0.7928 GB, free: 6.211 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.772e-05/0.2658, allocations: 7.922 kB / 0.7928 GB, free: 6.203 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/0.266, allocations: 15.98 kB / 0.7928 GB, free: 6.188 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.844e-05/0.266, allocations: 12 kB / 0.7928 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.908e-06/0.266, allocations: 7.984 kB / 0.7928 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.341e-05/0.2661, allocations: 87.28 kB / 0.7929 GB, free: 6.082 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2661, allocations: 0 / 0.7929 GB, free: 6.082 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002282/0.2663, allocations: 15.94 kB / 0.7929 GB, free: 6.066 MB / 0.6075 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 (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.0006101/0.2669, allocations: 0.7515 MB / 0.7937 GB, free: 5.289 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003417/0.2673, allocations: 99.86 kB / 0.7938 GB, free: 5.191 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2673, allocations: 4 kB / 0.7938 GB, free: 5.188 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001606/0.2674, allocations: 51.95 kB / 0.7938 GB, free: 5.137 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002558/0.2677, allocations: 6.969 kB / 0.7938 GB, free: 5.133 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001674/0.2694, allocations: 1.494 MB / 0.7953 GB, free: 3.562 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001997/0.2696, allocations: 0.7004 MB / 0.796 GB, free: 2.836 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.224e-05/0.2697, allocations: 12.23 kB / 0.796 GB, free: 2.824 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.518e-05/0.2697, allocations: 11.44 kB / 0.796 GB, free: 2.812 MB / 0.6075 GB Notification: Performance of SimCode: time 6.11e-07/0.2697, allocations: 0 / 0.796 GB, free: 2.812 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009726/0.2794, allocations: 1.481 MB / 0.7974 GB, free: 1.438 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001598/0.2796, allocations: 191.6 kB / 0.7976 GB, free: 1.176 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.588/1.867, allocations: 0 / 0.7976 GB, free: 1.176 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_8_Buildings.Utilities.Math.Examples.Average.pipe 2>&1)