Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.conf.json 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/IBPSA 4.0.0-master/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) 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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Average,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Average,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009787/0.0009788, allocations: 181.5 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.5258/0.5258, allocations: 90.91 MB / 99.34 MB, free: 2.16 MB / 74.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.559/1.559, allocations: 221.5 MB / 343.2 MB, free: 1.562 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009567/0.0009564, allocations: 90.52 kB / 415.9 MB, free: 11.12 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.833e-05/1.833e-05, allocations: 8 kB / 494.6 MB, free: 52.31 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1574/0.1575, allocations: 72.3 MB / 0.5536 GB, free: 12.21 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5313/0.6888, allocations: 101 MB / 0.6522 GB, free: 8.996 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002364/0.6891, allocations: 75.45 kB / 0.6523 GB, free: 8.953 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003397/0.6925, allocations: 1.127 MB / 0.6534 GB, free: 7.945 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.6926, allocations: 0 / 0.6534 GB, free: 7.945 MB / 458.7 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.6926, allocations: 2.625 kB / 0.6534 GB, free: 7.945 MB / 458.7 MB 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.000492/0.6931, allocations: 374.2 kB / 0.6538 GB, free: 7.539 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.6931, allocations: 8.031 kB / 0.6538 GB, free: 7.531 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.239e-05/0.6932, allocations: 15.67 kB / 0.6538 GB, free: 7.52 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000222/0.6934, allocations: 190.8 kB / 0.654 GB, free: 7.293 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.6934, allocations: 11.88 kB / 0.654 GB, free: 7.281 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.142e-05/0.6935, allocations: 4 kB / 0.654 GB, free: 7.277 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001003/0.6936, allocations: 27.44 kB / 0.654 GB, free: 7.262 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001151/0.6937, allocations: 57.36 kB / 0.6541 GB, free: 7.207 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.6937, allocations: 0 / 0.6541 GB, free: 7.207 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.6937, allocations: 4 kB / 0.6541 GB, free: 7.203 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.6937, allocations: 7.938 kB / 0.6541 GB, free: 7.195 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005313/0.6943, allocations: 304.5 kB / 0.6544 GB, free: 6.879 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.697e-05/0.6944, allocations: 33.83 kB / 0.6544 GB, free: 6.844 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.646e-05/0.6944, allocations: 20.88 kB / 0.6544 GB, free: 6.824 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.644e-05/0.6945, allocations: 4 kB / 0.6544 GB, free: 6.82 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.359e-05/0.6945, allocations: 34.61 kB / 0.6545 GB, free: 6.777 MB / 458.7 MB Notification: Performance of pre-optimization done (n=3): time 1.173e-06/0.6945, allocations: 7.938 kB / 0.6545 GB, free: 6.77 MB / 458.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002326/0.6947, allocations: 56.97 kB / 0.6545 GB, free: 6.715 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.286e-05/0.6948, allocations: 51.41 kB / 0.6546 GB, free: 6.652 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.105e-05/0.6949, allocations: 110.3 kB / 0.6547 GB, free: 6.547 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.6949, allocations: 25.7 kB / 0.6547 GB, free: 6.516 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.384e-05/0.695, allocations: 87.8 kB / 0.6548 GB, free: 6.43 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.275e-05/0.695, allocations: 19.83 kB / 0.6548 GB, free: 6.41 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.729e-06/0.695, allocations: 0 / 0.6548 GB, free: 6.41 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.6951, allocations: 314.5 kB / 0.6551 GB, free: 6.098 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.181e-05/0.6952, allocations: 11.94 kB / 0.6551 GB, free: 6.09 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.211e-05/0.6952, allocations: 11.61 kB / 0.6551 GB, free: 6.082 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.126e-05/0.6953, allocations: 11.94 kB / 0.6551 GB, free: 6.074 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.6953, allocations: 0 / 0.6551 GB, free: 6.074 MB / 458.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001167/0.6954, allocations: 65.34 kB / 0.6552 GB, free: 6.012 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.6954, allocations: 4 kB / 0.6552 GB, free: 6.008 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.6954, allocations: 3.984 kB / 0.6552 GB, free: 6.004 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.6955, allocations: 7.953 kB / 0.6552 GB, free: 5.996 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001391/0.6956, allocations: 19.98 kB / 0.6552 GB, free: 5.977 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.6956, allocations: 0 / 0.6552 GB, free: 5.977 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.216e-05/0.6957, allocations: 18.55 kB / 0.6553 GB, free: 5.961 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.265e-05/0.6957, allocations: 3.938 kB / 0.6553 GB, free: 5.957 MB / 458.7 MB 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 7.759e-05/0.6958, allocations: 109 kB / 0.6554 GB, free: 5.844 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001266/0.696, allocations: 57.55 kB / 0.6554 GB, free: 5.789 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.536e-05/0.696, allocations: 11.86 kB / 0.6554 GB, free: 5.777 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001875/0.6962, allocations: 69.45 kB / 0.6555 GB, free: 5.711 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.6962, allocations: 0 / 0.6555 GB, free: 5.711 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.6962, allocations: 7.938 kB / 0.6555 GB, free: 5.703 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.6962, allocations: 0 / 0.6555 GB, free: 5.703 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001669/0.6964, allocations: 150.1 kB / 0.6557 GB, free: 5.527 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.6964, allocations: 0 / 0.6557 GB, free: 5.527 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001065/0.6965, allocations: 23.98 kB / 0.6557 GB, free: 5.504 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.6965, allocations: 0 / 0.6557 GB, free: 5.504 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.828e-06/0.6965, allocations: 4 kB / 0.6557 GB, free: 5.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/0.6965, allocations: 3.953 kB / 0.6557 GB, free: 5.496 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.6966, allocations: 0 / 0.6557 GB, free: 5.496 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001556/0.6967, allocations: 155.5 kB / 0.6558 GB, free: 5.336 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.176e-05/0.6968, allocations: 89.08 kB / 0.6559 GB, free: 5.23 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.491e-05/0.6968, allocations: 0 / 0.6559 GB, free: 5.23 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/0.6969, allocations: 16.67 kB / 0.6559 GB, free: 5.215 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.675e-05/0.697, allocations: 15.69 kB / 0.6559 GB, free: 5.203 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.951e-06/0.697, allocations: 0 / 0.6559 GB, free: 5.203 MB / 458.7 MB Notification: Performance of sorting global known variables: time 4.591e-05/0.697, allocations: 87.03 kB / 0.656 GB, free: 5.121 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.697, allocations: 0 / 0.656 GB, free: 5.121 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0002161/0.6973, allocations: 16 kB / 0.656 GB, free: 5.105 MB / 458.7 MB 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.0004893/0.6978, allocations: 0.6888 MB / 0.6567 GB, free: 4.398 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 9.773e-05/0.6979, allocations: 31.73 kB / 0.6568 GB, free: 4.375 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.6979, allocations: 0 / 0.6568 GB, free: 4.375 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 3.314e-05/0.6979, allocations: 19.75 kB / 0.6568 GB, free: 4.363 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001746/0.6981, allocations: 11.95 kB / 0.6568 GB, free: 4.352 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003956/0.6985, allocations: 130.8 kB / 0.6569 GB, free: 4.188 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002952/0.6988, allocations: 0.6906 MB / 0.6576 GB, free: 3.473 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 4.397e-05/0.6989, allocations: 8.859 kB / 0.6576 GB, free: 3.465 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.166e-05/0.6989, allocations: 18.25 kB / 0.6576 GB, free: 3.453 MB / 458.7 MB Notification: Performance of SimCode: time 2.4e-07/0.6989, allocations: 0 / 0.6576 GB, free: 3.453 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01953/0.7185, allocations: 1.137 MB / 0.6587 GB, free: 2.332 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002183/0.7187, allocations: 128 kB / 0.6588 GB, free: 2.133 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.632/2.351, allocations: 0 / 0.6588 GB, free: 2.133 MB / 458.7 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_Average.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.pipe 2>&1)