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.009388/0.009388, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001958/0.001958, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.343/1.343, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8028/0.8028, allocations: 135.1 MB / 425.7 MB, free: 4.094 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 60.75 kB / 0.5851 GB, free: 21.87 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1543, allocations: 80.94 MB / 0.6642 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.002922/0.1573, allocations: 1.523 MB / 0.6657 GB, free: 4.75 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003615/0.1577, allocations: 108.5 kB / 0.6658 GB, free: 4.641 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.821e-05/0.1577, allocations: 3.938 kB / 0.6658 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001196/0.1579, allocations: 7.938 kB / 0.6658 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.65e-05/0.1579, allocations: 3.938 kB / 0.6658 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002366/0.1582, allocations: 43.88 kB / 0.6658 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001076/0.1583, allocations: 51.84 kB / 0.6659 GB, free: 4.531 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.1584, allocations: 31.97 kB / 0.6659 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.017e-05/0.1585, allocations: 23.92 kB / 0.6659 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.79e-05/0.1585, allocations: 27.91 kB / 0.6659 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.82e-05/0.1586, allocations: 4 kB / 0.6659 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.778e-05/0.1586, allocations: 15.92 kB / 0.666 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.596e-05/0.1587, allocations: 19.92 kB / 0.666 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.794e-05/0.1587, allocations: 27.86 kB / 0.666 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001327/0.1589, allocations: 55.81 kB / 0.6661 GB, free: 4.328 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1589, allocations: 3.938 kB / 0.6661 GB, free: 4.324 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.412e-06/0.1589, allocations: 0 / 0.6661 GB, free: 4.324 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.1589, allocations: 0 / 0.6661 GB, free: 4.324 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.0005244/0.1594, allocations: 382.9 kB / 0.6664 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.1595, allocations: 13.05 kB / 0.6664 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.632e-05/0.1595, allocations: 34.75 kB / 0.6665 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.34e-05/0.1596, allocations: 8.844 kB / 0.6665 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00018/0.1598, allocations: 184.3 kB / 0.6667 GB, free: 3.621 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.147e-06/0.1598, allocations: 8.312 kB / 0.6667 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.314e-05/0.1598, allocations: 8.375 kB / 0.6667 GB, free: 3.605 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002735/0.1601, allocations: 82.2 kB / 0.6668 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.1601, allocations: 3.938 kB / 0.6668 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.1601, allocations: 4 kB / 0.6668 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.1601, allocations: 4 kB / 0.6668 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003054/0.1604, allocations: 75.91 kB / 0.6668 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005278/0.161, allocations: 332.6 kB / 0.6672 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002145/0.1612, allocations: 58.53 kB / 0.6672 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.1614, allocations: 44.95 kB / 0.6673 GB, free: 2.945 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.993e-05/0.1614, allocations: 0 / 0.6673 GB, free: 2.945 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.519e-05/0.1615, allocations: 42.55 kB / 0.6673 GB, free: 2.895 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.1615, allocations: 0 / 0.6673 GB, free: 2.895 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0005724/0.162, allocations: 141.5 kB / 0.6674 GB, free: 2.75 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.1621, allocations: 51.41 kB / 0.6675 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.348e-05/0.1622, allocations: 109.8 kB / 0.6676 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.1622, allocations: 25.7 kB / 0.6676 GB, free: 2.539 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.294e-05/0.1623, allocations: 104 kB / 0.6677 GB, free: 2.434 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.927e-05/0.1623, allocations: 3.906 kB / 0.6677 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.933e-05/0.1623, allocations: 17.72 kB / 0.6677 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.1625, allocations: 322.8 kB / 0.668 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001499/0.1626, allocations: 35.91 kB / 0.6681 GB, free: 2.047 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001412/0.1628, allocations: 39.89 kB / 0.6681 GB, free: 2.008 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002879/0.1631, allocations: 72.78 kB / 0.6682 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.1631, allocations: 0 / 0.6682 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003298/0.1634, allocations: 101.6 kB / 0.6683 GB, free: 1.828 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.1634, allocations: 7.984 kB / 0.6683 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.1634, allocations: 4 kB / 0.6683 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.1634, allocations: 3.938 kB / 0.6683 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.1636, allocations: 11.98 kB / 0.6683 GB, free: 1.801 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.1636, allocations: 3.984 kB / 0.6683 GB, free: 1.797 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.837e-05/0.1637, allocations: 19.89 kB / 0.6683 GB, free: 1.777 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.99e-05/0.1637, allocations: 7.938 kB / 0.6683 GB, free: 1.77 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 7.635e-05/0.1638, allocations: 117.8 kB / 0.6684 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.521e-05/0.1638, allocations: 4 kB / 0.6684 GB, free: 1.641 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003774/0.1642, allocations: 117.8 kB / 0.6686 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.1642, allocations: 0 / 0.6686 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1642, allocations: 0 / 0.6686 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.1642, allocations: 0 / 0.6686 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001668/0.1644, allocations: 185.5 kB / 0.6687 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1644, allocations: 0 / 0.6687 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.5e-05/0.1645, allocations: 19.97 kB / 0.6688 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1645, allocations: 0 / 0.6688 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-06/0.1645, allocations: 0 / 0.6688 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1645, allocations: 0 / 0.6688 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/0.1645, allocations: 7.938 kB / 0.6688 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000361/0.1649, allocations: 207.3 kB / 0.669 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.284e-05/0.1649, allocations: 77.11 kB / 0.669 GB, free: 0.9453 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.293e-05/0.165, allocations: 0 / 0.669 GB, free: 0.9453 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.1651, allocations: 11.98 kB / 0.669 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.608e-05/0.1651, allocations: 7.984 kB / 0.6691 GB, free: 0.9258 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.1651, allocations: 12 kB / 0.6691 GB, free: 0.9141 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.404e-05/0.1652, allocations: 91.27 kB / 0.6692 GB, free: 0.8242 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1652, allocations: 0 / 0.6692 GB, free: 0.8242 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002431/0.1654, allocations: 15.84 kB / 0.6692 GB, free: 0.8086 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.0006622/0.1661, allocations: 0.7371 MB / 0.6699 GB, free: 48 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003624/0.1665, allocations: 71.98 kB / 0.67 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1665, allocations: 0 / 0.67 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001565/0.1666, allocations: 47.89 kB / 0.67 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003026/0.167, allocations: 4 kB / 0.67 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/0.1687, allocations: 1.44 MB / 0.6714 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002397/0.169, allocations: 0.6885 MB / 0.6721 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 4.445e-05/0.169, allocations: 7.984 kB / 0.6721 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.293e-05/0.1691, allocations: 19.38 kB / 0.6721 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of SimCode: time 4.81e-07/0.1691, allocations: 4 kB / 0.6721 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01798/0.1871, allocations: 1.835 MB / 0.6739 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.238/7.425, allocations: 6.562 kB / 0.6739 GB, free: 11.89 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_Average.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.pipe 2>&1)