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.001775/0.001775, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002014/0.002014, allocations: 192.2 kB / 16.67 MB, free: 6.574 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7941/0.7941, allocations: 132.2 MB / 422.7 MB, free: 1.715 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 68.28 kB / 0.5809 GB, free: 1.109 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1404, allocations: 80.2 MB / 0.6592 GB, free: 14 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.00251/0.143, allocations: 1.543 MB / 0.6607 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003175/0.1433, allocations: 108.5 kB / 0.6608 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.766e-05/0.1434, allocations: 0 / 0.6608 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001268/0.1435, allocations: 7.922 kB / 0.6608 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.442e-05/0.1435, allocations: 11.88 kB / 0.6608 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002103/0.1437, allocations: 27.95 kB / 0.6608 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001039/0.1439, allocations: 63.77 kB / 0.6609 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.144, allocations: 16 kB / 0.6609 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.656e-05/0.144, allocations: 31.91 kB / 0.6609 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.524e-05/0.1441, allocations: 23.92 kB / 0.661 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.775e-05/0.1441, allocations: 4 kB / 0.661 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.356e-05/0.1442, allocations: 19.97 kB / 0.661 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.145e-05/0.1442, allocations: 15.92 kB / 0.661 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.052e-05/0.1443, allocations: 23.88 kB / 0.661 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001319/0.1444, allocations: 60.02 kB / 0.6611 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1445, allocations: 0 / 0.6611 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.222e-06/0.1445, allocations: 0 / 0.6611 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.1445, allocations: 0 / 0.6611 GB, free: 12.05 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.0005766/0.145, allocations: 391.1 kB / 0.6615 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.1451, allocations: 8.031 kB / 0.6615 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.96e-05/0.1451, allocations: 38.75 kB / 0.6615 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.797e-05/0.1452, allocations: 8.891 kB / 0.6615 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001834/0.1454, allocations: 180.2 kB / 0.6617 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.1454, allocations: 8.375 kB / 0.6617 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.42e-05/0.1454, allocations: 4.375 kB / 0.6617 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002853/0.1457, allocations: 94.12 kB / 0.6618 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.1457, allocations: 3.938 kB / 0.6618 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.1457, allocations: 4 kB / 0.6618 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.1457, allocations: 0 / 0.6618 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003205/0.1461, allocations: 75.92 kB / 0.6619 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005382/0.1466, allocations: 340.6 kB / 0.6622 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002174/0.1468, allocations: 54.55 kB / 0.6622 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.147, allocations: 40.91 kB / 0.6623 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.493e-05/0.1471, allocations: 4 kB / 0.6623 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.221e-05/0.1471, allocations: 38.56 kB / 0.6623 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.1471, allocations: 0 / 0.6623 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0005758/0.1477, allocations: 137.6 kB / 0.6625 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.178e-05/0.1477, allocations: 55.41 kB / 0.6625 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.1478, allocations: 117.8 kB / 0.6626 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.1479, allocations: 25.7 kB / 0.6626 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.686e-05/0.1479, allocations: 92.09 kB / 0.6627 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.096e-05/0.1479, allocations: 7.938 kB / 0.6627 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.802e-05/0.148, allocations: 21.66 kB / 0.6628 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1481, allocations: 318.8 kB / 0.6631 GB, free: 9.793 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.1483, allocations: 39.95 kB / 0.6631 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001421/0.1485, allocations: 31.97 kB / 0.6631 GB, free: 9.723 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002919/0.1488, allocations: 73.05 kB / 0.6632 GB, free: 9.648 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1488, allocations: 0 / 0.6632 GB, free: 9.648 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003449/0.1491, allocations: 113.5 kB / 0.6633 GB, free: 9.531 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.1491, allocations: 4 kB / 0.6633 GB, free: 9.527 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.1491, allocations: 4 kB / 0.6633 GB, free: 9.523 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.1492, allocations: 0 / 0.6633 GB, free: 9.523 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.1493, allocations: 15.97 kB / 0.6633 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.1493, allocations: 0 / 0.6633 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.353e-05/0.1494, allocations: 23.92 kB / 0.6634 GB, free: 9.484 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.926e-05/0.1494, allocations: 4 kB / 0.6634 GB, free: 9.48 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 9.569e-05/0.1495, allocations: 114.4 kB / 0.6635 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.327e-05/0.1495, allocations: 0 / 0.6635 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003958/0.1499, allocations: 125.4 kB / 0.6636 GB, free: 9.219 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.15, allocations: 0 / 0.6636 GB, free: 9.219 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.15, allocations: 4 kB / 0.6636 GB, free: 9.215 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.15, allocations: 0 / 0.6636 GB, free: 9.215 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002143/0.1502, allocations: 181.5 kB / 0.6638 GB, free: 8.988 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1502, allocations: 0 / 0.6638 GB, free: 8.988 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.589e-05/0.1503, allocations: 15.98 kB / 0.6638 GB, free: 8.973 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.1503, allocations: 3.984 kB / 0.6638 GB, free: 8.969 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.1503, allocations: 0 / 0.6638 GB, free: 8.969 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1503, allocations: 0 / 0.6638 GB, free: 8.969 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1503, allocations: 4 kB / 0.6638 GB, free: 8.965 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000397/0.1507, allocations: 203.4 kB / 0.664 GB, free: 8.75 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.544e-05/0.1508, allocations: 81.06 kB / 0.6641 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.616e-05/0.1508, allocations: 0 / 0.6641 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.1509, allocations: 23.92 kB / 0.6641 GB, free: 8.629 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.17e-05/0.151, allocations: 0 / 0.6641 GB, free: 8.629 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.828e-06/0.151, allocations: 11.98 kB / 0.6641 GB, free: 8.617 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.52e-05/0.1511, allocations: 91.22 kB / 0.6642 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1511, allocations: 0 / 0.6642 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002236/0.1513, allocations: 11.94 kB / 0.6642 GB, free: 8.516 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.0007408/0.152, allocations: 0.7358 MB / 0.6649 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003673/0.1524, allocations: 79.86 kB / 0.665 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1524, allocations: 0 / 0.665 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001633/0.1526, allocations: 43.95 kB / 0.665 GB, free: 7.633 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003123/0.1529, allocations: 10.34 kB / 0.665 GB, free: 7.625 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001869/0.1548, allocations: 1.427 MB / 0.6664 GB, free: 6.117 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003116/0.1551, allocations: 0.6924 MB / 0.6671 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.393e-05/0.1552, allocations: 8.234 kB / 0.6671 GB, free: 5.391 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.11e-05/0.1552, allocations: 15.44 kB / 0.6671 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1552, allocations: 0 / 0.6671 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2371/0.3923, allocations: 1.803 MB / 0.6689 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.773/9.165, allocations: 15.41 kB / 0.6689 GB, free: 3.641 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_Average.fmu > IDEAS_IDEAS.Utilities.Math.Examples.Average.pipe 2>&1)