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.0007414/0.0007413, allocations: 86.33 kB / 15.06 MB, free: 1.09 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.0007856/0.0007857, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 223.3 MB / 240 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7336/0.7336, allocations: 132.3 MB / 423.4 MB, free: 2.066 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002952/0.0002952, allocations: 8.844 kB / 0.5035 GB, free: 4.16 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3823/0.3827, allocations: 81.56 MB / 0.5831 GB, free: 4.012 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.001719/0.3844, allocations: 1.243 MB / 0.5844 GB, free: 3.105 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002997/0.3847, allocations: 114.8 kB / 0.5845 GB, free: 3.023 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.439e-05/0.3848, allocations: 1.219 kB / 0.5845 GB, free: 3.023 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001111/0.3849, allocations: 7.391 kB / 0.5845 GB, free: 3.02 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 2.367e-05/0.385, allocations: 6 kB / 0.5845 GB, free: 3.016 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000216/0.3852, allocations: 23.92 kB / 0.5845 GB, free: 3.008 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 8.149e-05/0.3853, allocations: 46.64 kB / 0.5845 GB, free: 2.988 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.111e-05/0.3854, allocations: 26.86 kB / 0.5846 GB, free: 2.977 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.277e-05/0.3854, allocations: 20.62 kB / 0.5846 GB, free: 2.969 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.224e-05/0.3855, allocations: 21.12 kB / 0.5846 GB, free: 2.961 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.457e-05/0.3855, allocations: 2.344 kB / 0.5846 GB, free: 2.961 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.999e-05/0.3856, allocations: 10.48 kB / 0.5846 GB, free: 2.957 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.112e-05/0.3856, allocations: 11.03 kB / 0.5846 GB, free: 2.953 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.669e-05/0.3856, allocations: 32.02 kB / 0.5847 GB, free: 2.918 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001003/0.3857, allocations: 46.59 kB / 0.5847 GB, free: 2.902 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3858, allocations: 0 / 0.5847 GB, free: 2.902 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.3858, allocations: 1.125 kB / 0.5847 GB, free: 2.902 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.3858, allocations: 0 / 0.5847 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.000453/0.3862, allocations: 387.8 kB / 0.5851 GB, free: 2.527 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.3863, allocations: 8.875 kB / 0.5851 GB, free: 2.527 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.374e-05/0.3863, allocations: 32.95 kB / 0.5851 GB, free: 2.488 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.656e-05/0.3864, allocations: 15.06 kB / 0.5851 GB, free: 2.477 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.3865, allocations: 180.2 kB / 0.5853 GB, free: 2.273 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.849e-06/0.3865, allocations: 1.531 kB / 0.5853 GB, free: 2.273 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.128e-05/0.3865, allocations: 7.469 kB / 0.5853 GB, free: 2.27 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002786/0.3868, allocations: 94.69 kB / 0.5854 GB, free: 2.227 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.3868, allocations: 0 / 0.5854 GB, free: 2.227 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/0.3868, allocations: 9.344 kB / 0.5854 GB, free: 2.219 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.3869, allocations: 0 / 0.5854 GB, free: 2.219 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003094/0.3872, allocations: 103.6 kB / 0.5855 GB, free: 2.203 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004709/0.3876, allocations: 346.7 kB / 0.5858 GB, free: 1.898 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002055/0.3879, allocations: 68.62 kB / 0.5859 GB, free: 1.867 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001576/0.388, allocations: 55.89 kB / 0.586 GB, free: 1.848 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.918e-05/0.3881, allocations: 2.109 kB / 0.586 GB, free: 1.848 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.891e-05/0.3881, allocations: 36.22 kB / 0.586 GB, free: 1.805 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.3881, allocations: 0.9062 kB / 0.586 GB, free: 1.805 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005569/0.3887, allocations: 178.3 kB / 0.5862 GB, free: 1.742 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.284e-05/0.3887, allocations: 52.89 kB / 0.5862 GB, free: 1.68 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.133e-05/0.3888, allocations: 115.9 kB / 0.5863 GB, free: 1.574 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.139e-05/0.3888, allocations: 26.27 kB / 0.5864 GB, free: 1.543 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.813e-05/0.3889, allocations: 93.38 kB / 0.5864 GB, free: 1.453 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.088e-05/0.3889, allocations: 14.69 kB / 0.5865 GB, free: 1.441 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.348e-06/0.3889, allocations: 4 kB / 0.5865 GB, free: 1.438 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.064e-05/0.389, allocations: 318.4 kB / 0.5868 GB, free: 1.121 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.3891, allocations: 42.3 kB / 0.5868 GB, free: 1.117 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001412/0.3893, allocations: 47.02 kB / 0.5869 GB, free: 1.109 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001522/0.3895, allocations: 42.38 kB / 0.5869 GB, free: 1.105 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3895, allocations: 4 kB / 0.5869 GB, free: 1.102 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003429/0.3898, allocations: 130.6 kB / 0.587 GB, free: 1.051 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.3898, allocations: 7.219 kB / 0.587 GB, free: 1.051 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.3898, allocations: 1.031 kB / 0.587 GB, free: 1.051 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.3899, allocations: 0.6562 kB / 0.587 GB, free: 1.051 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.39, allocations: 21.17 kB / 0.5871 GB, free: 1.051 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.39, allocations: 0 / 0.5871 GB, free: 1.051 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.23e-05/0.3901, allocations: 25.14 kB / 0.5871 GB, free: 1.043 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.3901, allocations: 1.156 kB / 0.5871 GB, free: 1.043 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 6.606e-05/0.3902, allocations: 113.5 kB / 0.5872 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.749e-05/0.3902, allocations: 9.953 kB / 0.5872 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000383/0.3906, allocations: 141.8 kB / 0.5873 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.3906, allocations: 0.7812 kB / 0.5873 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.3906, allocations: 0.9688 kB / 0.5873 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.3907, allocations: 0.75 kB / 0.5873 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001499/0.3908, allocations: 182.3 kB / 0.5875 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3908, allocations: 8 kB / 0.5875 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.52e-05/0.3909, allocations: 21.56 kB / 0.5875 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.3909, allocations: 0 / 0.5875 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.3909, allocations: 5.016 kB / 0.5875 GB, free: 0.6445 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.3909, allocations: 2.406 kB / 0.5875 GB, free: 0.6445 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.391, allocations: 0 / 0.5875 GB, free: 0.6445 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003403/0.3913, allocations: 225.4 kB / 0.5878 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.784e-05/0.3913, allocations: 82.42 kB / 0.5878 GB, free: 404 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.524e-05/0.3913, allocations: 2.078 kB / 0.5878 GB, free: 404 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/0.3915, allocations: 23.61 kB / 0.5879 GB, free: 396 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.522e-05/0.3915, allocations: 4.859 kB / 0.5879 GB, free: 396 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.882e-06/0.3915, allocations: 1.766 kB / 0.5879 GB, free: 396 kB / 430.1 MB Notification: Performance of sorting global known variables: time 3.563e-05/0.3915, allocations: 90.61 kB / 0.588 GB, free: 316 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3916, allocations: 7.938 kB / 0.588 GB, free: 308 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.00022/0.3918, allocations: 9.391 kB / 0.588 GB, free: 308 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.0006069/0.3924, allocations: 0.755 MB / 0.5887 GB, free: 15.62 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000339/0.3927, allocations: 103.5 kB / 0.5888 GB, free: 15.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3928, allocations: 1.375 kB / 0.5888 GB, free: 15.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001564/0.3929, allocations: 51.14 kB / 0.5889 GB, free: 15.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002889/0.3932, allocations: 13.95 kB / 0.5889 GB, free: 15.59 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001154/0.3944, allocations: 0.5735 MB / 0.5894 GB, free: 15.19 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002668/0.3947, allocations: 0.6892 MB / 0.5901 GB, free: 14.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.652e-05/0.3947, allocations: 11.67 kB / 0.5901 GB, free: 14.49 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.114e-05/0.3948, allocations: 18.39 kB / 0.5901 GB, free: 14.48 MB / 446.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3948, allocations: 0 / 0.5901 GB, free: 14.48 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01201/0.4068, allocations: 1.458 MB / 0.5916 GB, free: 14.31 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002173/0.407, allocations: 159.2 kB / 0.5917 GB, free: 14.08 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.646/2.053, allocations: 0 / 0.5917 GB, free: 14.08 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: