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.001333/0.001333, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001519/0.001519, allocations: 198.6 kB / 16.14 MB, free: 6.695 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.387/1.387, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9011/0.9011, allocations: 135.1 MB / 425.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 64.45 kB / 0.5048 GB, free: 5.684 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1471, allocations: 80.92 MB / 0.5838 GB, free: 4.926 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.0024/0.1495, allocations: 1.591 MB / 0.5854 GB, free: 3.316 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002801/0.1498, allocations: 116.5 kB / 0.5855 GB, free: 3.199 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.633e-05/0.1499, allocations: 4 kB / 0.5855 GB, free: 3.195 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001069/0.15, allocations: 7.922 kB / 0.5855 GB, free: 3.188 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.365e-05/0.15, allocations: 3.938 kB / 0.5855 GB, free: 3.184 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000169/0.1502, allocations: 23.97 kB / 0.5855 GB, free: 3.16 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.538e-05/0.1503, allocations: 59.72 kB / 0.5856 GB, free: 3.102 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.1504, allocations: 27.98 kB / 0.5856 GB, free: 3.074 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.917e-05/0.1504, allocations: 27.89 kB / 0.5856 GB, free: 3.047 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.501e-05/0.1505, allocations: 19.92 kB / 0.5856 GB, free: 3.027 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.639e-05/0.1505, allocations: 4 kB / 0.5856 GB, free: 3.023 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.642e-05/0.1506, allocations: 11.98 kB / 0.5857 GB, free: 3.012 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.232e-05/0.1506, allocations: 19.92 kB / 0.5857 GB, free: 2.992 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.439e-05/0.1507, allocations: 15.88 kB / 0.5857 GB, free: 2.977 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001074/0.1508, allocations: 59.8 kB / 0.5857 GB, free: 2.918 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.1508, allocations: 7.984 kB / 0.5858 GB, free: 2.91 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.1508, allocations: 0 / 0.5858 GB, free: 2.91 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.947e-06/0.1508, allocations: 0 / 0.5858 GB, free: 2.91 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.0004872/0.1513, allocations: 371.6 kB / 0.5861 GB, free: 2.496 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.1513, allocations: 12.03 kB / 0.5861 GB, free: 2.484 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.544e-05/0.1514, allocations: 38.73 kB / 0.5862 GB, free: 2.438 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.794e-05/0.1514, allocations: 8.844 kB / 0.5862 GB, free: 2.43 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001528/0.1516, allocations: 188.1 kB / 0.5863 GB, free: 2.207 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.769e-06/0.1516, allocations: 8.375 kB / 0.5864 GB, free: 2.199 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.244e-05/0.1516, allocations: 4.375 kB / 0.5864 GB, free: 2.195 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000268/0.1519, allocations: 82.2 kB / 0.5864 GB, free: 2.109 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.1519, allocations: 3.938 kB / 0.5864 GB, free: 2.105 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.1519, allocations: 7.984 kB / 0.5864 GB, free: 2.098 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-06/0.1519, allocations: 0 / 0.5864 GB, free: 2.098 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003088/0.1522, allocations: 83.86 kB / 0.5865 GB, free: 2.016 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000488/0.1527, allocations: 320.7 kB / 0.5868 GB, free: 1.652 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002011/0.1529, allocations: 66.56 kB / 0.5869 GB, free: 1.578 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001584/0.1531, allocations: 40.91 kB / 0.5869 GB, free: 1.535 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.386e-05/0.1532, allocations: 0 / 0.5869 GB, free: 1.535 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.244e-05/0.1532, allocations: 34.56 kB / 0.587 GB, free: 1.492 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.1532, allocations: 0 / 0.587 GB, free: 1.492 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005357/0.1537, allocations: 137.6 kB / 0.5871 GB, free: 1.352 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.803e-05/0.1538, allocations: 51.41 kB / 0.5871 GB, free: 1.289 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.76e-05/0.1539, allocations: 117.8 kB / 0.5873 GB, free: 1.164 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.291e-05/0.1539, allocations: 29.7 kB / 0.5873 GB, free: 1.129 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.545e-05/0.1539, allocations: 91.98 kB / 0.5874 GB, free: 1.035 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.768e-05/0.1539, allocations: 11.91 kB / 0.5874 GB, free: 1.023 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.825e-05/0.154, allocations: 21.64 kB / 0.5874 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.17e-05/0.1541, allocations: 322.7 kB / 0.5877 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000157/0.1543, allocations: 35.95 kB / 0.5877 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.1544, allocations: 31.97 kB / 0.5878 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002782/0.1547, allocations: 77.06 kB / 0.5879 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1547, allocations: 0 / 0.5879 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003332/0.155, allocations: 105.5 kB / 0.588 GB, free: 428 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.1551, allocations: 8 kB / 0.588 GB, free: 420 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.1551, allocations: 4 kB / 0.588 GB, free: 416 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.538e-06/0.1551, allocations: 3.938 kB / 0.588 GB, free: 412 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.1552, allocations: 23.97 kB / 0.588 GB, free: 388 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.1552, allocations: 3.938 kB / 0.588 GB, free: 384 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.913e-05/0.1553, allocations: 11.98 kB / 0.588 GB, free: 372 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.89e-05/0.1553, allocations: 4 kB / 0.588 GB, free: 368 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 6.816e-05/0.1554, allocations: 113.8 kB / 0.5881 GB, free: 244 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.763e-05/0.1554, allocations: 7.906 kB / 0.5881 GB, free: 236 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003686/0.1558, allocations: 117.5 kB / 0.5882 GB, free: 104 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.1558, allocations: 0 / 0.5882 GB, free: 104 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.1558, allocations: 0 / 0.5882 GB, free: 104 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.1558, allocations: 0 / 0.5882 GB, free: 104 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001839/0.156, allocations: 181.6 kB / 0.5884 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.156, allocations: 4 kB / 0.5884 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.651e-05/0.1561, allocations: 15.98 kB / 0.5884 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.1562, allocations: 0 / 0.5884 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.1562, allocations: 4 kB / 0.5884 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.1562, allocations: 7.922 kB / 0.5884 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1562, allocations: 0 / 0.5884 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003484/0.1565, allocations: 199.4 kB / 0.5886 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.477e-05/0.1566, allocations: 85 kB / 0.5887 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.441e-05/0.1566, allocations: 0 / 0.5887 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.1567, allocations: 15.98 kB / 0.5887 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.836e-05/0.1568, allocations: 0 / 0.5887 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-06/0.1568, allocations: 7.984 kB / 0.5887 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.676e-05/0.1568, allocations: 90.78 kB / 0.5888 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1568, allocations: 0 / 0.5888 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002319/0.1571, allocations: 19.88 kB / 0.5888 GB, free: 15.4 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.0006076/0.1577, allocations: 0.7396 MB / 0.5896 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003231/0.158, allocations: 79.92 kB / 0.5896 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.158, allocations: 0 / 0.5896 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001574/0.1582, allocations: 39.95 kB / 0.5897 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002828/0.1585, allocations: 19.81 kB / 0.5897 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001666/0.1602, allocations: 1.434 MB / 0.5911 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002153/0.1604, allocations: 0.6926 MB / 0.5918 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.115e-05/0.1604, allocations: 4.25 kB / 0.5918 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.971e-05/0.1605, allocations: 15.42 kB / 0.5918 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1605, allocations: 0 / 0.5918 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009999/0.1705, allocations: 1.541 MB / 0.5933 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001621/0.1707, allocations: 178.4 kB / 0.5935 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.783/1.954, allocations: 4 kB / 0.5935 GB, free: 10.55 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)