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.8928/0.8928, allocations: 141.8 MB / 149.3 MB, free: 9.219 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001238/0.001238, allocations: 180.8 kB / 182.2 MB, free: 9.438 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.682/1.682, allocations: 221.5 MB / 436.4 MB, free: 13.33 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.001075/0.001075, allocations: 105.5 kB / 0.5074 GB, free: 10.15 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001826/0.001827, allocations: 279.6 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.541e-05/2.532e-05, allocations: 4 kB / 0.6766 GB, free: 12.73 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5332/0.5332, allocations: 82.78 MB / 0.7575 GB, free: 31.91 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1555/0.6888, allocations: 108.1 MB / 0.8631 GB, free: 3.648 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000263/0.6891, allocations: 67.97 kB / 0.8631 GB, free: 3.582 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.003464/0.6926, allocations: 1.135 MB / 0.8642 GB, free: 2.438 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.397e-06/0.6926, allocations: 0 / 0.8642 GB, free: 2.438 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.796e-06/0.6927, allocations: 3.938 kB / 0.8642 GB, free: 2.434 MB / 0.5261 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.00046/0.6931, allocations: 374.4 kB / 0.8646 GB, free: 2.023 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.6932, allocations: 12.03 kB / 0.8646 GB, free: 2.012 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.327e-05/0.6932, allocations: 0 / 0.8646 GB, free: 2.012 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002061/0.6934, allocations: 190.8 kB / 0.8648 GB, free: 1.785 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.6935, allocations: 3.953 kB / 0.8648 GB, free: 1.781 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.196e-05/0.6935, allocations: 4 kB / 0.8648 GB, free: 1.777 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001021/0.6936, allocations: 27.98 kB / 0.8648 GB, free: 1.75 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000105/0.6937, allocations: 61.62 kB / 0.8649 GB, free: 1.684 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.6937, allocations: 0 / 0.8649 GB, free: 1.684 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/0.6937, allocations: 0 / 0.8649 GB, free: 1.684 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.6937, allocations: 0 / 0.8649 GB, free: 1.684 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005402/0.6943, allocations: 313.3 kB / 0.8652 GB, free: 1.34 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 7.514e-05/0.6944, allocations: 38.59 kB / 0.8652 GB, free: 1.293 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.57e-05/0.6944, allocations: 16.86 kB / 0.8652 GB, free: 1.273 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 3.687e-05/0.6945, allocations: 4 kB / 0.8652 GB, free: 1.27 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.934e-05/0.6945, allocations: 30.56 kB / 0.8653 GB, free: 1.23 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.6945, allocations: 4 kB / 0.8653 GB, free: 1.227 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.0002239/0.6947, allocations: 57.77 kB / 0.8653 GB, free: 1.164 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.178e-05/0.6948, allocations: 51.41 kB / 0.8654 GB, free: 1.102 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.376e-05/0.6949, allocations: 101 kB / 0.8655 GB, free: 0.9961 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.6949, allocations: 25.7 kB / 0.8655 GB, free: 0.9648 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 5.852e-05/0.6949, allocations: 100 kB / 0.8656 GB, free: 0.8633 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.695, allocations: 7.844 kB / 0.8656 GB, free: 0.8555 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.13e-06/0.695, allocations: 0 / 0.8656 GB, free: 0.8555 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001521/0.6951, allocations: 326.8 kB / 0.8659 GB, free: 0.5273 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.977e-05/0.6952, allocations: 15.92 kB / 0.8659 GB, free: 0.5117 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.084e-05/0.6952, allocations: 12 kB / 0.8659 GB, free: 0.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.108e-05/0.6953, allocations: 7.984 kB / 0.8659 GB, free: 0.4922 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.6953, allocations: 3.938 kB / 0.8659 GB, free: 500 kB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001124/0.6954, allocations: 61.59 kB / 0.866 GB, free: 432 kB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.6954, allocations: 4 kB / 0.866 GB, free: 428 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.6954, allocations: 0 / 0.866 GB, free: 428 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.6954, allocations: 0 / 0.866 GB, free: 428 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.6956, allocations: 27.92 kB / 0.866 GB, free: 400 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.335e-06/0.6956, allocations: 0 / 0.866 GB, free: 400 kB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.403e-05/0.6957, allocations: 19.97 kB / 0.866 GB, free: 380 kB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.19e-05/0.6957, allocations: 4 kB / 0.8661 GB, free: 376 kB / 0.5261 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.062e-05/0.6958, allocations: 108.9 kB / 0.8662 GB, free: 260 kB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001256/0.6959, allocations: 61.72 kB / 0.8662 GB, free: 192 kB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.286e-05/0.696, allocations: 8.031 kB / 0.8662 GB, free: 184 kB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001486/0.6961, allocations: 70.02 kB / 0.8663 GB, free: 104 kB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.6961, allocations: 0 / 0.8663 GB, free: 104 kB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.6961, allocations: 0 / 0.8663 GB, free: 104 kB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.6962, allocations: 3.984 kB / 0.8663 GB, free: 100 kB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001798/0.6963, allocations: 158.2 kB / 0.8664 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.6964, allocations: 0 / 0.8664 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.6965, allocations: 27.97 kB / 0.8665 GB, free: 15.88 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.6965, allocations: 0 / 0.8665 GB, free: 15.88 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.6965, allocations: 0 / 0.8665 GB, free: 15.88 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.6965, allocations: 3.938 kB / 0.8665 GB, free: 15.88 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.6965, allocations: 0 / 0.8665 GB, free: 15.88 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001594/0.6967, allocations: 159.4 kB / 0.8666 GB, free: 15.7 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 3.651e-05/0.6967, allocations: 81.02 kB / 0.8667 GB, free: 15.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.6967, allocations: 7.984 kB / 0.8667 GB, free: 15.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.6969, allocations: 15.98 kB / 0.8667 GB, free: 15.58 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.261e-05/0.6969, allocations: 8 kB / 0.8667 GB, free: 15.57 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-06/0.6969, allocations: 0 / 0.8667 GB, free: 15.57 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 5.229e-05/0.697, allocations: 91.27 kB / 0.8668 GB, free: 15.48 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.697, allocations: 0 / 0.8668 GB, free: 15.48 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002166/0.6972, allocations: 16 kB / 0.8668 GB, free: 15.47 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.0004952/0.6977, allocations: 0.6967 MB / 0.8675 GB, free: 14.75 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 9.627e-05/0.6978, allocations: 28 kB / 0.8675 GB, free: 14.72 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.6978, allocations: 0 / 0.8675 GB, free: 14.72 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 3.631e-05/0.6979, allocations: 19.98 kB / 0.8676 GB, free: 14.7 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001842/0.6981, allocations: 4 kB / 0.8676 GB, free: 14.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004048/0.6985, allocations: 133.6 kB / 0.8677 GB, free: 14.52 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.6988, allocations: 0.6885 MB / 0.8684 GB, free: 13.81 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 4.823e-05/0.6988, allocations: 19.83 kB / 0.8684 GB, free: 13.79 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.242e-05/0.6989, allocations: 15.44 kB / 0.8684 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of SimCode: time 2.41e-07/0.6989, allocations: 0 / 0.8684 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02015/0.719, allocations: 1.138 MB / 0.8695 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002301/0.7194, allocations: 138 kB / 0.8696 GB, free: 12.47 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.827/2.546, allocations: 7.938 kB / 0.8697 GB, free: 12.46 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)