Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8226/0.8226, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 182.6 kB / 187.3 MB, free: 11.88 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.656/1.656, allocations: 221.3 MB / 441.4 MB, free: 4.656 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009672/0.0009675, allocations: 99.84 kB / 0.5124 GB, free: 24.2 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001915/0.001915, allocations: 279.1 kB / 0.5939 GB, free: 7.977 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 5.426e-05/5.454e-05, allocations: 4 kB / 0.6835 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5224/0.5225, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.138/0.6606, allocations: 108.8 MB / 0.8706 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003097/0.6609, allocations: 76.81 kB / 0.8707 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.003885/0.6649, allocations: 1.133 MB / 0.8718 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.663e-06/0.6649, allocations: 0 / 0.8718 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.128e-05/0.6649, allocations: 0 / 0.8718 GB, free: 14.55 MB / 0.5417 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.0005511/0.6655, allocations: 374.4 kB / 0.8721 GB, free: 14.14 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.6655, allocations: 8.031 kB / 0.8721 GB, free: 14.14 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.299e-05/0.6656, allocations: 42.56 kB / 0.8722 GB, free: 14.09 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.195e-05/0.6657, allocations: 3.984 kB / 0.8722 GB, free: 14.08 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002637/0.6659, allocations: 194.8 kB / 0.8724 GB, free: 13.85 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.514e-05/0.666, allocations: 7.891 kB / 0.8724 GB, free: 13.84 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.966e-05/0.666, allocations: 4 kB / 0.8724 GB, free: 13.84 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001758/0.6662, allocations: 61.67 kB / 0.8724 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.6662, allocations: 0 / 0.8724 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.6662, allocations: 4 kB / 0.8724 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.6662, allocations: 4 kB / 0.8724 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.729e-05/0.6663, allocations: 28 kB / 0.8725 GB, free: 13.74 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006425/0.667, allocations: 340.6 kB / 0.8728 GB, free: 13.36 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000108/0.6671, allocations: 34.67 kB / 0.8728 GB, free: 13.31 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.241e-05/0.6671, allocations: 20.8 kB / 0.8729 GB, free: 13.29 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 4.501e-05/0.6672, allocations: 4 kB / 0.8729 GB, free: 13.29 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.992e-05/0.6672, allocations: 34.56 kB / 0.8729 GB, free: 13.24 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 2.114e-06/0.6672, allocations: 0 / 0.8729 GB, free: 13.24 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.0002073/0.6675, allocations: 57.78 kB / 0.8729 GB, free: 13.18 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.111e-05/0.6675, allocations: 55.39 kB / 0.873 GB, free: 13.11 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.6676, allocations: 108.9 kB / 0.8731 GB, free: 13 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.299e-05/0.6676, allocations: 29.7 kB / 0.8731 GB, free: 12.96 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 5.557e-05/0.6677, allocations: 92.03 kB / 0.8732 GB, free: 12.87 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.756e-05/0.6677, allocations: 15.84 kB / 0.8732 GB, free: 12.86 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.728e-06/0.6678, allocations: 0 / 0.8732 GB, free: 12.86 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.6679, allocations: 314.8 kB / 0.8735 GB, free: 12.54 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.826e-05/0.6679, allocations: 19.98 kB / 0.8736 GB, free: 12.52 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.355e-05/0.668, allocations: 11.94 kB / 0.8736 GB, free: 12.51 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.432e-05/0.668, allocations: 20.06 kB / 0.8736 GB, free: 12.49 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.668, allocations: 0 / 0.8736 GB, free: 12.49 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001231/0.6682, allocations: 61.59 kB / 0.8736 GB, free: 12.42 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.6682, allocations: 4 kB / 0.8736 GB, free: 12.42 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.6682, allocations: 3.984 kB / 0.8736 GB, free: 12.41 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.6682, allocations: 0 / 0.8736 GB, free: 12.41 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.6684, allocations: 23.98 kB / 0.8737 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.6684, allocations: 0 / 0.8737 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.067e-05/0.6685, allocations: 15.98 kB / 0.8737 GB, free: 12.38 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.392e-05/0.6685, allocations: 4 kB / 0.8737 GB, free: 12.37 MB / 0.5417 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 8.187e-05/0.6686, allocations: 108.9 kB / 0.8738 GB, free: 12.26 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.867e-05/0.6687, allocations: 3.906 kB / 0.8738 GB, free: 12.25 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001648/0.6688, allocations: 79.98 kB / 0.8739 GB, free: 12.17 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.6689, allocations: 7.922 kB / 0.8739 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.6689, allocations: 0 / 0.8739 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.6689, allocations: 0 / 0.8739 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001899/0.6691, allocations: 181.6 kB / 0.8741 GB, free: 11.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.6691, allocations: 0 / 0.8741 GB, free: 11.94 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/0.6692, allocations: 19.98 kB / 0.8741 GB, free: 11.92 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.6692, allocations: 0 / 0.8741 GB, free: 11.92 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.097e-06/0.6692, allocations: 4 kB / 0.8741 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.6692, allocations: 4 kB / 0.8741 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.6692, allocations: 0 / 0.8741 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001688/0.6694, allocations: 155.4 kB / 0.8742 GB, free: 11.74 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.969e-05/0.6695, allocations: 89 kB / 0.8743 GB, free: 11.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.635e-05/0.6695, allocations: 4 kB / 0.8743 GB, free: 11.63 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.6696, allocations: 19.98 kB / 0.8743 GB, free: 11.61 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.934e-05/0.6697, allocations: 7.984 kB / 0.8743 GB, free: 11.61 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-06/0.6697, allocations: 4 kB / 0.8743 GB, free: 11.6 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 6.17e-05/0.6698, allocations: 87.28 kB / 0.8744 GB, free: 11.52 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.9e-07/0.6698, allocations: 0 / 0.8744 GB, free: 11.52 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002157/0.67, allocations: 12 kB / 0.8744 GB, free: 11.5 MB / 0.5417 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.0005365/0.6705, allocations: 0.7063 MB / 0.8751 GB, free: 10.77 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001149/0.6707, allocations: 28 kB / 0.8752 GB, free: 10.75 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.6707, allocations: 0 / 0.8752 GB, free: 10.75 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 4.205e-05/0.6707, allocations: 19.98 kB / 0.8752 GB, free: 10.73 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001736/0.6709, allocations: 4 kB / 0.8752 GB, free: 10.72 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004389/0.6713, allocations: 128.9 kB / 0.8753 GB, free: 10.56 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003025/0.6717, allocations: 0.7008 MB / 0.876 GB, free: 9.832 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 5.463e-05/0.6717, allocations: 11.98 kB / 0.876 GB, free: 9.82 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.519e-05/0.6718, allocations: 19.36 kB / 0.876 GB, free: 9.801 MB / 0.5417 GB Notification: Performance of SimCode: time 3.21e-07/0.6718, allocations: 0 / 0.876 GB, free: 9.801 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01522/0.687, allocations: 1.465 MB / 0.8774 GB, free: 8.488 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002046/0.6873, allocations: 154.6 kB / 0.8776 GB, free: 8.262 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.723/2.411, allocations: 1.375 kB / 0.8776 GB, free: 8.262 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1)