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.001112/0.001112, allocations: 111.9 kB / 15.61 MB, free: 128 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.001081/0.001081, allocations: 192.7 kB / 16.53 MB, free: 6.668 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.29/1.29, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9067/0.9067, allocations: 135.1 MB / 425.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 68.33 kB / 0.5054 GB, free: 5.184 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1388, allocations: 80.92 MB / 0.5845 GB, free: 4.41 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.002743/0.1416, allocations: 1.527 MB / 0.586 GB, free: 2.863 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000325/0.1419, allocations: 116.5 kB / 0.5861 GB, free: 2.746 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.068e-05/0.142, allocations: 0 / 0.5861 GB, free: 2.746 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000104/0.1421, allocations: 3.938 kB / 0.5861 GB, free: 2.742 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.685e-05/0.1421, allocations: 11.86 kB / 0.5861 GB, free: 2.73 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001977/0.1423, allocations: 23.97 kB / 0.5861 GB, free: 2.707 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.376e-05/0.1424, allocations: 59.83 kB / 0.5862 GB, free: 2.648 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.1425, allocations: 27.97 kB / 0.5862 GB, free: 2.621 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.66e-05/0.1426, allocations: 27.92 kB / 0.5862 GB, free: 2.594 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.76e-05/0.1427, allocations: 35.78 kB / 0.5863 GB, free: 2.559 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.838e-05/0.1427, allocations: 4 kB / 0.5863 GB, free: 2.555 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.782e-05/0.1428, allocations: 8 kB / 0.5863 GB, free: 2.547 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.867e-05/0.1428, allocations: 21.58 kB / 0.5863 GB, free: 2.527 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.491e-05/0.1429, allocations: 23.86 kB / 0.5863 GB, free: 2.504 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001153/0.143, allocations: 59.8 kB / 0.5864 GB, free: 2.445 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.143, allocations: 4 kB / 0.5864 GB, free: 2.441 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.143, allocations: 0 / 0.5864 GB, free: 2.441 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.143, allocations: 0 / 0.5864 GB, free: 2.441 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.0005118/0.1435, allocations: 379.6 kB / 0.5867 GB, free: 2.02 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.1436, allocations: 8.031 kB / 0.5867 GB, free: 2.012 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.734e-05/0.1436, allocations: 34.75 kB / 0.5868 GB, free: 1.969 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.076e-05/0.1436, allocations: 8.844 kB / 0.5868 GB, free: 1.961 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001668/0.1438, allocations: 184.2 kB / 0.587 GB, free: 1.742 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.1438, allocations: 8.375 kB / 0.587 GB, free: 1.734 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.181e-05/0.1439, allocations: 4.375 kB / 0.587 GB, free: 1.73 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002869/0.1441, allocations: 86.19 kB / 0.587 GB, free: 1.641 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.1442, allocations: 3.938 kB / 0.5871 GB, free: 1.637 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.1442, allocations: 4 kB / 0.5871 GB, free: 1.633 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.291e-06/0.1442, allocations: 4 kB / 0.5871 GB, free: 1.629 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003067/0.1445, allocations: 79.86 kB / 0.5871 GB, free: 1.551 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005156/0.145, allocations: 332.7 kB / 0.5875 GB, free: 1.176 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002001/0.1452, allocations: 62.52 kB / 0.5875 GB, free: 1.105 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001536/0.1454, allocations: 44.91 kB / 0.5876 GB, free: 1.059 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.576e-05/0.1454, allocations: 3.984 kB / 0.5876 GB, free: 1.055 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.661e-05/0.1455, allocations: 34.56 kB / 0.5876 GB, free: 1.012 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.1455, allocations: 0 / 0.5876 GB, free: 1.012 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005444/0.146, allocations: 133.6 kB / 0.5877 GB, free: 0.875 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.628e-05/0.1461, allocations: 59.34 kB / 0.5878 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.884e-05/0.1462, allocations: 116.8 kB / 0.5879 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.263e-05/0.1462, allocations: 25.7 kB / 0.5879 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.502e-05/0.1462, allocations: 99.98 kB / 0.588 GB, free: 0.5508 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.138e-05/0.1463, allocations: 15.89 kB / 0.588 GB, free: 0.5352 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.285e-05/0.1463, allocations: 9.719 kB / 0.588 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.514e-05/0.1464, allocations: 322.8 kB / 0.5883 GB, free: 200 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001524/0.1466, allocations: 31.95 kB / 0.5884 GB, free: 168 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001394/0.1467, allocations: 35.91 kB / 0.5884 GB, free: 132 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002729/0.147, allocations: 76.77 kB / 0.5885 GB, free: 52 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.147, allocations: 0 / 0.5885 GB, free: 52 kB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003403/0.1473, allocations: 109.5 kB / 0.5886 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.1474, allocations: 6.5 kB / 0.5886 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.1474, allocations: 8 kB / 0.5886 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.1474, allocations: 0 / 0.5886 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/0.1475, allocations: 15.97 kB / 0.5886 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.1475, allocations: 0 / 0.5886 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.489e-05/0.1476, allocations: 11.98 kB / 0.5886 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.097e-05/0.1476, allocations: 8 kB / 0.5886 GB, free: 15.89 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 7.82e-05/0.1477, allocations: 117.8 kB / 0.5887 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.711e-05/0.1478, allocations: 7.906 kB / 0.5888 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003774/0.1481, allocations: 113.5 kB / 0.5889 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-06/0.1481, allocations: 0 / 0.5889 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.1482, allocations: 0 / 0.5889 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.584e-06/0.1482, allocations: 3.938 kB / 0.5889 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001615/0.1483, allocations: 181.6 kB / 0.589 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.1483, allocations: 3.938 kB / 0.589 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.379e-05/0.1484, allocations: 23.97 kB / 0.5891 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.1484, allocations: 0 / 0.5891 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-06/0.1485, allocations: 0 / 0.5891 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.1485, allocations: 0 / 0.5891 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1485, allocations: 4 kB / 0.5891 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003492/0.1488, allocations: 203.4 kB / 0.5893 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.505e-05/0.1489, allocations: 81.44 kB / 0.5893 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.1489, allocations: 0 / 0.5893 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.149, allocations: 11.98 kB / 0.5893 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.236e-05/0.149, allocations: 3.984 kB / 0.5894 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/0.1491, allocations: 4 kB / 0.5894 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.359e-05/0.1491, allocations: 91.28 kB / 0.5894 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.643e-06/0.1491, allocations: 0 / 0.5894 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002364/0.1494, allocations: 23.81 kB / 0.5895 GB, free: 14.93 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.000759/0.1501, allocations: 0.7397 MB / 0.5902 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003535/0.1505, allocations: 75.92 kB / 0.5903 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.072e-06/0.1505, allocations: 0 / 0.5903 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001591/0.1507, allocations: 47.89 kB / 0.5903 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003148/0.151, allocations: 7.938 kB / 0.5903 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001828/0.1528, allocations: 1.424 MB / 0.5917 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002641/0.1531, allocations: 0.6924 MB / 0.5924 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.311e-05/0.1532, allocations: 8 kB / 0.5924 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.659e-05/0.1532, allocations: 15.42 kB / 0.5924 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of SimCode: time 5.41e-07/0.1532, allocations: 0 / 0.5924 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6032/0.7564, allocations: 1.783 MB / 0.5941 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.108/9.865, allocations: 11.88 kB / 0.5942 GB, free: 10.07 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/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)