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.0009579/0.0009579, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.000899/0.0008991, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 223.2 MB / 240 MB, free: 5.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9691/0.9691, allocations: 135.3 MB / 426.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003318/0.0003318, allocations: 13.44 kB / 0.5071 GB, free: 5.039 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1491/0.1494, allocations: 82.31 MB / 0.5875 GB, free: 2.891 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.001532/0.151, allocations: 1.235 MB / 0.5887 GB, free: 1.641 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002919/0.1513, allocations: 112.5 kB / 0.5888 GB, free: 1.527 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.768e-05/0.1514, allocations: 4 kB / 0.5888 GB, free: 1.523 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.037e-05/0.1515, allocations: 7.922 kB / 0.5888 GB, free: 1.516 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.936e-05/0.1515, allocations: 7.922 kB / 0.5888 GB, free: 1.508 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001738/0.1517, allocations: 19.97 kB / 0.5888 GB, free: 1.488 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.578e-05/0.1518, allocations: 51.84 kB / 0.5889 GB, free: 1.438 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.068e-05/0.1519, allocations: 19.97 kB / 0.5889 GB, free: 1.418 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.635e-05/0.1519, allocations: 19.92 kB / 0.5889 GB, free: 1.398 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.586e-05/0.152, allocations: 19.92 kB / 0.5889 GB, free: 1.379 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.446e-05/0.152, allocations: 4 kB / 0.5889 GB, free: 1.375 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.154e-05/0.1521, allocations: 11.98 kB / 0.5889 GB, free: 1.363 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.914e-05/0.1521, allocations: 11.92 kB / 0.589 GB, free: 1.352 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.083e-05/0.1522, allocations: 33.7 kB / 0.589 GB, free: 1.312 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.523e-05/0.1522, allocations: 43.86 kB / 0.589 GB, free: 1.27 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.1523, allocations: 0 / 0.589 GB, free: 1.27 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1523, allocations: 0 / 0.589 GB, free: 1.27 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.506e-06/0.1523, allocations: 4 kB / 0.589 GB, free: 1.266 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.0004968/0.1528, allocations: 379.4 kB / 0.5894 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.1528, allocations: 8.031 kB / 0.5894 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.04e-05/0.1529, allocations: 38.5 kB / 0.5894 GB, free: 0.793 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.626e-05/0.1529, allocations: 11.86 kB / 0.5894 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001565/0.1531, allocations: 179 kB / 0.5896 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.113e-05/0.1531, allocations: 8 kB / 0.5896 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.228e-06/0.1531, allocations: 0 / 0.5896 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002685/0.1534, allocations: 97.62 kB / 0.5897 GB, free: 468 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.1534, allocations: 0 / 0.5897 GB, free: 468 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.1534, allocations: 4 kB / 0.5897 GB, free: 464 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.1534, allocations: 7.938 kB / 0.5897 GB, free: 456 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003059/0.1537, allocations: 99.92 kB / 0.5898 GB, free: 356 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005011/0.1542, allocations: 340.8 kB / 0.5902 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001963/0.1544, allocations: 78.36 kB / 0.5902 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001485/0.1546, allocations: 52.91 kB / 0.5903 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.291e-05/0.1546, allocations: 3.984 kB / 0.5903 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.294e-05/0.1547, allocations: 46.52 kB / 0.5903 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.1547, allocations: 0 / 0.5903 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0005238/0.1552, allocations: 173.4 kB / 0.5905 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.012e-05/0.1552, allocations: 51.41 kB / 0.5905 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.804e-05/0.1553, allocations: 124.8 kB / 0.5907 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.267e-05/0.1554, allocations: 25.7 kB / 0.5907 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.551e-05/0.1554, allocations: 88.08 kB / 0.5908 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.957e-05/0.1554, allocations: 19.8 kB / 0.5908 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.018e-06/0.1554, allocations: 4 kB / 0.5908 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.625e-05/0.1556, allocations: 310.8 kB / 0.5911 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.1557, allocations: 43.95 kB / 0.5911 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001333/0.1558, allocations: 43.97 kB / 0.5912 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001374/0.156, allocations: 47.95 kB / 0.5912 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.156, allocations: 4 kB / 0.5912 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003336/0.1563, allocations: 121.6 kB / 0.5913 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.1564, allocations: 10.34 kB / 0.5913 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.1564, allocations: 3.953 kB / 0.5913 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.1564, allocations: 7.922 kB / 0.5914 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.1565, allocations: 19.98 kB / 0.5914 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.1566, allocations: 0 / 0.5914 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.077e-05/0.1566, allocations: 19.98 kB / 0.5914 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.961e-05/0.1567, allocations: 0 / 0.5914 GB, free: 14.62 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.294e-05/0.1568, allocations: 117.8 kB / 0.5915 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.898e-05/0.1568, allocations: 7.906 kB / 0.5915 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003792/0.1572, allocations: 129.5 kB / 0.5916 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1572, allocations: 3.953 kB / 0.5916 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1572, allocations: 0 / 0.5916 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.1572, allocations: 0 / 0.5916 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001859/0.1574, allocations: 185.6 kB / 0.5918 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.1574, allocations: 3.938 kB / 0.5918 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.798e-05/0.1575, allocations: 27.91 kB / 0.5918 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.1575, allocations: 0 / 0.5918 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.1575, allocations: 0 / 0.5918 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1576, allocations: 0 / 0.5918 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.1576, allocations: 3.953 kB / 0.5919 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004066/0.158, allocations: 227.4 kB / 0.5921 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.777e-05/0.158, allocations: 77.11 kB / 0.5921 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.586e-05/0.1581, allocations: 0 / 0.5921 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.1582, allocations: 19.92 kB / 0.5922 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.923e-05/0.1582, allocations: 11.94 kB / 0.5922 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.743e-06/0.1582, allocations: 0 / 0.5922 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.426e-05/0.1583, allocations: 91.27 kB / 0.5923 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1583, allocations: 4 kB / 0.5923 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002374/0.1585, allocations: 19.94 kB / 0.5923 GB, free: 13.6 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007455/0.1593, allocations: 0.7518 MB / 0.593 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003361/0.1596, allocations: 99.95 kB / 0.5931 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1597, allocations: 0 / 0.5931 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001567/0.1598, allocations: 59.89 kB / 0.5932 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003102/0.1601, allocations: 7.375 kB / 0.5932 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001125/0.1613, allocations: 0.5805 MB / 0.5937 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000244/0.1615, allocations: 0.6887 MB / 0.5944 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.632e-05/0.1616, allocations: 11.98 kB / 0.5944 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.035e-05/0.1616, allocations: 15.44 kB / 0.5944 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of SimCode: time 2.034e-06/0.1616, allocations: 0 / 0.5944 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0109/0.1725, allocations: 1.466 MB / 0.5959 GB, free: 9.957 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001604/0.1727, allocations: 171.1 kB / 0.596 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.633/1.806, allocations: 0 / 0.596 GB, free: 9.715 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 & /home/hudson/saved_omc/OMSimulator/install/linux/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) Environment - environmentSimulation: