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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004664/0.004664, allocations: 99.11 kB / 15.73 MB, free: 6.039 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.001217/0.001217, allocations: 193.5 kB / 16.67 MB, free: 5.961 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.484/1.484, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002633/0.002633, allocations: 278.1 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.036/1.036, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002685/0.002685, allocations: 91.86 kB / 0.681 GB, free: 12 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1715/0.1742, allocations: 86.98 MB / 0.7659 GB, free: 8.953 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002521/0.1768, allocations: 1.538 MB / 0.7674 GB, free: 7.406 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003113/0.1771, allocations: 116.5 kB / 0.7675 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.007e-05/0.1772, allocations: 0 / 0.7675 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001092/0.1773, allocations: 7.922 kB / 0.7675 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.7e-05/0.1773, allocations: 11.88 kB / 0.7675 GB, free: 7.27 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001974/0.1775, allocations: 23.97 kB / 0.7676 GB, free: 7.246 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.978e-05/0.1776, allocations: 63.77 kB / 0.7676 GB, free: 7.184 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.1777, allocations: 23.97 kB / 0.7676 GB, free: 7.16 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 5.834e-05/0.1778, allocations: 27.92 kB / 0.7677 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.229e-05/0.1779, allocations: 23.91 kB / 0.7677 GB, free: 7.109 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.615e-05/0.1779, allocations: 8 kB / 0.7677 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 5.408e-05/0.178, allocations: 12 kB / 0.7677 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.9e-05/0.178, allocations: 15.92 kB / 0.7677 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.134e-05/0.178, allocations: 31.84 kB / 0.7678 GB, free: 7.043 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000126/0.1782, allocations: 56.03 kB / 0.7678 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.1782, allocations: 0 / 0.7678 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.132e-06/0.1782, allocations: 0 / 0.7678 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.1782, allocations: 0 / 0.7678 GB, free: 6.988 MB / 0.5606 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.0005725/0.1788, allocations: 387.1 kB / 0.7682 GB, free: 6.559 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.1788, allocations: 16.03 kB / 0.7682 GB, free: 6.543 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.722e-05/0.1789, allocations: 34.75 kB / 0.7682 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.707e-05/0.1789, allocations: 4.938 kB / 0.7682 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001776/0.1791, allocations: 188.2 kB / 0.7684 GB, free: 6.273 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.696e-06/0.1791, allocations: 384 / 0.7684 GB, free: 6.273 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.654e-05/0.1791, allocations: 4.375 kB / 0.7684 GB, free: 6.27 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002775/0.1794, allocations: 86.14 kB / 0.7685 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.367e-06/0.1794, allocations: 3.938 kB / 0.7685 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.017e-06/0.1794, allocations: 8 kB / 0.7685 GB, free: 6.168 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.1794, allocations: 0 / 0.7685 GB, free: 6.168 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003052/0.1798, allocations: 83.84 kB / 0.7686 GB, free: 6.086 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005337/0.1803, allocations: 332.7 kB / 0.7689 GB, free: 5.711 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001999/0.1805, allocations: 62.56 kB / 0.769 GB, free: 5.641 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/0.1807, allocations: 44.92 kB / 0.769 GB, free: 5.594 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.084e-05/0.1807, allocations: 3.984 kB / 0.769 GB, free: 5.59 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.25e-05/0.1807, allocations: 42.56 kB / 0.7691 GB, free: 5.539 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 4.217e-06/0.1807, allocations: 3.984 kB / 0.7691 GB, free: 5.535 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0005189/0.1813, allocations: 133.5 kB / 0.7692 GB, free: 5.398 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/0.1813, allocations: 55.34 kB / 0.7692 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.253e-05/0.1814, allocations: 113.8 kB / 0.7694 GB, free: 5.211 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.51e-05/0.1814, allocations: 29.7 kB / 0.7694 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.328e-05/0.1815, allocations: 96.08 kB / 0.7695 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.303e-05/0.1815, allocations: 15.89 kB / 0.7695 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.533e-05/0.1816, allocations: 9.719 kB / 0.7695 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001308/0.1817, allocations: 330.7 kB / 0.7698 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001436/0.1819, allocations: 27.97 kB / 0.7698 GB, free: 4.688 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000137/0.182, allocations: 39.95 kB / 0.7699 GB, free: 4.648 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002613/0.1823, allocations: 68.78 kB / 0.7699 GB, free: 4.578 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1823, allocations: 4 kB / 0.7699 GB, free: 4.574 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003395/0.1826, allocations: 113.5 kB / 0.7701 GB, free: 4.457 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.1826, allocations: 8 kB / 0.7701 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.1827, allocations: 0 / 0.7701 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.1827, allocations: 0 / 0.7701 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.1828, allocations: 11.98 kB / 0.7701 GB, free: 4.438 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.1828, allocations: 4 kB / 0.7701 GB, free: 4.434 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.708e-05/0.1829, allocations: 7.984 kB / 0.7701 GB, free: 4.426 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.792e-05/0.1829, allocations: 4 kB / 0.7701 GB, free: 4.422 MB / 0.5606 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 () * 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 9.092e-05/0.183, allocations: 126.4 kB / 0.7702 GB, free: 4.289 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.523e-05/0.183, allocations: 0 / 0.7702 GB, free: 4.289 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003559/0.1834, allocations: 109.5 kB / 0.7703 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.1834, allocations: 3.984 kB / 0.7703 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.1834, allocations: 0 / 0.7703 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.1834, allocations: 0 / 0.7703 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002097/0.1837, allocations: 189.5 kB / 0.7705 GB, free: 3.934 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1837, allocations: 3.938 kB / 0.7705 GB, free: 3.93 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.173e-05/0.1838, allocations: 15.98 kB / 0.7705 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.1838, allocations: 0 / 0.7705 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.1838, allocations: 4 kB / 0.7705 GB, free: 3.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.1838, allocations: 4 kB / 0.7705 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1838, allocations: 0 / 0.7705 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003661/0.1842, allocations: 199.4 kB / 0.7707 GB, free: 3.695 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.881e-05/0.1842, allocations: 85.06 kB / 0.7708 GB, free: 3.594 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.396e-05/0.1842, allocations: 0 / 0.7708 GB, free: 3.594 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.1844, allocations: 11.98 kB / 0.7708 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.737e-05/0.1844, allocations: 4.406 kB / 0.7708 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-06/0.1844, allocations: 4 kB / 0.7708 GB, free: 3.574 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.905e-05/0.1845, allocations: 95.7 kB / 0.7709 GB, free: 3.48 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1845, allocations: 3.938 kB / 0.7709 GB, free: 3.477 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003209/0.1848, allocations: 11.94 kB / 0.7709 GB, free: 3.465 MB / 0.5606 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 () * 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.000679/0.1855, allocations: 0.7436 MB / 0.7716 GB, free: 2.695 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003235/0.1858, allocations: 75.91 kB / 0.7717 GB, free: 2.621 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1859, allocations: 4 kB / 0.7717 GB, free: 2.617 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000142/0.186, allocations: 35.91 kB / 0.7718 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000349/0.1864, allocations: 19.98 kB / 0.7718 GB, free: 2.562 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001817/0.1882, allocations: 1.428 MB / 0.7732 GB, free: 1.055 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.1885, allocations: 0.6888 MB / 0.7738 GB, free: 348 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.905e-05/0.1886, allocations: 7.984 kB / 0.7739 GB, free: 340 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.983e-05/0.1886, allocations: 19.42 kB / 0.7739 GB, free: 320 kB / 0.5606 GB Notification: Performance of SimCode: time 2.3e-07/0.1886, allocations: 0 / 0.7739 GB, free: 320 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9663/1.155, allocations: 1.83 MB / 0.7757 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/13.28, allocations: 10.11 kB / 0.7757 GB, free: 14.57 MB / 0.5606 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/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)