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.008323/0.00833, allocations: 95.3 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.001705/0.001705, allocations: 191.1 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.372/1.372, 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 0.9553/0.9553, allocations: 135.1 MB / 425.7 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 59.91 kB / 0.5851 GB, free: 3.824 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3852/0.3864, allocations: 80.91 MB / 0.6642 GB, free: 7.242 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.002201/0.3887, allocations: 1.537 MB / 0.6657 GB, free: 6.043 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002871/0.389, allocations: 121.4 kB / 0.6658 GB, free: 5.945 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.913e-05/0.3891, allocations: 1.188 kB / 0.6658 GB, free: 5.945 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001186/0.3892, allocations: 7.938 kB / 0.6658 GB, free: 5.938 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.541e-05/0.3892, allocations: 13.02 kB / 0.6658 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000225/0.3895, allocations: 28.39 kB / 0.6658 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 9.602e-05/0.3896, allocations: 58.25 kB / 0.6659 GB, free: 5.871 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.3897, allocations: 25.05 kB / 0.6659 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.168e-05/0.3897, allocations: 21.36 kB / 0.6659 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.791e-05/0.3898, allocations: 29 kB / 0.666 GB, free: 5.828 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.816e-05/0.3898, allocations: 4.594 kB / 0.666 GB, free: 5.828 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.9e-05/0.3899, allocations: 15.25 kB / 0.666 GB, free: 5.82 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.246e-05/0.39, allocations: 21.69 kB / 0.666 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.863e-05/0.39, allocations: 25.11 kB / 0.666 GB, free: 5.785 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001402/0.3902, allocations: 54.98 kB / 0.6661 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.3902, allocations: 0 / 0.6661 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3902, allocations: 1.375 kB / 0.6661 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.163e-05/0.3902, allocations: 0 / 0.6661 GB, free: 5.75 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.0005149/0.3907, allocations: 385.3 kB / 0.6664 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.3908, allocations: 17.53 kB / 0.6665 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.419e-05/0.3908, allocations: 32.03 kB / 0.6665 GB, free: 5.305 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.79e-05/0.3908, allocations: 11.64 kB / 0.6665 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/0.391, allocations: 188.7 kB / 0.6667 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.391, allocations: 5.469 kB / 0.6667 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.187e-05/0.3911, allocations: 2.562 kB / 0.6667 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002847/0.3913, allocations: 89.36 kB / 0.6668 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.3914, allocations: 7.922 kB / 0.6668 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.3914, allocations: 5.531 kB / 0.6668 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.3914, allocations: 0 / 0.6668 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003061/0.3917, allocations: 81.78 kB / 0.6669 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004443/0.3922, allocations: 323.4 kB / 0.6672 GB, free: 4.645 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002005/0.3924, allocations: 63.03 kB / 0.6672 GB, free: 4.598 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001441/0.3925, allocations: 37.08 kB / 0.6673 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.699e-05/0.3926, allocations: 5.234 kB / 0.6673 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.71e-05/0.3926, allocations: 32.19 kB / 0.6673 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.402e-06/0.3926, allocations: 4 kB / 0.6673 GB, free: 4.531 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.000523/0.3931, allocations: 141.1 kB / 0.6674 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.102e-05/0.3931, allocations: 52.53 kB / 0.6675 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.488e-05/0.3932, allocations: 119 kB / 0.6676 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.586e-06/0.3932, allocations: 31.36 kB / 0.6676 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.77e-05/0.3933, allocations: 94.72 kB / 0.6677 GB, free: 4.141 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.761e-05/0.3933, allocations: 9.188 kB / 0.6677 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.054e-05/0.3933, allocations: 16.28 kB / 0.6678 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 3.835e-05/0.3934, allocations: 320.1 kB / 0.6681 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001381/0.3935, allocations: 31.38 kB / 0.6681 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000128/0.3936, allocations: 38.67 kB / 0.6681 GB, free: 3.762 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002548/0.3939, allocations: 73.66 kB / 0.6682 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3939, allocations: 0 / 0.6682 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002975/0.3942, allocations: 112.7 kB / 0.6683 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.3942, allocations: 5.344 kB / 0.6683 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.3942, allocations: 0 / 0.6683 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.3943, allocations: 1.5 kB / 0.6683 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.3944, allocations: 14.83 kB / 0.6683 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.3944, allocations: 0 / 0.6683 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.036e-05/0.3945, allocations: 10.64 kB / 0.6683 GB, free: 3.641 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.808e-05/0.3945, allocations: 9.125 kB / 0.6683 GB, free: 3.633 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 5.058e-05/0.3945, allocations: 123.7 kB / 0.6685 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.599e-05/0.3946, allocations: 2.406 kB / 0.6685 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003374/0.3949, allocations: 115.7 kB / 0.6686 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.3949, allocations: 0.9375 kB / 0.6686 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3949, allocations: 0 / 0.6686 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.3949, allocations: 3.984 kB / 0.6686 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001288/0.3951, allocations: 183.7 kB / 0.6688 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.3951, allocations: 384 / 0.6688 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.92e-05/0.3952, allocations: 17.86 kB / 0.6688 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.3952, allocations: 1.188 kB / 0.6688 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.3952, allocations: 0 / 0.6688 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3952, allocations: 1.188 kB / 0.6688 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3952, allocations: 0 / 0.6688 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003318/0.3955, allocations: 211.7 kB / 0.669 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.134e-05/0.3956, allocations: 86.72 kB / 0.6691 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.498e-05/0.3956, allocations: 3.938 kB / 0.6691 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.3957, allocations: 14.8 kB / 0.6691 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.91e-05/0.3958, allocations: 10.58 kB / 0.6691 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.654e-06/0.3958, allocations: 1.469 kB / 0.6691 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.346e-05/0.3958, allocations: 99.45 kB / 0.6692 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3958, allocations: 0 / 0.6692 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000234/0.396, allocations: 13.41 kB / 0.6692 GB, free: 2.805 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.0005696/0.3966, allocations: 0.733 MB / 0.6699 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003492/0.397, allocations: 83.56 kB / 0.67 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.397, allocations: 1.156 kB / 0.67 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001484/0.3971, allocations: 35.06 kB / 0.67 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002909/0.3974, allocations: 10.28 kB / 0.67 GB, free: 2.051 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00146/0.3989, allocations: 1.414 MB / 0.6714 GB, free: 0.7422 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001013/0.399, allocations: 0.6924 MB / 0.6721 GB, free: 36 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.262e-05/0.3991, allocations: 9.328 kB / 0.6721 GB, free: 32 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.473e-05/0.3991, allocations: 16.53 kB / 0.6721 GB, free: 16 kB / 0.4981 GB Notification: Performance of SimCode: time 2.91e-07/0.3991, allocations: 1.156 kB / 0.6721 GB, free: 16 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01977/0.4189, allocations: 1.816 MB / 0.6739 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.724/8.143, allocations: 7.516 kB / 0.6739 GB, free: 15 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)