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.007676/0.007676, allocations: 101.9 kB / 15.74 MB, free: 6.043 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.001913/0.001913, allocations: 202.1 kB / 16.68 MB, free: 5.965 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.475/1.475, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.023/1.023, allocations: 135.6 MB / 426.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 71.89 kB / 0.5858 GB, free: 3.199 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3986/0.4006, allocations: 81.03 MB / 0.6649 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.002021/0.4026, allocations: 1.524 MB / 0.6664 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002666/0.4029, allocations: 111.6 kB / 0.6665 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.199e-05/0.4029, allocations: 1.312 kB / 0.6665 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001004/0.4031, allocations: 13.17 kB / 0.6665 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.244e-05/0.4031, allocations: 13.19 kB / 0.6665 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002015/0.4033, allocations: 26.98 kB / 0.6665 GB, free: 5.504 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.845e-05/0.4034, allocations: 63.2 kB / 0.6666 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.4035, allocations: 20.86 kB / 0.6666 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.696e-05/0.4036, allocations: 32.34 kB / 0.6666 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.446e-05/0.4036, allocations: 24.89 kB / 0.6667 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.655e-05/0.4036, allocations: 6.281 kB / 0.6667 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.268e-05/0.4037, allocations: 18.81 kB / 0.6667 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.795e-05/0.4037, allocations: 11.67 kB / 0.6667 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.486e-05/0.4038, allocations: 22.56 kB / 0.6667 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001193/0.4039, allocations: 62.5 kB / 0.6668 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.4039, allocations: 1.219 kB / 0.6668 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.283e-06/0.4039, allocations: 0 / 0.6668 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.561e-06/0.4039, allocations: 0 / 0.6668 GB, free: 5.34 MB / 0.4981 GB 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.0004231/0.4044, allocations: 385.3 kB / 0.6671 GB, free: 4.941 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.4044, allocations: 10.5 kB / 0.6672 GB, free: 4.941 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.594e-05/0.4044, allocations: 36.16 kB / 0.6672 GB, free: 4.898 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.457e-05/0.4045, allocations: 7.609 kB / 0.6672 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001005/0.4046, allocations: 187.1 kB / 0.6674 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.358e-06/0.4046, allocations: 3.031 kB / 0.6674 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.054e-05/0.4046, allocations: 2.844 kB / 0.6674 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002542/0.4049, allocations: 96.69 kB / 0.6675 GB, free: 4.609 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.4049, allocations: 3.938 kB / 0.6675 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.4049, allocations: 5.562 kB / 0.6675 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.4049, allocations: 0 / 0.6675 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003038/0.4052, allocations: 73.73 kB / 0.6676 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00041/0.4056, allocations: 331.8 kB / 0.6679 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001886/0.4058, allocations: 55.28 kB / 0.6679 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001522/0.406, allocations: 44.03 kB / 0.668 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.116e-05/0.406, allocations: 5.25 kB / 0.668 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.372e-05/0.406, allocations: 35.72 kB / 0.668 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.153e-06/0.406, allocations: 0 / 0.668 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0005404/0.4066, allocations: 138.8 kB / 0.6681 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.243e-05/0.4066, allocations: 55.41 kB / 0.6682 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.509e-05/0.4067, allocations: 128.3 kB / 0.6683 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.133e-06/0.4067, allocations: 25.7 kB / 0.6683 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.609e-05/0.4067, allocations: 98.55 kB / 0.6684 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.668e-05/0.4067, allocations: 9.25 kB / 0.6684 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.093e-05/0.4068, allocations: 16.64 kB / 0.6685 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 3.716e-05/0.4068, allocations: 321.3 kB / 0.6688 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001542/0.407, allocations: 38.2 kB / 0.6688 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001393/0.4071, allocations: 30.38 kB / 0.6688 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002803/0.4074, allocations: 74.58 kB / 0.6689 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.4074, allocations: 0 / 0.6689 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003213/0.4078, allocations: 109.4 kB / 0.669 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.4078, allocations: 4.312 kB / 0.669 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-06/0.4078, allocations: 1.062 kB / 0.669 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.4078, allocations: 0 / 0.669 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001184/0.4079, allocations: 18.7 kB / 0.669 GB, free: 3.234 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.9e-06/0.4079, allocations: 1.094 kB / 0.669 GB, free: 3.234 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.809e-05/0.408, allocations: 22.14 kB / 0.669 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.408, allocations: 5.672 kB / 0.6691 GB, free: 3.215 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.904e-05/0.4081, allocations: 117.9 kB / 0.6692 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.551e-05/0.4081, allocations: 3.344 kB / 0.6692 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003605/0.4085, allocations: 114.8 kB / 0.6693 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.4085, allocations: 5.562 kB / 0.6693 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.4085, allocations: 0 / 0.6693 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.4085, allocations: 0 / 0.6693 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001297/0.4086, allocations: 181.8 kB / 0.6695 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.4087, allocations: 1.25 kB / 0.6695 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.58e-05/0.4088, allocations: 14.27 kB / 0.6695 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.4088, allocations: 0 / 0.6695 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.265e-06/0.4088, allocations: 5.391 kB / 0.6695 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.4088, allocations: 0 / 0.6695 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4088, allocations: 0 / 0.6695 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003356/0.4091, allocations: 207.7 kB / 0.6697 GB, free: 2.609 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.934e-05/0.4092, allocations: 94.48 kB / 0.6698 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.4092, allocations: 1.625 kB / 0.6698 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.4093, allocations: 10.48 kB / 0.6698 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.959e-05/0.4093, allocations: 5.125 kB / 0.6698 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.4093, allocations: 9.484 kB / 0.6698 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.942e-05/0.4094, allocations: 88.06 kB / 0.6699 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4094, allocations: 0 / 0.6699 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002302/0.4096, allocations: 17.06 kB / 0.6699 GB, free: 2.398 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 (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.0005021/0.4101, allocations: 0.7326 MB / 0.6706 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003395/0.4105, allocations: 76.2 kB / 0.6707 GB, free: 1.672 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.4105, allocations: 3.938 kB / 0.6707 GB, free: 1.668 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001599/0.4107, allocations: 46.95 kB / 0.6707 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002722/0.4109, allocations: 2.812 kB / 0.6707 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001471/0.4124, allocations: 1.436 MB / 0.6721 GB, free: 324 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002587/0.4127, allocations: 0.6884 MB / 0.6728 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 4.064e-05/0.4127, allocations: 8.172 kB / 0.6728 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.464e-05/0.4128, allocations: 18.09 kB / 0.6728 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of SimCode: time 2.31e-07/0.4128, allocations: 0 / 0.6728 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02909/0.4419, allocations: 1.811 MB / 0.6746 GB, free: 14.6 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.514/8.956, allocations: 8.828 kB / 0.6746 GB, free: 14.59 MB / 0.5137 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/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)