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.000723/0.000723, allocations: 98.19 kB / 15.36 MB, free: 0.7305 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.0007557/0.0007557, allocations: 172.6 kB / 16.26 MB, free: 6.664 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.214/1.214, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6809/0.6809, allocations: 132.3 MB / 423.7 MB, free: 1.992 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002772/0.0002772, allocations: 12.75 kB / 0.5041 GB, free: 3.789 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3438, allocations: 81.57 MB / 0.5837 GB, free: 4.051 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.001399/0.3453, allocations: 1.254 MB / 0.585 GB, free: 3.137 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.000281/0.3456, allocations: 111.3 kB / 0.5851 GB, free: 3.059 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.765e-05/0.3456, allocations: 1.281 kB / 0.5851 GB, free: 3.059 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 8.146e-05/0.3457, allocations: 8.094 kB / 0.5851 GB, free: 3.055 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 2.401e-05/0.3457, allocations: 6.938 kB / 0.5851 GB, free: 3.051 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001644/0.3459, allocations: 22.11 kB / 0.5851 GB, free: 3.043 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 7.713e-05/0.346, allocations: 50.16 kB / 0.5852 GB, free: 3.023 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.084e-05/0.3461, allocations: 31.2 kB / 0.5852 GB, free: 3.008 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.812e-05/0.3462, allocations: 19.81 kB / 0.5852 GB, free: 3 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.652e-05/0.3462, allocations: 29.86 kB / 0.5852 GB, free: 2.984 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.436e-05/0.3462, allocations: 1.719 kB / 0.5852 GB, free: 2.984 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.587e-05/0.3463, allocations: 7.297 kB / 0.5852 GB, free: 2.984 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.346e-05/0.3463, allocations: 11.08 kB / 0.5853 GB, free: 2.98 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.386e-05/0.3464, allocations: 49.33 kB / 0.5853 GB, free: 2.934 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001063/0.3465, allocations: 61.64 kB / 0.5854 GB, free: 2.906 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.3465, allocations: 0.6094 kB / 0.5854 GB, free: 2.906 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.3465, allocations: 0 / 0.5854 GB, free: 2.906 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.166e-06/0.3465, allocations: 3.938 kB / 0.5854 GB, free: 2.902 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.0004079/0.3469, allocations: 379.4 kB / 0.5857 GB, free: 2.531 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.347, allocations: 13.5 kB / 0.5857 GB, free: 2.527 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.692e-05/0.347, allocations: 33.27 kB / 0.5858 GB, free: 2.488 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.382e-05/0.347, allocations: 8.719 kB / 0.5858 GB, free: 2.484 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001049/0.3471, allocations: 189.1 kB / 0.586 GB, free: 2.277 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.933e-06/0.3471, allocations: 5.5 kB / 0.586 GB, free: 2.273 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.429e-05/0.3472, allocations: 3.719 kB / 0.586 GB, free: 2.273 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002751/0.3474, allocations: 107.2 kB / 0.5861 GB, free: 2.219 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.118e-06/0.3475, allocations: 3.938 kB / 0.5861 GB, free: 2.215 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.3475, allocations: 1.516 kB / 0.5861 GB, free: 2.215 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.3475, allocations: 1.281 kB / 0.5861 GB, free: 2.215 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003211/0.3478, allocations: 102.9 kB / 0.5862 GB, free: 2.199 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004455/0.3483, allocations: 334.5 kB / 0.5865 GB, free: 1.906 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001919/0.3485, allocations: 71.88 kB / 0.5866 GB, free: 1.871 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000155/0.3486, allocations: 48.88 kB / 0.5866 GB, free: 1.859 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.245e-05/0.3487, allocations: 3.25 kB / 0.5866 GB, free: 1.859 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.348e-05/0.3487, allocations: 39.5 kB / 0.5867 GB, free: 1.812 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.3487, allocations: 0 / 0.5867 GB, free: 1.812 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005456/0.3492, allocations: 175.7 kB / 0.5868 GB, free: 1.754 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.605e-05/0.3493, allocations: 52.5 kB / 0.5869 GB, free: 1.691 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.598e-05/0.3493, allocations: 116.8 kB / 0.587 GB, free: 1.586 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.205e-06/0.3494, allocations: 33.7 kB / 0.587 GB, free: 1.547 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.932e-05/0.3494, allocations: 93.78 kB / 0.5871 GB, free: 1.457 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.687e-05/0.3494, allocations: 9.953 kB / 0.5871 GB, free: 1.449 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.038e-05/0.3494, allocations: 11.81 kB / 0.5871 GB, free: 1.434 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.146e-05/0.3495, allocations: 321.4 kB / 0.5874 GB, free: 1.113 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001621/0.3496, allocations: 46.08 kB / 0.5875 GB, free: 1.105 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001528/0.3498, allocations: 43.52 kB / 0.5875 GB, free: 1.102 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003001/0.3501, allocations: 94.88 kB / 0.5876 GB, free: 1.082 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3501, allocations: 0 / 0.5876 GB, free: 1.082 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003354/0.3505, allocations: 133.8 kB / 0.5877 GB, free: 1.027 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.3505, allocations: 5.25 kB / 0.5877 GB, free: 1.027 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.3505, allocations: 4.656 kB / 0.5877 GB, free: 1.023 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.3505, allocations: 0.9375 kB / 0.5877 GB, free: 1.023 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.3506, allocations: 20.33 kB / 0.5878 GB, free: 1.023 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.767e-06/0.3506, allocations: 0.7188 kB / 0.5878 GB, free: 1.023 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.015e-05/0.3507, allocations: 17.42 kB / 0.5878 GB, free: 1.023 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.389e-05/0.3508, allocations: 5.5 kB / 0.5878 GB, free: 1.02 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 5.056e-05/0.3508, allocations: 119.7 kB / 0.5879 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.543e-05/0.3508, allocations: 4.266 kB / 0.5879 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003743/0.3512, allocations: 141.3 kB / 0.588 GB, free: 0.8359 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3512, allocations: 5 kB / 0.588 GB, free: 0.832 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.3512, allocations: 0 / 0.588 GB, free: 0.832 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.3512, allocations: 1.156 kB / 0.588 GB, free: 0.832 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001298/0.3514, allocations: 185.6 kB / 0.5882 GB, free: 0.625 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3514, allocations: 0.6875 kB / 0.5882 GB, free: 0.625 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.803e-05/0.3515, allocations: 24.91 kB / 0.5882 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.3515, allocations: 4.5 kB / 0.5882 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.121e-06/0.3515, allocations: 4.5 kB / 0.5883 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.3515, allocations: 5.094 kB / 0.5883 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3515, allocations: 1.625 kB / 0.5883 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003622/0.3519, allocations: 225.7 kB / 0.5885 GB, free: 468 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.652e-05/0.3519, allocations: 85.98 kB / 0.5886 GB, free: 364 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.282e-05/0.3519, allocations: 5.984 kB / 0.5886 GB, free: 360 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.352, allocations: 16.09 kB / 0.5886 GB, free: 360 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.303e-05/0.3521, allocations: 4.141 kB / 0.5886 GB, free: 360 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.193e-06/0.3521, allocations: 1.938 kB / 0.5886 GB, free: 360 kB / 430.1 MB Notification: Performance of sorting global known variables: time 3.317e-05/0.3521, allocations: 91.72 kB / 0.5887 GB, free: 280 kB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3521, allocations: 0 / 0.5887 GB, free: 280 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.000215/0.3524, allocations: 17.08 kB / 0.5887 GB, free: 272 kB / 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.0005907/0.353, allocations: 0.751 MB / 0.5894 GB, free: 15.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003463/0.3533, allocations: 100.8 kB / 0.5895 GB, free: 15.57 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.3533, allocations: 0 / 0.5895 GB, free: 15.57 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001705/0.3535, allocations: 55.67 kB / 0.5896 GB, free: 15.56 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002376/0.3537, allocations: 3.172 kB / 0.5896 GB, free: 15.56 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/0.3554, allocations: 1.495 MB / 0.591 GB, free: 14.31 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002034/0.3556, allocations: 0.6925 MB / 0.5917 GB, free: 13.61 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.96e-05/0.3557, allocations: 7.031 kB / 0.5917 GB, free: 13.61 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.662e-05/0.3557, allocations: 19.91 kB / 0.5917 GB, free: 13.59 MB / 446.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3557, allocations: 0 / 0.5917 GB, free: 13.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1155/0.4713, allocations: 1.469 MB / 0.5932 GB, free: 13.42 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000173/0.4715, allocations: 179.1 kB / 0.5933 GB, free: 13.16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.664/2.136, allocations: 1.375 kB / 0.5933 GB, free: 13.16 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)