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.004982/0.004982, allocations: 105.2 kB / 15.74 MB, free: 6.02 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.001158/0.001158, allocations: 192 kB / 16.67 MB, free: 5.938 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.346/1.346, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7964/0.7964, allocations: 135.1 MB / 425.7 MB, free: 4.066 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 64.56 kB / 0.5851 GB, free: 21.85 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1542, allocations: 80.93 MB / 0.6642 GB, free: 6.27 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.002686/0.157, allocations: 1.527 MB / 0.6657 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003342/0.1573, allocations: 112.5 kB / 0.6658 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.022e-05/0.1574, allocations: 0 / 0.6658 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001145/0.1575, allocations: 15.88 kB / 0.6658 GB, free: 4.609 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.834e-05/0.1576, allocations: 7.922 kB / 0.6658 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002411/0.1578, allocations: 31.89 kB / 0.6658 GB, free: 4.57 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001003/0.1579, allocations: 51.91 kB / 0.6659 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.158, allocations: 27.92 kB / 0.6659 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.979e-05/0.1581, allocations: 23.92 kB / 0.6659 GB, free: 4.469 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.63e-05/0.1582, allocations: 27.89 kB / 0.6659 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.773e-05/0.1582, allocations: 4 kB / 0.666 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.994e-05/0.1583, allocations: 15.94 kB / 0.666 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.895e-05/0.1583, allocations: 19.92 kB / 0.666 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.587e-05/0.1584, allocations: 23.86 kB / 0.666 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001578/0.1586, allocations: 60.02 kB / 0.6661 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1586, allocations: 0 / 0.6661 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.323e-06/0.1586, allocations: 0 / 0.6661 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.009e-06/0.1586, allocations: 0 / 0.6661 GB, free: 4.32 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.0005683/0.1592, allocations: 387.2 kB / 0.6664 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.1592, allocations: 9.109 kB / 0.6664 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.903e-05/0.1593, allocations: 42.62 kB / 0.6665 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.292e-05/0.1593, allocations: 8.891 kB / 0.6665 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001754/0.1595, allocations: 184.3 kB / 0.6667 GB, free: 3.605 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.895e-06/0.1595, allocations: 384 / 0.6667 GB, free: 3.605 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.718e-05/0.1595, allocations: 8.312 kB / 0.6667 GB, free: 3.598 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002854/0.1598, allocations: 94.19 kB / 0.6668 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.1598, allocations: 3.938 kB / 0.6668 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.1598, allocations: 0 / 0.6668 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.1598, allocations: 0 / 0.6668 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003337/0.1602, allocations: 83.91 kB / 0.6668 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005779/0.1608, allocations: 328.6 kB / 0.6672 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002116/0.161, allocations: 58.53 kB / 0.6672 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000171/0.1612, allocations: 36.92 kB / 0.6673 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.023e-05/0.1612, allocations: 12.09 kB / 0.6673 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.314e-05/0.1613, allocations: 38.48 kB / 0.6673 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.352e-06/0.1613, allocations: 0 / 0.6673 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0006038/0.1619, allocations: 133.5 kB / 0.6674 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.383e-05/0.1619, allocations: 55.41 kB / 0.6675 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.126e-05/0.162, allocations: 117.8 kB / 0.6676 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.459e-05/0.1621, allocations: 25.7 kB / 0.6676 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.314e-05/0.1621, allocations: 92.12 kB / 0.6677 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.433e-05/0.1622, allocations: 11.91 kB / 0.6677 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.018e-05/0.1622, allocations: 13.72 kB / 0.6677 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.1623, allocations: 322.8 kB / 0.668 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001708/0.1625, allocations: 35.97 kB / 0.6681 GB, free: 2.035 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001571/0.1627, allocations: 35.89 kB / 0.6681 GB, free: 2 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002896/0.163, allocations: 76.72 kB / 0.6682 GB, free: 1.922 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.163, allocations: 0 / 0.6682 GB, free: 1.922 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003401/0.1633, allocations: 105.6 kB / 0.6683 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.1634, allocations: 7.984 kB / 0.6683 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.1634, allocations: 0 / 0.6683 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.1634, allocations: 0 / 0.6683 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.1635, allocations: 15.98 kB / 0.6683 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.1635, allocations: 0 / 0.6683 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.936e-05/0.1636, allocations: 27.88 kB / 0.6683 GB, free: 1.762 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.274e-05/0.1637, allocations: 0 / 0.6683 GB, free: 1.762 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.0001028/0.1638, allocations: 129.6 kB / 0.6685 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.136e-05/0.1638, allocations: 4 kB / 0.6685 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004132/0.1642, allocations: 105.5 kB / 0.6686 GB, free: 1.508 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.1643, allocations: 4 kB / 0.6686 GB, free: 1.504 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.1643, allocations: 384 / 0.6686 GB, free: 1.504 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.1643, allocations: 4 kB / 0.6686 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001882/0.1645, allocations: 177.6 kB / 0.6687 GB, free: 1.277 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1645, allocations: 0 / 0.6687 GB, free: 1.277 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001005/0.1646, allocations: 15.97 kB / 0.6688 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.1646, allocations: 7.984 kB / 0.6688 GB, free: 1.254 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.1646, allocations: 4 kB / 0.6688 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.1646, allocations: 0 / 0.6688 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1646, allocations: 0 / 0.6688 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003915/0.165, allocations: 207.3 kB / 0.669 GB, free: 1.031 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.859e-05/0.1651, allocations: 81.06 kB / 0.669 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.928e-05/0.1651, allocations: 8 kB / 0.669 GB, free: 0.9258 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00011/0.1652, allocations: 7.984 kB / 0.6691 GB, free: 0.918 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.604e-05/0.1653, allocations: 11.98 kB / 0.6691 GB, free: 0.9062 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.646e-06/0.1653, allocations: 0 / 0.6691 GB, free: 0.9062 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.314e-05/0.1653, allocations: 91.27 kB / 0.6692 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1654, allocations: 0 / 0.6692 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002428/0.1656, allocations: 15.94 kB / 0.6692 GB, free: 0.8008 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.0007183/0.1663, allocations: 0.7449 MB / 0.6699 GB, free: 32 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003995/0.1667, allocations: 71.92 kB / 0.67 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1667, allocations: 0 / 0.67 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001624/0.1669, allocations: 39.95 kB / 0.67 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000339/0.1673, allocations: 8 kB / 0.67 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001881/0.1692, allocations: 1.436 MB / 0.6714 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002439/0.1694, allocations: 0.6885 MB / 0.6721 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 4.934e-05/0.1695, allocations: 8.234 kB / 0.6721 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.335e-05/0.1695, allocations: 11.44 kB / 0.6721 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of SimCode: time 2.5e-07/0.1695, allocations: 0 / 0.6721 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01701/0.1865, allocations: 1.831 MB / 0.6739 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.815/8.002, allocations: 0 / 0.6739 GB, free: 11.9 MB / 0.5137 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)