Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Average,fileNamePrefix="IDEAS_dev_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.00152/0.00152, allocations: 100.5 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.001778/0.001778, allocations: 177.3 kB / 15.94 MB, free: 228 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.182/2.182, allocations: 223.2 MB / 239.9 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.598/1.598, allocations: 135.2 MB / 426.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006021/0.0006023, allocations: 9.062 kB / 0.5069 GB, free: 5.164 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2494, allocations: 82.31 MB / 0.5873 GB, free: 3.031 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.002641/0.2521, allocations: 1.226 MB / 0.5885 GB, free: 1.793 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004789/0.2527, allocations: 120.5 kB / 0.5886 GB, free: 1.672 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.131e-05/0.2527, allocations: 0 / 0.5886 GB, free: 1.672 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001579/0.2529, allocations: 11.92 kB / 0.5886 GB, free: 1.66 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.659e-05/0.253, allocations: 3.984 kB / 0.5886 GB, free: 1.656 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002416/0.2532, allocations: 23.98 kB / 0.5886 GB, free: 1.633 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001106/0.2534, allocations: 39.88 kB / 0.5887 GB, free: 1.594 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001418/0.2535, allocations: 23.97 kB / 0.5887 GB, free: 1.57 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.482e-05/0.2536, allocations: 19.92 kB / 0.5887 GB, free: 1.551 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.017e-05/0.2537, allocations: 19.92 kB / 0.5887 GB, free: 1.531 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.792e-05/0.2538, allocations: 0 / 0.5887 GB, free: 1.531 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.822e-05/0.2539, allocations: 11.98 kB / 0.5887 GB, free: 1.52 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.378e-05/0.2539, allocations: 15.92 kB / 0.5888 GB, free: 1.504 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.299e-05/0.254, allocations: 29.7 kB / 0.5888 GB, free: 1.469 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001223/0.2541, allocations: 35.92 kB / 0.5888 GB, free: 1.434 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.2541, allocations: 0 / 0.5888 GB, free: 1.434 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.2542, allocations: 0 / 0.5888 GB, free: 1.434 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.2542, allocations: 0 / 0.5888 GB, free: 1.434 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.0007718/0.255, allocations: 387.3 kB / 0.5892 GB, free: 1.008 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/0.255, allocations: 8.031 kB / 0.5892 GB, free: 1 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.872e-05/0.2551, allocations: 42.5 kB / 0.5892 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.966e-05/0.2551, allocations: 3.906 kB / 0.5892 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002364/0.2554, allocations: 183 kB / 0.5894 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.2554, allocations: 7.938 kB / 0.5894 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.865e-05/0.2555, allocations: 0 / 0.5894 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004965/0.256, allocations: 101.6 kB / 0.5895 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.256, allocations: 0 / 0.5895 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.862e-05/0.256, allocations: 8 kB / 0.5895 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.2561, allocations: 0 / 0.5895 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006387/0.2567, allocations: 99.86 kB / 0.5896 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008895/0.2576, allocations: 340.7 kB / 0.5899 GB, free: 128 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003916/0.258, allocations: 74.56 kB / 0.59 GB, free: 44 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.356e-05/0.2581, allocations: 0 / 0.59 GB, free: 44 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.729e-05/0.2582, allocations: 34.61 kB / 0.59 GB, free: 0 / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 2.254e-06/0.2582, allocations: 4.094 kB / 0.5901 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.001088/0.2593, allocations: 173.4 kB / 0.5902 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.685e-05/0.2594, allocations: 55.34 kB / 0.5903 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001428/0.2595, allocations: 123.5 kB / 0.5904 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.371e-05/0.2596, allocations: 25.7 kB / 0.5904 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.059e-05/0.2597, allocations: 96.06 kB / 0.5905 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.774e-05/0.2597, allocations: 19.8 kB / 0.5905 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.093e-06/0.2597, allocations: 4 kB / 0.5905 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001674/0.2599, allocations: 314.8 kB / 0.5908 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002897/0.2602, allocations: 39.97 kB / 0.5909 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002951/0.2605, allocations: 47.95 kB / 0.5909 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000285/0.2608, allocations: 44.25 kB / 0.591 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2609, allocations: 4 kB / 0.591 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006932/0.2616, allocations: 129.6 kB / 0.5911 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.2616, allocations: 4 kB / 0.5911 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.2616, allocations: 0 / 0.5911 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/0.2617, allocations: 3.953 kB / 0.5911 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002405/0.2619, allocations: 27.91 kB / 0.5911 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.2619, allocations: 0 / 0.5911 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001678/0.2621, allocations: 19.98 kB / 0.5911 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.109e-05/0.2622, allocations: 4 kB / 0.5911 GB, free: 14.83 MB / 0.4981 GB 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 0.000135/0.2623, allocations: 113.8 kB / 0.5912 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.339e-05/0.2624, allocations: 3.906 kB / 0.5913 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007709/0.2632, allocations: 137.5 kB / 0.5914 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.2632, allocations: 0 / 0.5914 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.757e-06/0.2632, allocations: 7.891 kB / 0.5914 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.2632, allocations: 0 / 0.5914 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003337/0.2636, allocations: 177.6 kB / 0.5916 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.2636, allocations: 4 kB / 0.5916 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002001/0.2638, allocations: 19.98 kB / 0.5916 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.2638, allocations: 3.938 kB / 0.5916 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.912e-05/0.2639, allocations: 8 kB / 0.5916 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.2639, allocations: 3.984 kB / 0.5916 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.2639, allocations: 0 / 0.5916 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007351/0.2646, allocations: 227.3 kB / 0.5918 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.589e-05/0.2647, allocations: 81.09 kB / 0.5919 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.641e-05/0.2648, allocations: 3.938 kB / 0.5919 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002319/0.265, allocations: 15.98 kB / 0.5919 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.973e-05/0.2651, allocations: 4 kB / 0.5919 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.667e-05/0.2651, allocations: 3.984 kB / 0.5919 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.378e-05/0.2652, allocations: 95.06 kB / 0.592 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.31e-07/0.2652, allocations: 4 kB / 0.592 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004799/0.2657, allocations: 15.94 kB / 0.592 GB, free: 13.82 MB / 0.4981 GB 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.001259/0.267, allocations: 0.7592 MB / 0.5928 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006528/0.2677, allocations: 95.92 kB / 0.5929 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.2677, allocations: 0 / 0.5929 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003212/0.268, allocations: 59.89 kB / 0.5929 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003374/0.2684, allocations: 4 kB / 0.5929 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002006/0.2704, allocations: 0.5706 MB / 0.5935 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003685/0.2708, allocations: 0.6887 MB / 0.5942 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.781e-05/0.2709, allocations: 19.92 kB / 0.5942 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.187e-05/0.271, allocations: 11.44 kB / 0.5942 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of SimCode: time 7.31e-07/0.271, allocations: 0 / 0.5942 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02527/0.2963, allocations: 1.463 MB / 0.5956 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003189/0.2967, allocations: 161.9 kB / 0.5958 GB, free: 9.934 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.826/3.123, allocations: 0 / 0.5958 GB, free: 9.934 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_Average.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.pipe 2>&1) Environment - environmentSimulation: