Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Utilities.Math.Examples.Average,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Average,fileNamePrefix="IDEAS_dev_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.001109/0.001114, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.414/1.414, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9493/0.9493, allocations: 135.1 MB / 425.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 68.72 kB / 0.5054 GB, free: 5.211 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1595/0.1608, allocations: 80.92 MB / 0.5845 GB, free: 4.441 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.002758/0.1636, allocations: 1.524 MB / 0.586 GB, free: 2.902 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004235/0.1641, allocations: 120.4 kB / 0.5861 GB, free: 2.781 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.409e-05/0.1642, allocations: 4 kB / 0.5861 GB, free: 2.777 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001288/0.1643, allocations: 3.938 kB / 0.5861 GB, free: 2.773 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.06e-05/0.1644, allocations: 7.922 kB / 0.5861 GB, free: 2.766 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002638/0.1646, allocations: 31.91 kB / 0.5861 GB, free: 2.734 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001262/0.1648, allocations: 59.83 kB / 0.5862 GB, free: 2.676 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.1649, allocations: 27.97 kB / 0.5862 GB, free: 2.648 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.947e-05/0.165, allocations: 19.92 kB / 0.5862 GB, free: 2.629 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.478e-05/0.1651, allocations: 35.84 kB / 0.5863 GB, free: 2.594 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.188e-05/0.1651, allocations: 4 kB / 0.5863 GB, free: 2.59 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.566e-05/0.1652, allocations: 12 kB / 0.5863 GB, free: 2.578 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.43e-05/0.1653, allocations: 17.64 kB / 0.5863 GB, free: 2.562 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.852e-05/0.1653, allocations: 23.81 kB / 0.5863 GB, free: 2.539 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001584/0.1655, allocations: 63.78 kB / 0.5864 GB, free: 2.477 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1655, allocations: 0 / 0.5864 GB, free: 2.477 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1655, allocations: 0 / 0.5864 GB, free: 2.477 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.1655, allocations: 0 / 0.5864 GB, free: 2.477 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.0006406/0.1662, allocations: 379.6 kB / 0.5867 GB, free: 2.055 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.1663, allocations: 12.03 kB / 0.5867 GB, free: 2.043 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.121e-05/0.1663, allocations: 30.75 kB / 0.5868 GB, free: 2.004 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.76e-05/0.1664, allocations: 8.844 kB / 0.5868 GB, free: 1.996 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001998/0.1666, allocations: 184.2 kB / 0.587 GB, free: 1.777 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.574e-05/0.1666, allocations: 4.375 kB / 0.587 GB, free: 1.773 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.617e-05/0.1666, allocations: 8.312 kB / 0.587 GB, free: 1.766 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003599/0.167, allocations: 86.19 kB / 0.587 GB, free: 1.676 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.167, allocations: 3.938 kB / 0.5871 GB, free: 1.672 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/0.167, allocations: 8 kB / 0.5871 GB, free: 1.664 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.167, allocations: 0 / 0.5871 GB, free: 1.664 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000438/0.1675, allocations: 79.92 kB / 0.5871 GB, free: 1.586 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000684/0.1682, allocations: 340.6 kB / 0.5875 GB, free: 1.203 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00027/0.1685, allocations: 54.55 kB / 0.5875 GB, free: 1.141 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002195/0.1687, allocations: 40.91 kB / 0.5876 GB, free: 1.098 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.112e-05/0.1688, allocations: 4.031 kB / 0.5876 GB, free: 1.094 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.1688, allocations: 38.5 kB / 0.5876 GB, free: 1.047 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.613e-06/0.1688, allocations: 0 / 0.5876 GB, free: 1.047 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007743/0.1696, allocations: 137.5 kB / 0.5877 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.846e-05/0.1697, allocations: 63.39 kB / 0.5878 GB, free: 0.832 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001131/0.1698, allocations: 109.8 kB / 0.5879 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.1698, allocations: 25.7 kB / 0.5879 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.821e-05/0.1699, allocations: 99.98 kB / 0.588 GB, free: 0.582 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.703e-05/0.1699, allocations: 7.891 kB / 0.588 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.228e-05/0.17, allocations: 13.72 kB / 0.588 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.1701, allocations: 318.8 kB / 0.5883 GB, free: 240 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002472/0.1704, allocations: 39.95 kB / 0.5884 GB, free: 200 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001749/0.1706, allocations: 39.89 kB / 0.5884 GB, free: 160 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004359/0.171, allocations: 72.78 kB / 0.5885 GB, free: 84 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.171, allocations: 0 / 0.5885 GB, free: 84 kB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005637/0.1716, allocations: 105.9 kB / 0.5886 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.1716, allocations: 4 kB / 0.5886 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.1717, allocations: 3.984 kB / 0.5886 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.1717, allocations: 0 / 0.5886 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.1719, allocations: 19.97 kB / 0.5886 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.473e-06/0.1719, allocations: 0 / 0.5886 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000122/0.172, allocations: 11.98 kB / 0.5886 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.117e-05/0.1721, allocations: 4 kB / 0.5886 GB, free: 15.93 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 0.0001081/0.1722, allocations: 121.7 kB / 0.5887 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.257e-05/0.1722, allocations: 11.89 kB / 0.5887 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000552/0.1728, allocations: 105.5 kB / 0.5889 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.1728, allocations: 4 kB / 0.5889 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.1728, allocations: 4 kB / 0.5889 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1728, allocations: 0 / 0.5889 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002426/0.1731, allocations: 181.6 kB / 0.589 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1731, allocations: 0 / 0.589 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001596/0.1733, allocations: 19.97 kB / 0.5891 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.1733, allocations: 3.938 kB / 0.5891 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.1733, allocations: 0 / 0.5891 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.1733, allocations: 0 / 0.5891 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1733, allocations: 0 / 0.5891 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005853/0.1739, allocations: 207.3 kB / 0.5893 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.879e-05/0.174, allocations: 85.02 kB / 0.5893 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.193e-05/0.174, allocations: 4 kB / 0.5893 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001739/0.1742, allocations: 7.984 kB / 0.5893 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.204e-05/0.1743, allocations: 7.984 kB / 0.5894 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.1743, allocations: 8 kB / 0.5894 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.388e-05/0.1744, allocations: 87.94 kB / 0.5894 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.21e-07/0.1744, allocations: 4 kB / 0.5894 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004087/0.1748, allocations: 19.86 kB / 0.5895 GB, free: 14.96 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.0009357/0.1758, allocations: 0.7435 MB / 0.5902 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005293/0.1763, allocations: 75.92 kB / 0.5903 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1763, allocations: 0 / 0.5903 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000244/0.1766, allocations: 43.95 kB / 0.5903 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000437/0.177, allocations: 7.609 kB / 0.5903 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002682/0.1797, allocations: 1.428 MB / 0.5917 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003105/0.1801, allocations: 0.6924 MB / 0.5924 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.861e-05/0.1802, allocations: 4 kB / 0.5924 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.864e-05/0.1802, allocations: 19.42 kB / 0.5924 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of SimCode: time 5.21e-07/0.1802, allocations: 4 kB / 0.5924 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02182/0.2021, allocations: 1.789 MB / 0.5942 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.234/7.436, allocations: 0 / 0.5942 GB, free: 10.1 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Examples.Average_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Utilities_Math_Examples_Average.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.pipe 2>&1)