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/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 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) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001515/0.001515, allocations: 105.8 kB / 16.27 MB, free: 6.41 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.001586/0.001586, allocations: 184.6 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7565/0.7565, allocations: 122.9 MB / 413.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002245/0.002245, allocations: 63.91 kB / 0.4912 GB, free: 7.359 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3575/0.3598, allocations: 77.92 MB / 0.5673 GB, free: 32.79 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Average): time 0.002315/0.3621, allocations: 1.519 MB / 0.5688 GB, free: 31.73 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002562/0.3624, allocations: 122.8 kB / 0.5689 GB, free: 31.65 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.146e-05/0.3625, allocations: 1.156 kB / 0.5689 GB, free: 31.65 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001037/0.3626, allocations: 11.62 kB / 0.5689 GB, free: 31.64 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 2.363e-05/0.3626, allocations: 7.875 kB / 0.5689 GB, free: 31.63 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001881/0.3628, allocations: 29.33 kB / 0.5689 GB, free: 31.62 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 7.633e-05/0.3629, allocations: 51.55 kB / 0.569 GB, free: 31.6 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.363, allocations: 30.44 kB / 0.569 GB, free: 31.59 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.653e-05/0.363, allocations: 23.11 kB / 0.569 GB, free: 31.58 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.786e-05/0.3631, allocations: 31.52 kB / 0.5691 GB, free: 31.57 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.658e-05/0.3631, allocations: 4.781 kB / 0.5691 GB, free: 31.57 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.249e-05/0.3632, allocations: 10.55 kB / 0.5691 GB, free: 31.57 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 3.858e-05/0.3632, allocations: 20.41 kB / 0.5691 GB, free: 31.55 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.36e-05/0.3633, allocations: 28.03 kB / 0.5691 GB, free: 31.54 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000105/0.3634, allocations: 57.95 kB / 0.5692 GB, free: 31.51 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3634, allocations: 0.9844 kB / 0.5692 GB, free: 31.51 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3634, allocations: 0 / 0.5692 GB, free: 31.51 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.3634, allocations: 0 / 0.5692 GB, free: 31.51 MB / 446.1 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.0004038/0.3638, allocations: 379.4 kB / 0.5695 GB, free: 31.14 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.3639, allocations: 16.62 kB / 0.5696 GB, free: 31.13 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.367e-05/0.3639, allocations: 33.47 kB / 0.5696 GB, free: 31.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.685e-05/0.3639, allocations: 8.062 kB / 0.5696 GB, free: 31.09 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001058/0.364, allocations: 193 kB / 0.5698 GB, free: 30.88 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.566e-06/0.364, allocations: 1.531 kB / 0.5698 GB, free: 30.88 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.332e-05/0.3641, allocations: 8.406 kB / 0.5698 GB, free: 30.87 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000274/0.3643, allocations: 86.23 kB / 0.5699 GB, free: 30.83 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.3644, allocations: 5.25 kB / 0.5699 GB, free: 30.82 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.3644, allocations: 1.844 kB / 0.5699 GB, free: 30.82 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.3644, allocations: 5.047 kB / 0.5699 GB, free: 30.82 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003138/0.3647, allocations: 85.11 kB / 0.57 GB, free: 30.8 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004331/0.3652, allocations: 323.5 kB / 0.5703 GB, free: 30.52 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001943/0.3654, allocations: 63.72 kB / 0.5703 GB, free: 30.48 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001522/0.3655, allocations: 39.11 kB / 0.5704 GB, free: 30.47 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.128e-05/0.3656, allocations: 5.125 kB / 0.5704 GB, free: 30.47 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.39e-05/0.3656, allocations: 36.03 kB / 0.5704 GB, free: 30.43 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.3656, allocations: 0 / 0.5704 GB, free: 30.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005342/0.3661, allocations: 136.4 kB / 0.5705 GB, free: 30.38 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.819e-05/0.3662, allocations: 54.48 kB / 0.5706 GB, free: 30.32 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.183e-05/0.3662, allocations: 115.1 kB / 0.5707 GB, free: 30.21 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.806e-06/0.3662, allocations: 30.98 kB / 0.5707 GB, free: 30.18 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.937e-05/0.3663, allocations: 94.33 kB / 0.5708 GB, free: 30.09 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.736e-05/0.3663, allocations: 9.594 kB / 0.5708 GB, free: 30.08 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.173e-05/0.3663, allocations: 20.03 kB / 0.5708 GB, free: 30.06 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.035e-05/0.3664, allocations: 322 kB / 0.5712 GB, free: 29.74 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001478/0.3665, allocations: 34.92 kB / 0.5712 GB, free: 29.74 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001363/0.3667, allocations: 32.41 kB / 0.5712 GB, free: 29.73 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002766/0.367, allocations: 77.23 kB / 0.5713 GB, free: 29.71 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.367, allocations: 0.7188 kB / 0.5713 GB, free: 29.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003169/0.3673, allocations: 104 kB / 0.5714 GB, free: 29.67 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.3673, allocations: 5.406 kB / 0.5714 GB, free: 29.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.3673, allocations: 2.094 kB / 0.5714 GB, free: 29.67 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.3673, allocations: 0.7969 kB / 0.5714 GB, free: 29.67 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.3675, allocations: 17.58 kB / 0.5714 GB, free: 29.67 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.189e-06/0.3675, allocations: 7.938 kB / 0.5714 GB, free: 29.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.802e-05/0.3676, allocations: 12.86 kB / 0.5714 GB, free: 29.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.3676, allocations: 5.031 kB / 0.5714 GB, free: 29.66 MB / 446.1 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 () * 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 5.387e-05/0.3676, allocations: 120.1 kB / 0.5716 GB, free: 29.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.772e-05/0.3677, allocations: 7.469 kB / 0.5716 GB, free: 29.54 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003612/0.368, allocations: 111.5 kB / 0.5717 GB, free: 29.48 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.368, allocations: 3.094 kB / 0.5717 GB, free: 29.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.3681, allocations: 0.6094 kB / 0.5717 GB, free: 29.48 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.3681, allocations: 0 / 0.5717 GB, free: 29.48 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000149/0.3682, allocations: 182.2 kB / 0.5718 GB, free: 29.28 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3682, allocations: 1.109 kB / 0.5718 GB, free: 29.28 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.648e-05/0.3683, allocations: 16.52 kB / 0.5719 GB, free: 29.28 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.3683, allocations: 2.125 kB / 0.5719 GB, free: 29.28 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-06/0.3684, allocations: 5.156 kB / 0.5719 GB, free: 29.28 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.3684, allocations: 3.938 kB / 0.5719 GB, free: 29.27 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.3684, allocations: 2.344 kB / 0.5719 GB, free: 29.27 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003233/0.3687, allocations: 204.4 kB / 0.5721 GB, free: 29.12 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.786e-05/0.3687, allocations: 83.5 kB / 0.5721 GB, free: 29.03 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.468e-05/0.3687, allocations: 1.719 kB / 0.5722 GB, free: 29.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.3689, allocations: 12 kB / 0.5722 GB, free: 29.03 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.156e-05/0.3689, allocations: 9.047 kB / 0.5722 GB, free: 29.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.792e-06/0.3689, allocations: 1.562 kB / 0.5722 GB, free: 29.02 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.167e-05/0.369, allocations: 92.09 kB / 0.5723 GB, free: 28.95 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.369, allocations: 0 / 0.5723 GB, free: 28.95 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002301/0.3692, allocations: 14.67 kB / 0.5723 GB, free: 28.94 MB / 446.1 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 () * 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.0004917/0.3697, allocations: 0.7414 MB / 0.573 GB, free: 28.27 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003387/0.37, allocations: 80.94 kB / 0.5731 GB, free: 28.25 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.37, allocations: 0 / 0.5731 GB, free: 28.25 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001548/0.3702, allocations: 42.3 kB / 0.5731 GB, free: 28.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002459/0.3705, allocations: 5.609 kB / 0.5731 GB, free: 28.25 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/0.3719, allocations: 1.413 MB / 0.5745 GB, free: 27.03 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001/0.372, allocations: 0.692 MB / 0.5752 GB, free: 26.34 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.159e-05/0.3721, allocations: 7.156 kB / 0.5752 GB, free: 26.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.435e-05/0.3721, allocations: 18.83 kB / 0.5752 GB, free: 26.32 MB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3721, allocations: 0 / 0.5752 GB, free: 26.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02024/0.3923, allocations: 1.787 MB / 0.5769 GB, free: 25.96 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.263/7.655, allocations: 4.906 kB / 0.577 GB, free: 25.96 MB / 446.1 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/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)