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.0009931/0.000993, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001057/0.001058, allocations: 201.5 kB / 16.14 MB, free: 6.797 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.309/1.309, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7366/0.7366, allocations: 132.2 MB / 422.1 MB, free: 2.02 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 60.45 kB / 0.5012 GB, free: 9.109 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.147, allocations: 80.2 MB / 0.5795 GB, free: 9.133 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.002585/0.1497, allocations: 1.594 MB / 0.581 GB, free: 7.523 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003409/0.15, allocations: 116.4 kB / 0.5812 GB, free: 7.406 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.726e-05/0.1501, allocations: 0 / 0.5812 GB, free: 7.406 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001196/0.1502, allocations: 11.92 kB / 0.5812 GB, free: 7.395 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.709e-05/0.1502, allocations: 7.938 kB / 0.5812 GB, free: 7.387 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001901/0.1504, allocations: 23.98 kB / 0.5812 GB, free: 7.363 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.787e-05/0.1505, allocations: 51.83 kB / 0.5813 GB, free: 7.312 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.1506, allocations: 19.98 kB / 0.5813 GB, free: 7.293 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.197e-05/0.1507, allocations: 23.92 kB / 0.5813 GB, free: 7.27 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.235e-05/0.1508, allocations: 35.84 kB / 0.5813 GB, free: 7.234 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.714e-05/0.1508, allocations: 4 kB / 0.5813 GB, free: 7.23 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.682e-05/0.1509, allocations: 7.984 kB / 0.5813 GB, free: 7.223 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.721e-05/0.1509, allocations: 8 kB / 0.5813 GB, free: 7.215 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.963e-05/0.151, allocations: 31.8 kB / 0.5814 GB, free: 7.184 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001104/0.1511, allocations: 55.73 kB / 0.5814 GB, free: 7.129 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1511, allocations: 4 kB / 0.5814 GB, free: 7.125 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.1511, allocations: 0 / 0.5814 GB, free: 7.125 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.1511, allocations: 0 / 0.5814 GB, free: 7.125 MB / 494.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.0005285/0.1516, allocations: 379.6 kB / 0.5818 GB, free: 6.703 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.1517, allocations: 8.031 kB / 0.5818 GB, free: 6.695 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.984e-05/0.1517, allocations: 42.73 kB / 0.5818 GB, free: 6.645 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.83e-05/0.1518, allocations: 8.844 kB / 0.5819 GB, free: 6.637 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001582/0.1519, allocations: 184.2 kB / 0.582 GB, free: 6.418 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.1519, allocations: 4.375 kB / 0.582 GB, free: 6.414 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.729e-06/0.152, allocations: 384 / 0.582 GB, free: 6.414 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002825/0.1522, allocations: 90.2 kB / 0.5821 GB, free: 6.32 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.1523, allocations: 3.938 kB / 0.5821 GB, free: 6.316 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.1523, allocations: 4 kB / 0.5821 GB, free: 6.312 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.1523, allocations: 4 kB / 0.5821 GB, free: 6.309 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002975/0.1526, allocations: 79.84 kB / 0.5822 GB, free: 6.23 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000506/0.1531, allocations: 336.7 kB / 0.5825 GB, free: 5.852 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001908/0.1533, allocations: 58.56 kB / 0.5826 GB, free: 5.785 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001531/0.1535, allocations: 48.91 kB / 0.5826 GB, free: 5.734 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.203e-05/0.1535, allocations: 3.938 kB / 0.5826 GB, free: 5.73 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.344e-05/0.1535, allocations: 30.56 kB / 0.5827 GB, free: 5.691 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.1535, allocations: 4 kB / 0.5827 GB, free: 5.688 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005273/0.1541, allocations: 133.6 kB / 0.5828 GB, free: 5.551 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.986e-05/0.1541, allocations: 51.41 kB / 0.5828 GB, free: 5.488 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.192e-05/0.1542, allocations: 117.7 kB / 0.583 GB, free: 5.367 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.219e-05/0.1542, allocations: 25.7 kB / 0.583 GB, free: 5.336 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.02e-05/0.1543, allocations: 104 kB / 0.5831 GB, free: 5.23 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.903e-05/0.1543, allocations: 3.906 kB / 0.5831 GB, free: 5.227 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.568e-05/0.1543, allocations: 17.66 kB / 0.5831 GB, free: 5.203 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.1544, allocations: 326.8 kB / 0.5834 GB, free: 4.875 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001466/0.1546, allocations: 35.95 kB / 0.5834 GB, free: 4.84 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001403/0.1547, allocations: 31.97 kB / 0.5835 GB, free: 4.809 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002662/0.155, allocations: 68.78 kB / 0.5835 GB, free: 4.738 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.155, allocations: 4 kB / 0.5835 GB, free: 4.734 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003053/0.1553, allocations: 109.5 kB / 0.5837 GB, free: 4.621 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.1554, allocations: 4 kB / 0.5837 GB, free: 4.617 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.1554, allocations: 3.938 kB / 0.5837 GB, free: 4.613 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.1554, allocations: 4 kB / 0.5837 GB, free: 4.609 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.1555, allocations: 15.92 kB / 0.5837 GB, free: 4.594 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.1555, allocations: 4 kB / 0.5837 GB, free: 4.59 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.91e-05/0.1556, allocations: 19.97 kB / 0.5837 GB, free: 4.57 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.731e-05/0.1556, allocations: 0 / 0.5837 GB, free: 4.57 MB / 494.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 7.355e-05/0.1557, allocations: 118.4 kB / 0.5838 GB, free: 4.445 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.854e-05/0.1557, allocations: 7.906 kB / 0.5838 GB, free: 4.438 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003549/0.1561, allocations: 117.5 kB / 0.5839 GB, free: 4.312 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.1561, allocations: 0 / 0.5839 GB, free: 4.312 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.1561, allocations: 0 / 0.5839 GB, free: 4.312 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.604e-06/0.1561, allocations: 0 / 0.5839 GB, free: 4.312 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001652/0.1563, allocations: 181.6 kB / 0.5841 GB, free: 4.086 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.1563, allocations: 0 / 0.5841 GB, free: 4.086 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.691e-05/0.1564, allocations: 15.98 kB / 0.5841 GB, free: 4.07 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.1564, allocations: 3.938 kB / 0.5841 GB, free: 4.066 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.1564, allocations: 3.938 kB / 0.5841 GB, free: 4.062 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1564, allocations: 0 / 0.5841 GB, free: 4.062 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1564, allocations: 4 kB / 0.5841 GB, free: 4.059 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003513/0.1568, allocations: 199.8 kB / 0.5843 GB, free: 3.848 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.508e-05/0.1569, allocations: 89.05 kB / 0.5844 GB, free: 3.742 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.602e-05/0.1569, allocations: 3.984 kB / 0.5844 GB, free: 3.738 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.157, allocations: 15.98 kB / 0.5844 GB, free: 3.723 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.783e-05/0.157, allocations: 0 / 0.5844 GB, free: 3.723 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.596e-06/0.157, allocations: 4 kB / 0.5844 GB, free: 3.719 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.043e-05/0.1571, allocations: 91.27 kB / 0.5845 GB, free: 3.629 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1571, allocations: 0 / 0.5845 GB, free: 3.629 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002259/0.1573, allocations: 19.88 kB / 0.5845 GB, free: 3.609 MB / 494.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.0006673/0.158, allocations: 0.7435 MB / 0.5853 GB, free: 2.836 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003248/0.1583, allocations: 71.92 kB / 0.5853 GB, free: 2.766 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.1584, allocations: 4 kB / 0.5853 GB, free: 2.762 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001517/0.1585, allocations: 43.89 kB / 0.5854 GB, free: 2.719 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002789/0.1588, allocations: 6.953 kB / 0.5854 GB, free: 2.715 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001691/0.1605, allocations: 1.432 MB / 0.5868 GB, free: 1.207 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/0.1608, allocations: 0.6926 MB / 0.5875 GB, free: 500 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.417e-05/0.1608, allocations: 12.23 kB / 0.5875 GB, free: 488 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.822e-05/0.1609, allocations: 19.44 kB / 0.5875 GB, free: 468 kB / 494.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1609, allocations: 0 / 0.5875 GB, free: 468 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01065/0.1715, allocations: 1.539 MB / 0.589 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001628/0.1717, allocations: 167.3 kB / 0.5892 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.63/1.802, allocations: 0 / 0.5892 GB, free: 14.76 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)