Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Utilities.Math.Examples.Average,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Average,fileNamePrefix="IDEAS_IDEAS_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.00512/0.00512, allocations: 100.2 kB / 15.73 MB, free: 6.043 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.001147/0.001147, allocations: 196.2 kB / 16.67 MB, free: 5.977 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.362/1.362, 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/IDEAS 3.0.0/package.mo): time 0.7549/0.7549, allocations: 132.2 MB / 422.7 MB, free: 1.68 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 64.75 kB / 0.5809 GB, free: 1.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1716/0.1728, allocations: 80.22 MB / 0.6592 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.003023/0.1759, allocations: 1.524 MB / 0.6607 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0004836/0.1764, allocations: 108.6 kB / 0.6608 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.812e-05/0.1765, allocations: 3.938 kB / 0.6608 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000151/0.1766, allocations: 11.92 kB / 0.6608 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.653e-05/0.1767, allocations: 3.938 kB / 0.6608 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002685/0.177, allocations: 31.91 kB / 0.6608 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001167/0.1771, allocations: 59.78 kB / 0.6609 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000133/0.1773, allocations: 23.98 kB / 0.6609 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.62e-05/0.1773, allocations: 27.91 kB / 0.661 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.648e-05/0.1774, allocations: 23.91 kB / 0.661 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.978e-05/0.1775, allocations: 4 kB / 0.661 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.251e-05/0.1775, allocations: 15.98 kB / 0.661 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.976e-05/0.1776, allocations: 19.94 kB / 0.661 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.407e-05/0.1776, allocations: 23.86 kB / 0.661 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001534/0.1778, allocations: 59.8 kB / 0.6611 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1778, allocations: 0 / 0.6611 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.534e-06/0.1778, allocations: 0 / 0.6611 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.1778, allocations: 0 / 0.6611 GB, free: 11.99 MB / 0.4981 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.0005796/0.1784, allocations: 386.9 kB / 0.6615 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.1785, allocations: 8.031 kB / 0.6615 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.57e-05/0.1785, allocations: 42.73 kB / 0.6615 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.6e-05/0.1786, allocations: 8.844 kB / 0.6615 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001791/0.1787, allocations: 180.3 kB / 0.6617 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.1788, allocations: 4.359 kB / 0.6617 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.259e-05/0.1788, allocations: 4.375 kB / 0.6617 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002813/0.1791, allocations: 90.2 kB / 0.6618 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.1791, allocations: 3.938 kB / 0.6618 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.025e-05/0.1791, allocations: 0 / 0.6618 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.1791, allocations: 0 / 0.6618 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003013/0.1794, allocations: 91.84 kB / 0.6619 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005471/0.18, allocations: 320.6 kB / 0.6622 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002214/0.1802, allocations: 66.56 kB / 0.6622 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000146/0.1804, allocations: 40.91 kB / 0.6623 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.09e-05/0.1804, allocations: 8 kB / 0.6623 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.476e-05/0.1805, allocations: 30.56 kB / 0.6623 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.1805, allocations: 0 / 0.6623 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0005219/0.181, allocations: 137.5 kB / 0.6625 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.181, allocations: 51.41 kB / 0.6625 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.875e-05/0.1811, allocations: 119.8 kB / 0.6626 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/0.1812, allocations: 25.7 kB / 0.6626 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.649e-05/0.1812, allocations: 104 kB / 0.6627 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.169e-05/0.1812, allocations: 11.84 kB / 0.6627 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.948e-05/0.1813, allocations: 13.72 kB / 0.6628 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.1814, allocations: 326.7 kB / 0.6631 GB, free: 9.738 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001494/0.1816, allocations: 35.95 kB / 0.6631 GB, free: 9.703 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001223/0.1817, allocations: 27.97 kB / 0.6631 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002528/0.182, allocations: 76.78 kB / 0.6632 GB, free: 9.598 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.182, allocations: 0 / 0.6632 GB, free: 9.598 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003172/0.1823, allocations: 101.6 kB / 0.6633 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.1823, allocations: 4 kB / 0.6633 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.1823, allocations: 4 kB / 0.6633 GB, free: 9.484 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.1823, allocations: 0 / 0.6633 GB, free: 9.484 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.1825, allocations: 23.92 kB / 0.6633 GB, free: 9.461 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.605e-06/0.1825, allocations: 0 / 0.6633 GB, free: 9.461 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.47e-05/0.1826, allocations: 19.88 kB / 0.6634 GB, free: 9.441 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.91e-05/0.1826, allocations: 0 / 0.6634 GB, free: 9.441 MB / 0.4981 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 8.668e-05/0.1827, allocations: 118.4 kB / 0.6635 GB, free: 9.316 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.61e-05/0.1827, allocations: 8 kB / 0.6635 GB, free: 9.309 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003567/0.1831, allocations: 109.8 kB / 0.6636 GB, free: 9.184 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.1831, allocations: 0 / 0.6636 GB, free: 9.184 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.1831, allocations: 0 / 0.6636 GB, free: 9.184 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.1831, allocations: 8.031 kB / 0.6636 GB, free: 9.176 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000182/0.1833, allocations: 185.5 kB / 0.6638 GB, free: 8.945 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.1833, allocations: 0 / 0.6638 GB, free: 8.945 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.346e-05/0.1834, allocations: 15.98 kB / 0.6638 GB, free: 8.93 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.1834, allocations: 7.938 kB / 0.6638 GB, free: 8.922 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-06/0.1834, allocations: 0 / 0.6638 GB, free: 8.922 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.1835, allocations: 0 / 0.6638 GB, free: 8.922 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1835, allocations: 0 / 0.6638 GB, free: 8.922 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003566/0.1838, allocations: 211.3 kB / 0.664 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.539e-05/0.1839, allocations: 77.11 kB / 0.6641 GB, free: 8.605 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.111e-05/0.1839, allocations: 11.98 kB / 0.6641 GB, free: 8.594 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.747e-05/0.184, allocations: 11.92 kB / 0.6641 GB, free: 8.582 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.835e-05/0.184, allocations: 4 kB / 0.6641 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.1841, allocations: 0 / 0.6641 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.143e-05/0.1841, allocations: 91.27 kB / 0.6642 GB, free: 8.488 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.31e-07/0.1841, allocations: 3.938 kB / 0.6642 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002338/0.1844, allocations: 23.84 kB / 0.6642 GB, free: 8.461 MB / 0.4981 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.000669/0.185, allocations: 0.728 MB / 0.6649 GB, free: 7.707 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003222/0.1854, allocations: 79.91 kB / 0.665 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1854, allocations: 0 / 0.665 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001466/0.1855, allocations: 43.89 kB / 0.665 GB, free: 7.586 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003176/0.1859, allocations: 8 kB / 0.665 GB, free: 7.578 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001834/0.1877, allocations: 1.426 MB / 0.6664 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003313/0.1881, allocations: 0.6885 MB / 0.6671 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.843e-05/0.1881, allocations: 8 kB / 0.6671 GB, free: 5.348 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.919e-05/0.1882, allocations: 19.42 kB / 0.6671 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of SimCode: time 4.71e-07/0.1882, allocations: 0 / 0.6671 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02019/0.2084, allocations: 1.83 MB / 0.6689 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.507/7.715, allocations: 4.719 kB / 0.6689 GB, free: 3.582 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.Average.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.Average.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_Average.fmu > IDEAS_IDEAS.Utilities.Math.Examples.Average.pipe 2>&1)