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.005188/0.005188, allocations: 96.56 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.001264/0.001264, allocations: 193.2 kB / 16.67 MB, free: 5.969 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.325/1.325, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7626/0.7626, allocations: 132.2 MB / 422.7 MB, free: 1.707 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 60.27 kB / 0.5809 GB, free: 1.281 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1527/0.1539, allocations: 80.2 MB / 0.6592 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.002721/0.1567, allocations: 1.529 MB / 0.6607 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003609/0.1571, allocations: 120.5 kB / 0.6608 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.444e-05/0.1572, allocations: 3.938 kB / 0.6608 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001367/0.1573, allocations: 11.92 kB / 0.6608 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.962e-05/0.1574, allocations: 3.938 kB / 0.6608 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002627/0.1576, allocations: 27.91 kB / 0.6608 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001092/0.1578, allocations: 51.84 kB / 0.6609 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001385/0.1579, allocations: 35.91 kB / 0.6609 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.755e-05/0.158, allocations: 23.92 kB / 0.661 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.242e-05/0.1581, allocations: 27.91 kB / 0.661 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.977e-05/0.1581, allocations: 4 kB / 0.661 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.35e-05/0.1582, allocations: 11.94 kB / 0.661 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.68e-05/0.1582, allocations: 19.92 kB / 0.661 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.376e-05/0.1583, allocations: 23.86 kB / 0.661 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001569/0.1584, allocations: 64.02 kB / 0.6611 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.1584, allocations: 4 kB / 0.6611 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.154e-06/0.1585, allocations: 0 / 0.6611 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.511e-06/0.1585, allocations: 0 / 0.6611 GB, free: 12.17 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.0005403/0.159, allocations: 379.2 kB / 0.6615 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.1591, allocations: 11.97 kB / 0.6615 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.855e-05/0.1591, allocations: 34.75 kB / 0.6615 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.234e-05/0.1591, allocations: 8.891 kB / 0.6615 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001678/0.1593, allocations: 180.3 kB / 0.6617 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.1593, allocations: 16.31 kB / 0.6617 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.347e-05/0.1594, allocations: 4.375 kB / 0.6617 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002848/0.1596, allocations: 82.2 kB / 0.6618 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.1597, allocations: 3.938 kB / 0.6618 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.739e-06/0.1597, allocations: 0 / 0.6618 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.391e-06/0.1597, allocations: 4 kB / 0.6618 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003104/0.16, allocations: 83.91 kB / 0.6619 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005022/0.1605, allocations: 328.6 kB / 0.6622 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000227/0.1608, allocations: 62.52 kB / 0.6622 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001538/0.1609, allocations: 45 kB / 0.6623 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.97e-05/0.161, allocations: 3.938 kB / 0.6623 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.252e-05/0.161, allocations: 30.56 kB / 0.6623 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.413e-06/0.161, allocations: 4 kB / 0.6623 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0005702/0.1616, allocations: 141.5 kB / 0.6625 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.681e-05/0.1616, allocations: 51.41 kB / 0.6625 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.72e-05/0.1617, allocations: 113.8 kB / 0.6626 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.035e-05/0.1618, allocations: 25.7 kB / 0.6626 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.355e-05/0.1619, allocations: 100.1 kB / 0.6627 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.77e-05/0.1619, allocations: 3.953 kB / 0.6627 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.7e-05/0.1619, allocations: 21.72 kB / 0.6628 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.162, allocations: 326.7 kB / 0.6631 GB, free: 9.918 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001525/0.1622, allocations: 27.97 kB / 0.6631 GB, free: 9.891 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001349/0.1623, allocations: 43.83 kB / 0.6631 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002952/0.1626, allocations: 76.78 kB / 0.6632 GB, free: 9.77 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1627, allocations: 0 / 0.6632 GB, free: 9.77 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003892/0.1631, allocations: 105.6 kB / 0.6633 GB, free: 9.66 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.1631, allocations: 4 kB / 0.6633 GB, free: 9.656 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.1631, allocations: 0 / 0.6633 GB, free: 9.656 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.1631, allocations: 4 kB / 0.6633 GB, free: 9.652 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/0.1632, allocations: 15.98 kB / 0.6633 GB, free: 9.637 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.1633, allocations: 0 / 0.6633 GB, free: 9.637 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.8e-05/0.1633, allocations: 11.98 kB / 0.6634 GB, free: 9.625 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.1634, allocations: 3.984 kB / 0.6634 GB, free: 9.621 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.338e-05/0.1635, allocations: 126.3 kB / 0.6635 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.869e-05/0.1635, allocations: 4 kB / 0.6635 GB, free: 9.484 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003807/0.1639, allocations: 121.5 kB / 0.6636 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.1639, allocations: 0 / 0.6636 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.1639, allocations: 0 / 0.6636 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.1639, allocations: 0 / 0.6636 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001721/0.1641, allocations: 181.6 kB / 0.6638 GB, free: 9.121 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.1641, allocations: 0 / 0.6638 GB, free: 9.121 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.862e-05/0.1642, allocations: 15.98 kB / 0.6638 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.1642, allocations: 0 / 0.6638 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.1642, allocations: 4 kB / 0.6638 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1642, allocations: 0 / 0.6638 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.1642, allocations: 0 / 0.6638 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003623/0.1646, allocations: 207.7 kB / 0.664 GB, free: 8.883 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.577e-05/0.1646, allocations: 85.06 kB / 0.6641 GB, free: 8.781 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.436e-05/0.1647, allocations: 4 kB / 0.6641 GB, free: 8.777 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.1648, allocations: 15.97 kB / 0.6641 GB, free: 8.762 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.755e-05/0.1648, allocations: 8.031 kB / 0.6641 GB, free: 8.754 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.767e-06/0.1648, allocations: 4 kB / 0.6641 GB, free: 8.75 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.704e-05/0.1649, allocations: 93.45 kB / 0.6642 GB, free: 8.66 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1649, allocations: 0 / 0.6642 GB, free: 8.66 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000244/0.1652, allocations: 11.94 kB / 0.6642 GB, free: 8.648 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.0006659/0.1658, allocations: 0.7396 MB / 0.6649 GB, free: 7.883 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003501/0.1662, allocations: 83.91 kB / 0.665 GB, free: 7.801 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1662, allocations: 0 / 0.665 GB, free: 7.801 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001563/0.1664, allocations: 35.97 kB / 0.665 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003039/0.1667, allocations: 15.92 kB / 0.6651 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00185/0.1685, allocations: 1.421 MB / 0.6664 GB, free: 6.246 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002632/0.1688, allocations: 0.6885 MB / 0.6671 GB, free: 5.531 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.976e-05/0.1689, allocations: 4.25 kB / 0.6671 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.432e-05/0.1689, allocations: 27.42 kB / 0.6671 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1689, allocations: 0 / 0.6671 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01815/0.1871, allocations: 1.798 MB / 0.6689 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.487/7.674, allocations: 4.484 kB / 0.6689 GB, free: 3.793 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 & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Utilities_Math_Examples_Average.fmu > IDEAS_IDEAS.Utilities.Math.Examples.Average.pipe 2>&1)