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.001097/0.001097, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001279/0.001278, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.32/1.32, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.763/0.763, allocations: 132.2 MB / 422.6 MB, free: 1.773 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 67.61 kB / 0.5019 GB, free: 3.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4187/0.42, allocations: 80.2 MB / 0.5802 GB, free: 4.562 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.002537/0.4226, allocations: 1.528 MB / 0.5817 GB, free: 3.496 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002775/0.4229, allocations: 121.9 kB / 0.5818 GB, free: 3.41 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.022e-05/0.4229, allocations: 0.9375 kB / 0.5818 GB, free: 3.41 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 9.944e-05/0.4231, allocations: 11.2 kB / 0.5818 GB, free: 3.402 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 2.405e-05/0.4231, allocations: 9.609 kB / 0.5818 GB, free: 3.395 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002053/0.4233, allocations: 24.86 kB / 0.5818 GB, free: 3.387 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 9.123e-05/0.4234, allocations: 55.02 kB / 0.5819 GB, free: 3.363 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.4235, allocations: 24.34 kB / 0.5819 GB, free: 3.355 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.373e-05/0.4236, allocations: 30.05 kB / 0.5819 GB, free: 3.34 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.387e-05/0.4237, allocations: 28.48 kB / 0.582 GB, free: 3.328 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.706e-05/0.4237, allocations: 4.125 kB / 0.582 GB, free: 3.328 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.888e-05/0.4237, allocations: 13.33 kB / 0.582 GB, free: 3.324 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.967e-05/0.4238, allocations: 12.33 kB / 0.582 GB, free: 3.32 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.638e-05/0.4238, allocations: 27.27 kB / 0.582 GB, free: 3.301 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001185/0.4239, allocations: 56.84 kB / 0.5821 GB, free: 3.277 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.424, allocations: 4.594 kB / 0.5821 GB, free: 3.273 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.424, allocations: 3.938 kB / 0.5821 GB, free: 3.27 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.248e-06/0.424, allocations: 4 kB / 0.5821 GB, free: 3.266 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.0004536/0.4244, allocations: 377.9 kB / 0.5825 GB, free: 2.891 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.4245, allocations: 9.5 kB / 0.5825 GB, free: 2.891 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.007e-05/0.4245, allocations: 38.89 kB / 0.5825 GB, free: 2.848 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.787e-05/0.4245, allocations: 7.062 kB / 0.5825 GB, free: 2.844 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00012/0.4247, allocations: 185.5 kB / 0.5827 GB, free: 2.637 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.4247, allocations: 5.906 kB / 0.5827 GB, free: 2.633 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.129e-05/0.4247, allocations: 2.781 kB / 0.5827 GB, free: 2.633 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000266/0.425, allocations: 90.48 kB / 0.5828 GB, free: 2.586 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.425, allocations: 3.938 kB / 0.5828 GB, free: 2.582 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.425, allocations: 2.031 kB / 0.5828 GB, free: 2.582 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.425, allocations: 0 / 0.5828 GB, free: 2.582 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003188/0.4253, allocations: 80.33 kB / 0.5829 GB, free: 2.57 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004605/0.4258, allocations: 328.3 kB / 0.5832 GB, free: 2.273 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001973/0.426, allocations: 58.3 kB / 0.5832 GB, free: 2.242 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.4262, allocations: 43.42 kB / 0.5833 GB, free: 2.227 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.427e-05/0.4262, allocations: 10.09 kB / 0.5833 GB, free: 2.219 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.646e-05/0.4262, allocations: 31.97 kB / 0.5833 GB, free: 2.18 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.243e-06/0.4263, allocations: 3.938 kB / 0.5833 GB, free: 2.176 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005515/0.4268, allocations: 135.2 kB / 0.5834 GB, free: 2.129 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.457e-05/0.4268, allocations: 52.16 kB / 0.5835 GB, free: 2.066 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.516e-05/0.4269, allocations: 116.2 kB / 0.5836 GB, free: 1.961 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.745e-06/0.4269, allocations: 25.7 kB / 0.5836 GB, free: 1.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.867e-05/0.427, allocations: 94.31 kB / 0.5837 GB, free: 1.84 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.835e-05/0.427, allocations: 13.95 kB / 0.5837 GB, free: 1.828 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.3e-05/0.427, allocations: 17.91 kB / 0.5838 GB, free: 1.809 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.944e-05/0.4271, allocations: 321.4 kB / 0.5841 GB, free: 1.488 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001592/0.4272, allocations: 32.95 kB / 0.5841 GB, free: 1.484 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.4274, allocations: 37.5 kB / 0.5841 GB, free: 1.477 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002882/0.4277, allocations: 79.89 kB / 0.5842 GB, free: 1.453 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.4277, allocations: 0 / 0.5842 GB, free: 1.453 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000325/0.428, allocations: 101.8 kB / 0.5843 GB, free: 1.41 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.428, allocations: 6.141 kB / 0.5843 GB, free: 1.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.428, allocations: 1.062 kB / 0.5843 GB, free: 1.41 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.4281, allocations: 0 / 0.5843 GB, free: 1.41 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.4282, allocations: 28.08 kB / 0.5843 GB, free: 1.398 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.4282, allocations: 0.5156 kB / 0.5843 GB, free: 1.398 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.063e-05/0.4283, allocations: 11.19 kB / 0.5843 GB, free: 1.398 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.699e-05/0.4283, allocations: 1.578 kB / 0.5843 GB, free: 1.398 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.517e-05/0.4284, allocations: 125.3 kB / 0.5845 GB, free: 1.273 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.856e-05/0.4284, allocations: 6.719 kB / 0.5845 GB, free: 1.27 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000372/0.4288, allocations: 113.8 kB / 0.5846 GB, free: 1.215 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.4288, allocations: 1.156 kB / 0.5846 GB, free: 1.215 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.4288, allocations: 4.703 kB / 0.5846 GB, free: 1.211 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.4288, allocations: 1.062 kB / 0.5846 GB, free: 1.211 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001383/0.429, allocations: 182.2 kB / 0.5848 GB, free: 1.008 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.429, allocations: 0 / 0.5848 GB, free: 1.008 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.887e-05/0.4291, allocations: 15.41 kB / 0.5848 GB, free: 1.008 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.4291, allocations: 5.469 kB / 0.5848 GB, free: 1.004 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.794e-06/0.4291, allocations: 0 / 0.5848 GB, free: 1.004 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.4291, allocations: 5.125 kB / 0.5848 GB, free: 1 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4291, allocations: 4.594 kB / 0.5848 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003474/0.4295, allocations: 202.6 kB / 0.585 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.99e-05/0.4295, allocations: 87.47 kB / 0.5851 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.56e-05/0.4295, allocations: 5.031 kB / 0.5851 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.4296, allocations: 12.09 kB / 0.5851 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.947e-05/0.4297, allocations: 3.531 kB / 0.5851 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.4297, allocations: 1.672 kB / 0.5851 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.621e-05/0.4297, allocations: 90.88 kB / 0.5852 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4297, allocations: 0.6875 kB / 0.5852 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002365/0.43, allocations: 12.88 kB / 0.5852 GB, free: 0.6602 MB / 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 (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.0005749/0.4306, allocations: 0.7401 MB / 0.5859 GB, free: 15.98 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000373/0.4309, allocations: 78.39 kB / 0.586 GB, free: 15.96 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.431, allocations: 0 / 0.586 GB, free: 15.96 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001698/0.4311, allocations: 37.98 kB / 0.586 GB, free: 15.96 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003338/0.4315, allocations: 7.297 kB / 0.586 GB, free: 15.96 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001937/0.4334, allocations: 1.433 MB / 0.5874 GB, free: 14.72 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000286/0.4337, allocations: 0.6916 MB / 0.5881 GB, free: 14.02 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.676e-05/0.4338, allocations: 7.328 kB / 0.5881 GB, free: 14.02 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.377e-05/0.4338, allocations: 23.77 kB / 0.5881 GB, free: 14 MB / 446.1 MB Notification: Performance of SimCode: time 3.41e-07/0.4338, allocations: 0 / 0.5881 GB, free: 14 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01791/0.4517, allocations: 1.76 MB / 0.5898 GB, free: 13.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.176/7.628, allocations: 1.125 kB / 0.5899 GB, free: 13.62 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 & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Utilities_Math_Examples_Average.fmu > IDEAS_IDEAS.Utilities.Math.Examples.Average.pipe 2>&1)