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.001075/0.001075, 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.001024/0.001024, allocations: 187.1 kB / 16.25 MB, free: 6.629 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.232/1.232, 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/package.mo): time 0.7176/0.7176, allocations: 132.2 MB / 422.3 MB, free: 1.941 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 59.94 kB / 0.5014 GB, free: 8.973 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1431, allocations: 80.2 MB / 0.5797 GB, free: 8.988 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.002718/0.1459, allocations: 1.59 MB / 0.5812 GB, free: 7.383 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002924/0.1462, allocations: 112.5 kB / 0.5813 GB, free: 7.27 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.49e-05/0.1463, allocations: 4 kB / 0.5813 GB, free: 7.266 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001118/0.1464, allocations: 7.922 kB / 0.5813 GB, free: 7.258 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.801e-05/0.1464, allocations: 7.938 kB / 0.5814 GB, free: 7.25 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002047/0.1467, allocations: 19.98 kB / 0.5814 GB, free: 7.23 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.213e-05/0.1467, allocations: 59.83 kB / 0.5814 GB, free: 7.172 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.1469, allocations: 23.98 kB / 0.5815 GB, free: 7.148 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.395e-05/0.1469, allocations: 27.91 kB / 0.5815 GB, free: 7.121 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.804e-05/0.147, allocations: 27.86 kB / 0.5815 GB, free: 7.094 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.751e-05/0.147, allocations: 8 kB / 0.5815 GB, free: 7.086 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.673e-05/0.1471, allocations: 11.98 kB / 0.5815 GB, free: 7.074 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.666e-05/0.1471, allocations: 15.92 kB / 0.5815 GB, free: 7.059 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.372e-05/0.1471, allocations: 19.88 kB / 0.5816 GB, free: 7.039 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001184/0.1473, allocations: 59.8 kB / 0.5816 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1473, allocations: 0 / 0.5816 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1473, allocations: 4 kB / 0.5816 GB, free: 6.977 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.1473, allocations: 0 / 0.5816 GB, free: 6.977 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.0004805/0.1478, allocations: 375.6 kB / 0.582 GB, free: 6.559 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.1478, allocations: 15.97 kB / 0.582 GB, free: 6.543 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.376e-05/0.1479, allocations: 42.72 kB / 0.582 GB, free: 6.492 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.655e-05/0.1479, allocations: 8.844 kB / 0.582 GB, free: 6.484 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001401/0.148, allocations: 187.4 kB / 0.5822 GB, free: 6.266 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.817e-06/0.1481, allocations: 384 / 0.5822 GB, free: 6.266 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.261e-05/0.1481, allocations: 8.375 kB / 0.5822 GB, free: 6.258 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002656/0.1483, allocations: 90.14 kB / 0.5823 GB, free: 6.164 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.1484, allocations: 7.875 kB / 0.5823 GB, free: 6.156 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.947e-06/0.1484, allocations: 0 / 0.5823 GB, free: 6.156 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.928e-06/0.1484, allocations: 0 / 0.5823 GB, free: 6.156 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000296/0.1487, allocations: 83.91 kB / 0.5824 GB, free: 6.074 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004751/0.1492, allocations: 332.6 kB / 0.5827 GB, free: 5.699 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001937/0.1494, allocations: 62.47 kB / 0.5828 GB, free: 5.629 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000151/0.1495, allocations: 44.91 kB / 0.5828 GB, free: 5.582 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.953e-05/0.1496, allocations: 4 kB / 0.5828 GB, free: 5.578 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.9e-05/0.1496, allocations: 30.56 kB / 0.5829 GB, free: 5.539 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.1496, allocations: 0 / 0.5829 GB, free: 5.539 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.000539/0.1502, allocations: 137.6 kB / 0.583 GB, free: 5.398 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.984e-05/0.1502, allocations: 51.41 kB / 0.583 GB, free: 5.336 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.651e-05/0.1503, allocations: 121.8 kB / 0.5832 GB, free: 5.207 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.317e-05/0.1503, allocations: 25.7 kB / 0.5832 GB, free: 5.176 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.295e-05/0.1504, allocations: 95.98 kB / 0.5833 GB, free: 5.078 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.037e-05/0.1504, allocations: 7.906 kB / 0.5833 GB, free: 5.07 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.029e-05/0.1504, allocations: 21.7 kB / 0.5833 GB, free: 5.043 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.917e-05/0.1505, allocations: 318.8 kB / 0.5836 GB, free: 4.723 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000146/0.1507, allocations: 35.95 kB / 0.5836 GB, free: 4.688 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001312/0.1508, allocations: 27.97 kB / 0.5837 GB, free: 4.66 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000262/0.1511, allocations: 76.78 kB / 0.5837 GB, free: 4.582 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1511, allocations: 0 / 0.5837 GB, free: 4.582 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003193/0.1514, allocations: 117.5 kB / 0.5838 GB, free: 4.461 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.1514, allocations: 4 kB / 0.5839 GB, free: 4.457 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.1515, allocations: 0 / 0.5839 GB, free: 4.457 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.1515, allocations: 0 / 0.5839 GB, free: 4.457 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001217/0.1516, allocations: 19.98 kB / 0.5839 GB, free: 4.438 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.1516, allocations: 3.984 kB / 0.5839 GB, free: 4.434 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.583e-05/0.1517, allocations: 11.98 kB / 0.5839 GB, free: 4.422 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.611e-05/0.1517, allocations: 0 / 0.5839 GB, free: 4.422 MB / 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.16e-05/0.1518, allocations: 118.4 kB / 0.584 GB, free: 4.297 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.838e-05/0.1518, allocations: 7.906 kB / 0.584 GB, free: 4.289 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003624/0.1522, allocations: 117.8 kB / 0.5841 GB, free: 4.164 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.1522, allocations: 4.031 kB / 0.5841 GB, free: 4.16 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.1522, allocations: 0 / 0.5841 GB, free: 4.16 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.1522, allocations: 4 kB / 0.5841 GB, free: 4.156 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001661/0.1524, allocations: 177.6 kB / 0.5843 GB, free: 3.934 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1524, allocations: 3.938 kB / 0.5843 GB, free: 3.93 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.75e-05/0.1525, allocations: 19.92 kB / 0.5843 GB, free: 3.91 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.1525, allocations: 8 kB / 0.5843 GB, free: 3.902 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.1525, allocations: 0 / 0.5843 GB, free: 3.902 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1526, allocations: 0 / 0.5843 GB, free: 3.902 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.1526, allocations: 3.984 kB / 0.5843 GB, free: 3.898 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003511/0.1529, allocations: 195.4 kB / 0.5845 GB, free: 3.691 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.644e-05/0.153, allocations: 89 kB / 0.5846 GB, free: 3.586 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.602e-05/0.153, allocations: 4 kB / 0.5846 GB, free: 3.582 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.1531, allocations: 7.984 kB / 0.5846 GB, free: 3.574 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.076e-05/0.1531, allocations: 7.938 kB / 0.5846 GB, free: 3.566 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.655e-06/0.1532, allocations: 0 / 0.5846 GB, free: 3.566 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.457e-05/0.1532, allocations: 91.27 kB / 0.5847 GB, free: 3.477 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1532, allocations: 0 / 0.5847 GB, free: 3.477 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002334/0.1534, allocations: 23.88 kB / 0.5847 GB, free: 3.453 MB / 494.1 MB 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.0006206/0.1541, allocations: 0.7319 MB / 0.5854 GB, free: 2.691 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003241/0.1544, allocations: 83.86 kB / 0.5855 GB, free: 2.609 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1544, allocations: 4 kB / 0.5855 GB, free: 2.605 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001461/0.1546, allocations: 39.95 kB / 0.5856 GB, free: 2.566 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000276/0.1549, allocations: 6.531 kB / 0.5856 GB, free: 2.562 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001728/0.1566, allocations: 1.436 MB / 0.587 GB, free: 1.051 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002525/0.1569, allocations: 0.6924 MB / 0.5877 GB, free: 340 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.547e-05/0.1569, allocations: 11.98 kB / 0.5877 GB, free: 328 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.119e-05/0.157, allocations: 19.59 kB / 0.5877 GB, free: 308 kB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.157, allocations: 0 / 0.5877 GB, free: 308 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01072/0.1677, allocations: 1.591 MB / 0.5892 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001608/0.1679, allocations: 180.9 kB / 0.5894 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.67/1.838, allocations: 0 / 0.5894 GB, free: 14.56 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)