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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) 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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.74/1.74, allocations: 289.9 MB / 297.4 MB, free: 6.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001315/0.001315, allocations: 188.9 kB / 366.7 MB, free: 1.613 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.857/1.857, allocations: 205.2 MB / 0.626 GB, free: 7.148 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000884/0.0008843, allocations: 87.12 kB / 0.74 GB, free: 39.54 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.587e-05/2.588e-05, allocations: 4 kB / 0.8598 GB, free: 12.95 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7737/0.7737, allocations: 116.3 MB / 0.9733 GB, free: 76.16 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1959/0.9697, allocations: 138.4 MB / 1.109 GB, free: 11.64 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002674/0.97, allocations: 72.45 kB / 1.109 GB, free: 11.57 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.003463/0.9735, allocations: 1.116 MB / 1.11 GB, free: 10.48 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.353e-06/0.9736, allocations: 0 / 1.11 GB, free: 10.48 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.263e-05/0.9736, allocations: 4 kB / 1.11 GB, free: 10.47 MB / 0.7136 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.00048/0.9741, allocations: 369.3 kB / 1.11 GB, free: 10.07 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.9741, allocations: 12.03 kB / 1.11 GB, free: 10.06 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.477e-05/0.9742, allocations: 9.188 kB / 1.11 GB, free: 10.05 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000204/0.9744, allocations: 197.4 kB / 1.11 GB, free: 9.824 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.428e-06/0.9744, allocations: 0 / 1.11 GB, free: 9.824 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.56e-05/0.9744, allocations: 6.656 kB / 1.11 GB, free: 9.82 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001086/0.9746, allocations: 28 kB / 1.11 GB, free: 9.793 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000115/0.9747, allocations: 57.67 kB / 1.11 GB, free: 9.73 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.9747, allocations: 4.828 kB / 1.11 GB, free: 9.727 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.9747, allocations: 0 / 1.11 GB, free: 9.727 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.718e-06/0.9747, allocations: 0.625 kB / 1.11 GB, free: 9.727 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005535/0.9753, allocations: 317.1 kB / 1.111 GB, free: 9.387 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 7.708e-05/0.9754, allocations: 34.58 kB / 1.111 GB, free: 9.344 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.911e-05/0.9754, allocations: 16.94 kB / 1.111 GB, free: 9.324 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 4.149e-05/0.9755, allocations: 4 kB / 1.111 GB, free: 9.32 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.9755, allocations: 35.34 kB / 1.111 GB, free: 9.277 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 2.615e-06/0.9755, allocations: 2.75 kB / 1.111 GB, free: 9.277 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0002461/0.9758, allocations: 59.56 kB / 1.111 GB, free: 9.215 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.66e-05/0.9758, allocations: 51.41 kB / 1.111 GB, free: 9.152 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.676e-05/0.9759, allocations: 113 kB / 1.111 GB, free: 9.035 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.718e-05/0.9759, allocations: 25.7 kB / 1.111 GB, free: 9.004 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.343e-05/0.976, allocations: 88.14 kB / 1.111 GB, free: 8.914 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.025e-05/0.976, allocations: 14.81 kB / 1.111 GB, free: 8.902 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.528e-06/0.976, allocations: 0 / 1.111 GB, free: 8.902 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.9762, allocations: 326.8 kB / 1.111 GB, free: 8.574 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.531e-05/0.9762, allocations: 8 kB / 1.111 GB, free: 8.566 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.384e-05/0.9762, allocations: 12 kB / 1.111 GB, free: 8.555 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.673e-05/0.9763, allocations: 15.92 kB / 1.111 GB, free: 8.539 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.9763, allocations: 4 kB / 1.111 GB, free: 8.535 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001067/0.9764, allocations: 56.72 kB / 1.111 GB, free: 8.477 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.9764, allocations: 5.094 kB / 1.111 GB, free: 8.473 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.9765, allocations: 4 kB / 1.111 GB, free: 8.469 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.9765, allocations: 0 / 1.111 GB, free: 8.469 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/0.9766, allocations: 27.97 kB / 1.111 GB, free: 8.441 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.9766, allocations: 2.422 kB / 1.111 GB, free: 8.441 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.477e-05/0.9767, allocations: 19.98 kB / 1.112 GB, free: 8.422 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.956e-05/0.9768, allocations: 0 / 1.112 GB, free: 8.422 MB / 0.7136 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 (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 6.732e-05/0.9768, allocations: 104.9 kB / 1.112 GB, free: 8.312 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001243/0.977, allocations: 67.92 kB / 1.112 GB, free: 8.242 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.232e-05/0.977, allocations: 0 / 1.112 GB, free: 8.242 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001507/0.9771, allocations: 69.95 kB / 1.112 GB, free: 8.168 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.9772, allocations: 4 kB / 1.112 GB, free: 8.164 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.9772, allocations: 0 / 1.112 GB, free: 8.164 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.9772, allocations: 3.953 kB / 1.112 GB, free: 8.16 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001592/0.9773, allocations: 165.2 kB / 1.112 GB, free: 7.965 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.9773, allocations: 0 / 1.112 GB, free: 7.965 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001067/0.9775, allocations: 19.98 kB / 1.112 GB, free: 7.945 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.9775, allocations: 0 / 1.112 GB, free: 7.945 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/0.9775, allocations: 0 / 1.112 GB, free: 7.945 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.9775, allocations: 4 kB / 1.112 GB, free: 7.941 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.9775, allocations: 0 / 1.112 GB, free: 7.941 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001552/0.9777, allocations: 167.7 kB / 1.112 GB, free: 7.762 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.443e-05/0.9777, allocations: 85.02 kB / 1.112 GB, free: 7.66 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.461e-05/0.9777, allocations: 0 / 1.112 GB, free: 7.66 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/0.9778, allocations: 15.98 kB / 1.112 GB, free: 7.645 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.088e-05/0.9779, allocations: 7.984 kB / 1.112 GB, free: 7.637 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-06/0.9779, allocations: 0 / 1.112 GB, free: 7.637 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 8.257e-05/0.978, allocations: 87.28 kB / 1.112 GB, free: 7.551 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.51e-07/0.978, allocations: 0 / 1.112 GB, free: 7.551 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002149/0.9782, allocations: 15.94 kB / 1.112 GB, free: 7.535 MB / 0.7136 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 (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.0004955/0.9787, allocations: 0.7032 MB / 1.113 GB, free: 6.805 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 9.925e-05/0.9788, allocations: 31.92 kB / 1.113 GB, free: 6.773 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.9788, allocations: 0 / 1.113 GB, free: 6.773 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.501e-05/0.9789, allocations: 16.84 kB / 1.113 GB, free: 6.758 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001734/0.9791, allocations: 0 / 1.113 GB, free: 6.758 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004039/0.9795, allocations: 129.6 kB / 1.113 GB, free: 6.594 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002519/0.9797, allocations: 0.6963 MB / 1.114 GB, free: 5.871 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 4.253e-05/0.9798, allocations: 7.984 kB / 1.114 GB, free: 5.863 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.081e-05/0.9798, allocations: 18.62 kB / 1.114 GB, free: 5.848 MB / 0.7136 GB Notification: Performance of SimCode: time 2.3e-07/0.9798, allocations: 0 / 1.114 GB, free: 5.848 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0193/0.9991, allocations: 1.133 MB / 1.115 GB, free: 4.754 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001915/0.9994, allocations: 124.4 kB / 1.115 GB, free: 4.566 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.509/2.508, allocations: 6.469 kB / 1.115 GB, free: 4.562 MB / 0.7136 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/linux/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)