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.001233/0.001233, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001414/0.001414, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.205/2.205, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.406/1.406, allocations: 132.2 MB / 423.2 MB, free: 2.184 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005545/0.000555, allocations: 11.98 kB / 0.5033 GB, free: 4.23 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8356/0.8362, allocations: 81.58 MB / 0.583 GB, free: 3.898 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.002108/0.8384, allocations: 1.234 MB / 0.5842 GB, free: 3 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003181/0.8387, allocations: 109.5 kB / 0.5843 GB, free: 2.926 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.085e-05/0.8388, allocations: 1.094 kB / 0.5843 GB, free: 2.926 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001322/0.8389, allocations: 10.7 kB / 0.5843 GB, free: 2.918 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 2.511e-05/0.839, allocations: 6.297 kB / 0.5843 GB, free: 2.914 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002157/0.8392, allocations: 26.92 kB / 0.5843 GB, free: 2.902 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 8.535e-05/0.8393, allocations: 32.5 kB / 0.5843 GB, free: 2.891 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001196/0.8394, allocations: 20.92 kB / 0.5844 GB, free: 2.883 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.361e-05/0.8395, allocations: 21.05 kB / 0.5844 GB, free: 2.875 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.497e-05/0.8396, allocations: 25.81 kB / 0.5844 GB, free: 2.863 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.446e-05/0.8396, allocations: 1.844 kB / 0.5844 GB, free: 2.863 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.772e-05/0.8397, allocations: 6.703 kB / 0.5844 GB, free: 2.863 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.706e-05/0.8397, allocations: 13.8 kB / 0.5844 GB, free: 2.855 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3e-05/0.8397, allocations: 32.61 kB / 0.5845 GB, free: 2.82 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00012/0.8399, allocations: 42.48 kB / 0.5845 GB, free: 2.809 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.8399, allocations: 0 / 0.5845 GB, free: 2.809 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.8399, allocations: 3.938 kB / 0.5845 GB, free: 2.805 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.8399, allocations: 1.125 kB / 0.5845 GB, free: 2.805 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.0005325/0.8404, allocations: 386.2 kB / 0.5849 GB, free: 2.43 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.8405, allocations: 9.469 kB / 0.5849 GB, free: 2.43 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.827e-05/0.8405, allocations: 37.88 kB / 0.5849 GB, free: 2.387 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.292e-05/0.8406, allocations: 11.08 kB / 0.5849 GB, free: 2.379 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001684/0.8408, allocations: 179.4 kB / 0.5851 GB, free: 2.176 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.026e-05/0.8408, allocations: 1.438 kB / 0.5851 GB, free: 2.176 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.449e-05/0.8408, allocations: 10.78 kB / 0.5851 GB, free: 2.168 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003184/0.8411, allocations: 98.86 kB / 0.5852 GB, free: 2.121 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.8412, allocations: 0 / 0.5852 GB, free: 2.121 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.8412, allocations: 2.172 kB / 0.5852 GB, free: 2.121 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.8412, allocations: 0.75 kB / 0.5852 GB, free: 2.121 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003779/0.8416, allocations: 103 kB / 0.5853 GB, free: 2.105 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005578/0.8421, allocations: 342 kB / 0.5856 GB, free: 1.805 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002326/0.8424, allocations: 72.14 kB / 0.5857 GB, free: 1.77 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.826e-05/0.8424, allocations: 2.25 kB / 0.5857 GB, free: 1.77 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.807e-05/0.8425, allocations: 35.78 kB / 0.5857 GB, free: 1.727 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.8425, allocations: 4.781 kB / 0.5857 GB, free: 1.723 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0006493/0.8431, allocations: 171.6 kB / 0.5859 GB, free: 1.668 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.979e-05/0.8432, allocations: 56.83 kB / 0.586 GB, free: 1.602 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.842e-05/0.8433, allocations: 119.4 kB / 0.5861 GB, free: 1.496 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.003e-05/0.8433, allocations: 25.7 kB / 0.5861 GB, free: 1.465 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.228e-05/0.8433, allocations: 93.64 kB / 0.5862 GB, free: 1.375 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.177e-05/0.8434, allocations: 18.81 kB / 0.5862 GB, free: 1.359 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.539e-06/0.8434, allocations: 0 / 0.5862 GB, free: 1.359 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.622e-05/0.8434, allocations: 318.2 kB / 0.5865 GB, free: 1.043 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001823/0.8436, allocations: 41.75 kB / 0.5866 GB, free: 1.039 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/0.8438, allocations: 46.97 kB / 0.5866 GB, free: 1.031 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001744/0.844, allocations: 46.94 kB / 0.5866 GB, free: 1.023 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.844, allocations: 0.5938 kB / 0.5866 GB, free: 1.023 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003899/0.8444, allocations: 122.2 kB / 0.5868 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.35e-05/0.8444, allocations: 6.141 kB / 0.5868 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.8444, allocations: 7.891 kB / 0.5868 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.8445, allocations: 0 / 0.5868 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001482/0.8446, allocations: 21.56 kB / 0.5868 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.8446, allocations: 0 / 0.5868 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.936e-05/0.8447, allocations: 25.33 kB / 0.5868 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.359e-05/0.8448, allocations: 0.8125 kB / 0.5868 GB, free: 0.9648 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.402e-05/0.8449, allocations: 115.4 kB / 0.5869 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.927e-05/0.8449, allocations: 7.547 kB / 0.5869 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004522/0.8453, allocations: 142.1 kB / 0.5871 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.8454, allocations: 7.891 kB / 0.5871 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.8454, allocations: 4 kB / 0.5871 GB, free: 0.7695 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.8454, allocations: 1.984 kB / 0.5871 GB, free: 0.7695 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001609/0.8456, allocations: 177.4 kB / 0.5873 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.8456, allocations: 1.375 kB / 0.5873 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.8457, allocations: 23.3 kB / 0.5873 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.848e-06/0.8457, allocations: 1.531 kB / 0.5873 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.639e-06/0.8457, allocations: 1.125 kB / 0.5873 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.8457, allocations: 0.6094 kB / 0.5873 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.8457, allocations: 7.953 kB / 0.5873 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000417/0.8462, allocations: 226.4 kB / 0.5875 GB, free: 416 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.414e-05/0.8462, allocations: 82.58 kB / 0.5876 GB, free: 316 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.032e-05/0.8462, allocations: 2.328 kB / 0.5876 GB, free: 316 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000124/0.8463, allocations: 15.03 kB / 0.5876 GB, free: 316 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.244e-05/0.8464, allocations: 12.98 kB / 0.5876 GB, free: 308 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.676e-06/0.8464, allocations: 5.094 kB / 0.5876 GB, free: 304 kB / 430.1 MB Notification: Performance of sorting global known variables: time 4.519e-05/0.8465, allocations: 91.33 kB / 0.5877 GB, free: 224 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.8465, allocations: 0 / 0.5877 GB, free: 224 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002537/0.8467, allocations: 9.031 kB / 0.5877 GB, free: 224 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007528/0.8475, allocations: 0.7551 MB / 0.5885 GB, free: 15.54 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004218/0.8479, allocations: 101.4 kB / 0.5885 GB, free: 15.52 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.848, allocations: 4 kB / 0.5886 GB, free: 15.52 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001896/0.8481, allocations: 51.33 kB / 0.5886 GB, free: 15.51 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00022/0.8484, allocations: 4.016 kB / 0.5886 GB, free: 15.51 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001435/0.8498, allocations: 0.5763 MB / 0.5892 GB, free: 15.11 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003139/0.8502, allocations: 0.6967 MB / 0.5898 GB, free: 14.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.894e-05/0.8502, allocations: 6.438 kB / 0.5899 GB, free: 14.41 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.703e-05/0.8503, allocations: 18.8 kB / 0.5899 GB, free: 14.39 MB / 446.1 MB Notification: Performance of SimCode: time 3.4e-07/0.8503, allocations: 3.938 kB / 0.5899 GB, free: 14.39 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01854/0.8688, allocations: 1.44 MB / 0.5913 GB, free: 14.23 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003609/0.8693, allocations: 167.9 kB / 0.5914 GB, free: 13.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.352/3.222, allocations: 0 / 0.5914 GB, free: 13.98 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/linux/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) Environment - environmentSimulation: