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.004893/0.004893, allocations: 96.64 kB / 15.73 MB, free: 6.484 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.001381/0.001381, allocations: 189.7 kB / 16.67 MB, free: 6.391 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.504/1.504, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.013/1.013, allocations: 135.6 MB / 426.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00204/0.00204, allocations: 71.88 kB / 0.5858 GB, free: 3.223 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4039/0.406, allocations: 81.02 MB / 0.6649 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.00205/0.408, allocations: 1.52 MB / 0.6664 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002507/0.4083, allocations: 117.1 kB / 0.6665 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.174e-05/0.4084, allocations: 0 / 0.6665 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 9.901e-05/0.4085, allocations: 5.344 kB / 0.6665 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.609e-05/0.4085, allocations: 13.16 kB / 0.6665 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001943/0.4087, allocations: 31.52 kB / 0.6665 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.586e-05/0.4088, allocations: 62.08 kB / 0.6666 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.4089, allocations: 29.05 kB / 0.6666 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.929e-05/0.409, allocations: 25.39 kB / 0.6666 GB, free: 5.531 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.684e-05/0.409, allocations: 28.75 kB / 0.6667 GB, free: 5.512 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.617e-05/0.4091, allocations: 4.312 kB / 0.6667 GB, free: 5.512 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.395e-05/0.4091, allocations: 12.75 kB / 0.6667 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.603e-05/0.4092, allocations: 15.77 kB / 0.6667 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.217e-05/0.4092, allocations: 29.03 kB / 0.6667 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001218/0.4093, allocations: 56.58 kB / 0.6668 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.4093, allocations: 0 / 0.6668 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.383e-06/0.4093, allocations: 0 / 0.6668 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.129e-06/0.4093, allocations: 0 / 0.6668 GB, free: 5.438 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.000422/0.4098, allocations: 385.7 kB / 0.6671 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.4098, allocations: 9.656 kB / 0.6672 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.638e-05/0.4098, allocations: 41.41 kB / 0.6672 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.572e-05/0.4099, allocations: 7.328 kB / 0.6672 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001162/0.41, allocations: 195.8 kB / 0.6674 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.933e-06/0.41, allocations: 1.844 kB / 0.6674 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.435e-05/0.41, allocations: 3.312 kB / 0.6674 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002489/0.4103, allocations: 88.2 kB / 0.6675 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.4103, allocations: 3.938 kB / 0.6675 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.506e-06/0.4103, allocations: 5.031 kB / 0.6675 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.4103, allocations: 1.531 kB / 0.6675 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002983/0.4106, allocations: 80.66 kB / 0.6676 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003976/0.411, allocations: 327.4 kB / 0.6679 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001807/0.4112, allocations: 59.44 kB / 0.6679 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.4114, allocations: 36.39 kB / 0.668 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.127e-05/0.4114, allocations: 6.188 kB / 0.668 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.466e-05/0.4114, allocations: 38.55 kB / 0.668 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.163e-06/0.4114, allocations: 1.406 kB / 0.668 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0005193/0.412, allocations: 138.2 kB / 0.6681 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.738e-05/0.412, allocations: 51.41 kB / 0.6682 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.564e-05/0.4121, allocations: 126.7 kB / 0.6683 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.614e-06/0.4121, allocations: 27.05 kB / 0.6683 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.57e-05/0.4121, allocations: 94.41 kB / 0.6684 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.624e-05/0.4121, allocations: 13.06 kB / 0.6684 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.984e-05/0.4122, allocations: 13.91 kB / 0.6685 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 3.756e-05/0.4122, allocations: 319.8 kB / 0.6688 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001475/0.4123, allocations: 38.3 kB / 0.6688 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/0.4125, allocations: 35.42 kB / 0.6688 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002653/0.4128, allocations: 69.25 kB / 0.6689 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.4128, allocations: 1.062 kB / 0.6689 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003039/0.4131, allocations: 108.5 kB / 0.669 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.4131, allocations: 8.062 kB / 0.669 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.4131, allocations: 7.969 kB / 0.669 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.4131, allocations: 1.312 kB / 0.669 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.4132, allocations: 13.86 kB / 0.669 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.4133, allocations: 0 / 0.669 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.406e-05/0.4133, allocations: 15.75 kB / 0.669 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.659e-05/0.4134, allocations: 5.547 kB / 0.669 GB, free: 3.316 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.746e-05/0.4134, allocations: 121.1 kB / 0.6692 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.415e-05/0.4134, allocations: 3.188 kB / 0.6692 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003459/0.4138, allocations: 123.3 kB / 0.6693 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.145e-06/0.4138, allocations: 1.562 kB / 0.6693 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.4138, allocations: 4 kB / 0.6693 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.4138, allocations: 0 / 0.6693 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001176/0.4139, allocations: 179 kB / 0.6695 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.414, allocations: 0 / 0.6695 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.188e-05/0.4141, allocations: 17.97 kB / 0.6695 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.4141, allocations: 1.469 kB / 0.6695 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.4141, allocations: 4 kB / 0.6695 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.4141, allocations: 0 / 0.6695 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.4141, allocations: 1.438 kB / 0.6695 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003185/0.4144, allocations: 203.2 kB / 0.6697 GB, free: 2.703 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.585e-05/0.4144, allocations: 86.22 kB / 0.6698 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.456e-05/0.4144, allocations: 5.25 kB / 0.6698 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.4146, allocations: 14.27 kB / 0.6698 GB, free: 2.59 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.747e-05/0.4146, allocations: 6.859 kB / 0.6698 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.4146, allocations: 7.938 kB / 0.6698 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.793e-05/0.4146, allocations: 92.67 kB / 0.6699 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4146, allocations: 0 / 0.6699 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002195/0.4149, allocations: 12.66 kB / 0.6699 GB, free: 2.492 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.0004824/0.4154, allocations: 0.7317 MB / 0.6706 GB, free: 1.797 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003316/0.4157, allocations: 76.27 kB / 0.6707 GB, free: 1.766 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.4157, allocations: 0 / 0.6707 GB, free: 1.766 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001526/0.4159, allocations: 43.98 kB / 0.6707 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002649/0.4161, allocations: 6.844 kB / 0.6707 GB, free: 1.742 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001413/0.4176, allocations: 1.431 MB / 0.6721 GB, free: 428 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002184/0.4178, allocations: 0.6891 MB / 0.6728 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.887e-05/0.4178, allocations: 7.297 kB / 0.6728 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.53e-05/0.4179, allocations: 14.72 kB / 0.6728 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of SimCode: time 2.3e-07/0.4179, allocations: 0 / 0.6728 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02195/0.4398, allocations: 1.813 MB / 0.6746 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.895/8.335, allocations: 13.8 kB / 0.6746 GB, free: 14.69 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Examples.Average_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Utilities_Math_Examples_Average.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.pipe 2>&1)