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: translateModel(BuildingSystems.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average") translateModel(BuildingSystems.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9035/0.9035, allocations: 143.4 MB / 159.2 MB, free: 4.844 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.001156/0.001156, allocations: 187.1 kB / 191.9 MB, free: 5.723 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.368/1.368, allocations: 222.9 MB / 447.3 MB, free: 5.859 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.001073/0.001073, allocations: 111.1 kB / 0.517 GB, free: 3.719 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001934/0.001934, allocations: 286 kB / 0.5973 GB, free: 49.38 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 83.88 kB / 0.6885 GB, free: 3.844 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3146/0.316, allocations: 81.29 MB / 0.7679 GB, free: 27.66 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002372/0.3184, allocations: 1.594 MB / 0.7695 GB, free: 26.06 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002983/0.3187, allocations: 111.7 kB / 0.7696 GB, free: 25.95 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.746e-05/0.3187, allocations: 4 kB / 0.7696 GB, free: 25.95 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001069/0.3189, allocations: 3.938 kB / 0.7696 GB, free: 25.95 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 2.044e-05/0.3189, allocations: 3.938 kB / 0.7696 GB, free: 25.94 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001629/0.3191, allocations: 27.97 kB / 0.7696 GB, free: 25.91 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 6.816e-05/0.3191, allocations: 51.84 kB / 0.7697 GB, free: 25.86 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.66e-05/0.3192, allocations: 31.97 kB / 0.7697 GB, free: 25.83 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.057e-05/0.3193, allocations: 23.86 kB / 0.7697 GB, free: 25.81 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.118e-05/0.3193, allocations: 27.84 kB / 0.7698 GB, free: 25.78 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 1.446e-05/0.3194, allocations: 4 kB / 0.7698 GB, free: 25.78 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.815e-05/0.3194, allocations: 15.94 kB / 0.7698 GB, free: 25.76 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 3.26e-05/0.3194, allocations: 11.98 kB / 0.7698 GB, free: 25.75 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 3.029e-05/0.3195, allocations: 19.86 kB / 0.7698 GB, free: 25.73 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 9.591e-05/0.3196, allocations: 62.47 kB / 0.7699 GB, free: 25.67 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.3196, allocations: 0 / 0.7699 GB, free: 25.67 MB / 458.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.3196, allocations: 0 / 0.7699 GB, free: 25.67 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.3196, allocations: 0 / 0.7699 GB, free: 25.67 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.0004064/0.32, allocations: 383.2 kB / 0.7702 GB, free: 25.25 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.866e-05/0.3201, allocations: 12.03 kB / 0.7702 GB, free: 25.23 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.846e-05/0.3201, allocations: 8.844 kB / 0.7703 GB, free: 25.23 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/0.3202, allocations: 184.2 kB / 0.7704 GB, free: 25.01 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.739e-06/0.3202, allocations: 8.375 kB / 0.7704 GB, free: 25 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.066e-05/0.3202, allocations: 384 / 0.7704 GB, free: 25 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002449/0.3205, allocations: 94.12 kB / 0.7705 GB, free: 24.9 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.3205, allocations: 192 / 0.7705 GB, free: 24.9 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.3205, allocations: 7.938 kB / 0.7705 GB, free: 24.89 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.201e-06/0.3205, allocations: 4 kB / 0.7705 GB, free: 24.89 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002755/0.3208, allocations: 75.92 kB / 0.7706 GB, free: 24.82 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004305/0.3213, allocations: 324.7 kB / 0.7709 GB, free: 24.45 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001829/0.3214, allocations: 62.53 kB / 0.771 GB, free: 24.38 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001389/0.3216, allocations: 44.91 kB / 0.771 GB, free: 24.33 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.211e-05/0.3216, allocations: 0 / 0.771 GB, free: 24.33 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.092e-05/0.3217, allocations: 30.66 kB / 0.7711 GB, free: 24.29 MB / 458.7 MB Notification: Performance of pre-optimization done (n=3): time 9.31e-07/0.3217, allocations: 7.938 kB / 0.7711 GB, free: 24.29 MB / 458.7 MB Notification: Performance of matching and sorting (n=3): time 0.0004883/0.3222, allocations: 137.5 kB / 0.7712 GB, free: 24.14 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.192e-05/0.3222, allocations: 51.41 kB / 0.7712 GB, free: 24.08 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.085e-05/0.3223, allocations: 117.8 kB / 0.7714 GB, free: 23.96 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.815e-06/0.3223, allocations: 25.7 kB / 0.7714 GB, free: 23.93 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.702e-05/0.3223, allocations: 96.05 kB / 0.7715 GB, free: 23.83 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.567e-05/0.3223, allocations: 15.78 kB / 0.7715 GB, free: 23.81 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.166e-05/0.3224, allocations: 17.7 kB / 0.7715 GB, free: 23.79 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 4.685e-05/0.3224, allocations: 322.8 kB / 0.7718 GB, free: 23.46 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001363/0.3225, allocations: 35.95 kB / 0.7718 GB, free: 23.43 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001252/0.3227, allocations: 31.97 kB / 0.7719 GB, free: 23.4 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002456/0.3229, allocations: 80.7 kB / 0.7719 GB, free: 23.32 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3229, allocations: 0 / 0.7719 GB, free: 23.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002935/0.3232, allocations: 109.5 kB / 0.7721 GB, free: 23.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.3233, allocations: 4 kB / 0.7721 GB, free: 23.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.3233, allocations: 4 kB / 0.7721 GB, free: 23.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.3233, allocations: 4 kB / 0.7721 GB, free: 23.19 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.3234, allocations: 15.97 kB / 0.7721 GB, free: 23.18 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.3234, allocations: 0 / 0.7721 GB, free: 23.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.135e-05/0.3235, allocations: 11.98 kB / 0.7721 GB, free: 23.16 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.878e-05/0.3235, allocations: 0 / 0.7721 GB, free: 23.16 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 () * 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.542e-05/0.3236, allocations: 118.9 kB / 0.7722 GB, free: 23.04 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.482e-05/0.3236, allocations: 4 kB / 0.7722 GB, free: 23.04 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003345/0.324, allocations: 121.8 kB / 0.7723 GB, free: 22.91 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-06/0.324, allocations: 48 / 0.7723 GB, free: 22.91 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.324, allocations: 3.984 kB / 0.7723 GB, free: 22.9 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.324, allocations: 0 / 0.7723 GB, free: 22.9 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001278/0.3241, allocations: 185.6 kB / 0.7725 GB, free: 22.67 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3241, allocations: 0 / 0.7725 GB, free: 22.67 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.004e-05/0.3242, allocations: 19.98 kB / 0.7725 GB, free: 22.65 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.3242, allocations: 0 / 0.7725 GB, free: 22.65 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.597e-06/0.3243, allocations: 3.984 kB / 0.7725 GB, free: 22.65 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.3243, allocations: 0 / 0.7725 GB, free: 22.65 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.3243, allocations: 0 / 0.7725 GB, free: 22.65 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005567/0.3248, allocations: 0.7863 MB / 0.7733 GB, free: 21.8 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.996e-05/0.3249, allocations: 85.02 kB / 0.7734 GB, free: 21.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.333e-05/0.3249, allocations: 0 / 0.7734 GB, free: 21.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.325, allocations: 15.92 kB / 0.7734 GB, free: 21.69 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.308e-05/0.325, allocations: 3.984 kB / 0.7734 GB, free: 21.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.366e-06/0.325, allocations: 4 kB / 0.7734 GB, free: 21.68 MB / 458.7 MB Notification: Performance of sorting global known variables: time 3.144e-05/0.3251, allocations: 107.1 kB / 0.7735 GB, free: 21.57 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3251, allocations: 0 / 0.7735 GB, free: 21.57 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003537/0.3254, allocations: 8 kB / 0.7735 GB, free: 21.57 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 () * 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.0001277/0.3256, allocations: 98.78 kB / 0.7736 GB, free: 21.46 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0003143/0.3259, allocations: 75.91 kB / 0.7737 GB, free: 21.39 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3259, allocations: 4 kB / 0.7737 GB, free: 21.39 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001415/0.3261, allocations: 39.97 kB / 0.7737 GB, free: 21.35 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002834/0.3264, allocations: 7.984 kB / 0.7737 GB, free: 21.34 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003125/0.3267, allocations: 281.8 kB / 0.774 GB, free: 21.02 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001087/0.3268, allocations: 0.6934 MB / 0.7747 GB, free: 20.3 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 3.974e-05/0.3268, allocations: 4.25 kB / 0.7747 GB, free: 20.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.112e-05/0.3269, allocations: 7.438 kB / 0.7747 GB, free: 20.29 MB / 458.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3269, allocations: 3.938 kB / 0.7747 GB, free: 20.29 MB / 458.7 MB Notification: Performance of Templates: time 0.002309/0.3292, allocations: 0.6638 MB / 0.7753 GB, free: 19.63 MB / 458.7 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.makefile (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 & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1)