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.00158/0.00158, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002333/0.002333, allocations: 193.9 kB / 16.25 MB, free: 6.633 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.433/1.433, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9506/0.9506, allocations: 135.1 MB / 425.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 72.47 kB / 0.505 GB, free: 5.586 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1468, allocations: 80.93 MB / 0.584 GB, free: 4.82 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.002714/0.1496, allocations: 1.589 MB / 0.5855 GB, free: 3.215 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002854/0.1499, allocations: 116.5 kB / 0.5856 GB, free: 3.098 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.22e-05/0.1499, allocations: 0 / 0.5856 GB, free: 3.098 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001034/0.15, allocations: 7.922 kB / 0.5857 GB, free: 3.09 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.112e-05/0.1501, allocations: 7.938 kB / 0.5857 GB, free: 3.082 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001928/0.1503, allocations: 23.97 kB / 0.5857 GB, free: 3.059 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.091e-05/0.1504, allocations: 59.78 kB / 0.5857 GB, free: 3 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.1505, allocations: 27.97 kB / 0.5858 GB, free: 2.973 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.387e-05/0.1506, allocations: 23.91 kB / 0.5858 GB, free: 2.949 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.53e-05/0.1506, allocations: 27.86 kB / 0.5858 GB, free: 2.922 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.677e-05/0.1506, allocations: 4 kB / 0.5858 GB, free: 2.918 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.677e-05/0.1507, allocations: 15.98 kB / 0.5858 GB, free: 2.902 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.993e-05/0.1508, allocations: 19.92 kB / 0.5859 GB, free: 2.883 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.336e-05/0.1508, allocations: 19.88 kB / 0.5859 GB, free: 2.863 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001139/0.1509, allocations: 63.78 kB / 0.5859 GB, free: 2.801 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.1509, allocations: 0 / 0.5859 GB, free: 2.801 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.61e-07/0.1509, allocations: 4 kB / 0.5859 GB, free: 2.797 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.1509, allocations: 0 / 0.5859 GB, free: 2.797 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.0004607/0.1514, allocations: 371.6 kB / 0.5863 GB, free: 2.383 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.1514, allocations: 16.02 kB / 0.5863 GB, free: 2.367 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.407e-05/0.1515, allocations: 34.75 kB / 0.5863 GB, free: 2.324 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.694e-05/0.1515, allocations: 8.844 kB / 0.5864 GB, free: 2.316 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001401/0.1517, allocations: 184.2 kB / 0.5865 GB, free: 2.098 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.1517, allocations: 8.359 kB / 0.5865 GB, free: 2.09 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.3e-05/0.1517, allocations: 8.375 kB / 0.5865 GB, free: 2.082 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000262/0.152, allocations: 86.2 kB / 0.5866 GB, free: 1.992 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.152, allocations: 7.922 kB / 0.5866 GB, free: 1.984 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.152, allocations: 0 / 0.5866 GB, free: 1.984 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.457e-06/0.152, allocations: 0 / 0.5866 GB, free: 1.984 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000293/0.1523, allocations: 83.86 kB / 0.5867 GB, free: 1.902 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004915/0.1528, allocations: 324.7 kB / 0.587 GB, free: 1.535 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001861/0.153, allocations: 70.5 kB / 0.5871 GB, free: 1.457 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001428/0.1532, allocations: 40.91 kB / 0.5871 GB, free: 1.414 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.105e-05/0.1532, allocations: 4 kB / 0.5871 GB, free: 1.41 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.118e-05/0.1532, allocations: 30.56 kB / 0.5872 GB, free: 1.371 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.1532, allocations: 0 / 0.5872 GB, free: 1.371 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005165/0.1538, allocations: 137.6 kB / 0.5873 GB, free: 1.23 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.828e-05/0.1538, allocations: 55.34 kB / 0.5873 GB, free: 1.164 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.896e-05/0.1539, allocations: 125.2 kB / 0.5875 GB, free: 1.035 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.1539, allocations: 25.7 kB / 0.5875 GB, free: 1.004 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.276e-05/0.1539, allocations: 91.98 kB / 0.5876 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.83e-05/0.154, allocations: 7.906 kB / 0.5876 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.861e-05/0.154, allocations: 29.64 kB / 0.5876 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.283e-05/0.1541, allocations: 314.8 kB / 0.5879 GB, free: 0.5508 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.1543, allocations: 35.95 kB / 0.5879 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001297/0.1544, allocations: 31.97 kB / 0.588 GB, free: 496 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002676/0.1547, allocations: 84.77 kB / 0.5881 GB, free: 408 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.1547, allocations: 0 / 0.5881 GB, free: 408 kB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000326/0.155, allocations: 101.5 kB / 0.5882 GB, free: 300 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.155, allocations: 4 kB / 0.5882 GB, free: 296 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.1551, allocations: 3.938 kB / 0.5882 GB, free: 292 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.1551, allocations: 4 kB / 0.5882 GB, free: 288 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.1552, allocations: 19.97 kB / 0.5882 GB, free: 268 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.1552, allocations: 0 / 0.5882 GB, free: 268 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.854e-05/0.1553, allocations: 15.98 kB / 0.5882 GB, free: 252 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.928e-05/0.1553, allocations: 0 / 0.5882 GB, free: 252 kB / 494.1 MB 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.341e-05/0.1554, allocations: 113.8 kB / 0.5883 GB, free: 128 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.76e-05/0.1555, allocations: 3.906 kB / 0.5883 GB, free: 124 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003888/0.1559, allocations: 121.8 kB / 0.5884 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.1559, allocations: 0 / 0.5884 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.1559, allocations: 0 / 0.5884 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1559, allocations: 4.031 kB / 0.5884 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001666/0.1561, allocations: 181.6 kB / 0.5886 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.1561, allocations: 3.938 kB / 0.5886 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.757e-05/0.1562, allocations: 19.92 kB / 0.5886 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1562, allocations: 0 / 0.5886 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/0.1562, allocations: 7.984 kB / 0.5886 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.1562, allocations: 0 / 0.5886 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1562, allocations: 0 / 0.5886 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003516/0.1566, allocations: 199.4 kB / 0.5888 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.847e-05/0.1566, allocations: 85 kB / 0.5889 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.1566, allocations: 0 / 0.5889 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.1568, allocations: 11.98 kB / 0.5889 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.576e-05/0.1568, allocations: 8 kB / 0.5889 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.225e-06/0.1568, allocations: 0 / 0.5889 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.424e-05/0.1569, allocations: 91.27 kB / 0.589 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.7e-07/0.1569, allocations: 0 / 0.589 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002372/0.1571, allocations: 15.88 kB / 0.589 GB, free: 15.29 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.0006681/0.1578, allocations: 0.7396 MB / 0.5898 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003362/0.1582, allocations: 87.92 kB / 0.5898 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1582, allocations: 0 / 0.5898 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001469/0.1583, allocations: 39.89 kB / 0.5899 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003/0.1586, allocations: 11.94 kB / 0.5899 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001728/0.1604, allocations: 1.432 MB / 0.5913 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002285/0.1606, allocations: 0.6924 MB / 0.592 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.652e-05/0.1607, allocations: 8 kB / 0.592 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.743e-05/0.1607, allocations: 23.42 kB / 0.592 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1607, allocations: 0 / 0.592 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01077/0.1715, allocations: 1.589 MB / 0.5935 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001741/0.1717, allocations: 184.8 kB / 0.5937 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.757/1.928, allocations: 0 / 0.5937 GB, free: 10.4 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/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)