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.001488/0.001488, allocations: 108 kB / 15.6 MB, free: 132 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.001611/0.001611, allocations: 194.8 kB / 16.53 MB, free: 6.391 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.314/1.314, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7339/0.7339, allocations: 132.2 MB / 422.6 MB, free: 1.754 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001782/0.001782, allocations: 69.02 kB / 0.5019 GB, free: 3.754 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3287/0.3305, allocations: 80.21 MB / 0.5802 GB, free: 4.559 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.002134/0.3326, allocations: 1.514 MB / 0.5817 GB, free: 3.5 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002408/0.3329, allocations: 127.1 kB / 0.5818 GB, free: 3.41 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.04e-05/0.333, allocations: 1 kB / 0.5818 GB, free: 3.41 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 9.689e-05/0.3331, allocations: 11.16 kB / 0.5818 GB, free: 3.402 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 2.136e-05/0.3331, allocations: 9.547 kB / 0.5818 GB, free: 3.395 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001774/0.3333, allocations: 24.41 kB / 0.5818 GB, free: 3.387 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 7.538e-05/0.3334, allocations: 59.09 kB / 0.5819 GB, free: 3.359 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.533e-05/0.3335, allocations: 19.53 kB / 0.5819 GB, free: 3.355 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.651e-05/0.3335, allocations: 30.94 kB / 0.5819 GB, free: 3.34 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.503e-05/0.3336, allocations: 28.08 kB / 0.582 GB, free: 3.328 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.56e-05/0.3336, allocations: 3.812 kB / 0.582 GB, free: 3.328 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.07e-05/0.3336, allocations: 13.2 kB / 0.582 GB, free: 3.324 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.431e-05/0.3337, allocations: 12.41 kB / 0.582 GB, free: 3.32 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.211e-05/0.3337, allocations: 32.25 kB / 0.582 GB, free: 3.297 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001007/0.3338, allocations: 51.83 kB / 0.5821 GB, free: 3.277 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3338, allocations: 4.719 kB / 0.5821 GB, free: 3.273 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3338, allocations: 0 / 0.5821 GB, free: 3.273 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.3338, allocations: 3.938 kB / 0.5821 GB, free: 3.27 MB / 430.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.0003898/0.3342, allocations: 383.1 kB / 0.5825 GB, free: 2.891 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.952e-05/0.3343, allocations: 8.969 kB / 0.5825 GB, free: 2.891 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.319e-05/0.3343, allocations: 38.02 kB / 0.5825 GB, free: 2.848 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.467e-05/0.3343, allocations: 8.219 kB / 0.5825 GB, free: 2.844 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.823e-05/0.3344, allocations: 188.3 kB / 0.5827 GB, free: 2.633 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.395e-06/0.3345, allocations: 2.219 kB / 0.5827 GB, free: 2.633 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.263e-05/0.3345, allocations: 3.344 kB / 0.5827 GB, free: 2.633 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002514/0.3347, allocations: 94.59 kB / 0.5828 GB, free: 2.582 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.3347, allocations: 4.547 kB / 0.5828 GB, free: 2.578 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.176e-06/0.3348, allocations: 0 / 0.5828 GB, free: 2.578 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.3348, allocations: 0.9688 kB / 0.5828 GB, free: 2.578 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003003/0.3351, allocations: 80.72 kB / 0.5829 GB, free: 2.566 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003967/0.3355, allocations: 333 kB / 0.5832 GB, free: 2.266 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001854/0.3357, allocations: 57.22 kB / 0.5832 GB, free: 2.234 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001469/0.3358, allocations: 43.72 kB / 0.5833 GB, free: 2.219 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.77e-05/0.3359, allocations: 2.172 kB / 0.5833 GB, free: 2.219 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.313e-05/0.3359, allocations: 35.75 kB / 0.5833 GB, free: 2.176 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.3359, allocations: 3.938 kB / 0.5833 GB, free: 2.172 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.000507/0.3364, allocations: 139.9 kB / 0.5834 GB, free: 2.121 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.524e-05/0.3364, allocations: 55.34 kB / 0.5835 GB, free: 2.055 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.313e-05/0.3365, allocations: 119.8 kB / 0.5836 GB, free: 1.949 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.523e-06/0.3365, allocations: 26.86 kB / 0.5836 GB, free: 1.918 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.333e-05/0.3365, allocations: 92.36 kB / 0.5837 GB, free: 1.828 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.666e-05/0.3365, allocations: 14.58 kB / 0.5837 GB, free: 1.816 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.829e-05/0.3366, allocations: 14.14 kB / 0.5838 GB, free: 1.801 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.198e-05/0.3366, allocations: 326.2 kB / 0.5841 GB, free: 1.477 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.3368, allocations: 33.41 kB / 0.5841 GB, free: 1.473 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.3369, allocations: 31.86 kB / 0.5841 GB, free: 1.469 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002635/0.3372, allocations: 79.3 kB / 0.5842 GB, free: 1.445 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.3372, allocations: 0 / 0.5842 GB, free: 1.445 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003051/0.3375, allocations: 107 kB / 0.5843 GB, free: 1.398 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/0.3375, allocations: 7.625 kB / 0.5843 GB, free: 1.398 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.3375, allocations: 0.8438 kB / 0.5843 GB, free: 1.398 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.689e-06/0.3375, allocations: 0.9688 kB / 0.5843 GB, free: 1.398 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.3376, allocations: 19.77 kB / 0.5843 GB, free: 1.395 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.068e-06/0.3376, allocations: 5.062 kB / 0.5843 GB, free: 1.391 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.285e-05/0.3377, allocations: 10.89 kB / 0.5844 GB, free: 1.391 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.476e-05/0.3377, allocations: 2.672 kB / 0.5844 GB, free: 1.391 MB / 430.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 4.577e-05/0.3378, allocations: 120.5 kB / 0.5845 GB, free: 1.27 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.544e-05/0.3378, allocations: 5.75 kB / 0.5845 GB, free: 1.266 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003469/0.3382, allocations: 118.5 kB / 0.5846 GB, free: 1.207 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.3382, allocations: 2.031 kB / 0.5846 GB, free: 1.207 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.3382, allocations: 0.75 kB / 0.5846 GB, free: 1.207 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-06/0.3382, allocations: 3.984 kB / 0.5846 GB, free: 1.203 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000116/0.3383, allocations: 177.5 kB / 0.5848 GB, free: 1.004 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.3383, allocations: 1.062 kB / 0.5848 GB, free: 1.004 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.382e-05/0.3384, allocations: 15.8 kB / 0.5848 GB, free: 1.004 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.3384, allocations: 0.7031 kB / 0.5848 GB, free: 1.004 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-06/0.3384, allocations: 1.344 kB / 0.5848 GB, free: 1.004 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.3384, allocations: 7.938 kB / 0.5848 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3385, allocations: 1.672 kB / 0.5848 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003177/0.3388, allocations: 198.2 kB / 0.585 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.454e-05/0.3388, allocations: 86.67 kB / 0.5851 GB, free: 0.75 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.334e-05/0.3388, allocations: 4.969 kB / 0.5851 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.3389, allocations: 15.69 kB / 0.5851 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.221e-05/0.339, allocations: 4.938 kB / 0.5851 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.242e-06/0.339, allocations: 0.7812 kB / 0.5851 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of sorting global known variables: time 2.855e-05/0.339, allocations: 90.89 kB / 0.5852 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.339, allocations: 0 / 0.5852 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002136/0.3392, allocations: 14.47 kB / 0.5852 GB, free: 0.6602 MB / 430.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.0004854/0.3397, allocations: 0.7398 MB / 0.5859 GB, free: 15.98 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003322/0.3401, allocations: 82.25 kB / 0.586 GB, free: 15.96 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.3401, allocations: 0 / 0.586 GB, free: 15.96 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001495/0.3402, allocations: 38.33 kB / 0.586 GB, free: 15.96 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002411/0.3405, allocations: 7.625 kB / 0.586 GB, free: 15.95 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001574/0.3421, allocations: 1.424 MB / 0.5874 GB, free: 14.72 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002004/0.3423, allocations: 0.6894 MB / 0.5881 GB, free: 14.03 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.851e-05/0.3423, allocations: 14.42 kB / 0.5881 GB, free: 14.02 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.506e-05/0.3424, allocations: 19.23 kB / 0.5881 GB, free: 14 MB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3424, allocations: 0 / 0.5881 GB, free: 14 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9606/1.303, allocations: 1.764 MB / 0.5899 GB, free: 13.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.23/13.53, allocations: 5.359 kB / 0.5899 GB, free: 13.62 MB / 446.1 MB (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)