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.006881/0.006881, allocations: 100.5 kB / 15.73 MB, free: 6.035 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.001214/0.001214, allocations: 191.1 kB / 16.67 MB, free: 5.973 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9161/0.9161, allocations: 135.1 MB / 425.7 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 67.89 kB / 0.5851 GB, free: 3.836 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4778/0.4793, allocations: 80.91 MB / 0.6642 GB, free: 7.301 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.002449/0.4818, allocations: 1.544 MB / 0.6657 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003269/0.4822, allocations: 115.8 kB / 0.6658 GB, free: 6 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.126e-05/0.4822, allocations: 1.312 kB / 0.6658 GB, free: 6 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001353/0.4824, allocations: 13.45 kB / 0.6658 GB, free: 5.988 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.416e-05/0.4824, allocations: 3.938 kB / 0.6658 GB, free: 5.984 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002477/0.4827, allocations: 28.02 kB / 0.6658 GB, free: 5.965 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001011/0.4828, allocations: 59.41 kB / 0.6659 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/0.4829, allocations: 24.33 kB / 0.6659 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.87e-05/0.483, allocations: 25.25 kB / 0.6659 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.29e-05/0.4831, allocations: 25.17 kB / 0.6659 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.687e-05/0.4831, allocations: 4 kB / 0.6659 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.287e-05/0.4831, allocations: 15.8 kB / 0.666 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.531e-05/0.4832, allocations: 21.56 kB / 0.666 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.885e-05/0.4832, allocations: 21.38 kB / 0.666 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001289/0.4834, allocations: 63.19 kB / 0.6661 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.4834, allocations: 3.984 kB / 0.6661 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.723e-06/0.4834, allocations: 1.469 kB / 0.6661 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.46e-06/0.4834, allocations: 0 / 0.6661 GB, free: 5.797 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.0004461/0.4839, allocations: 378 kB / 0.6664 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.4839, allocations: 9.875 kB / 0.6664 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.516e-05/0.4839, allocations: 39.98 kB / 0.6665 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.814e-05/0.484, allocations: 4.781 kB / 0.6665 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00013/0.4841, allocations: 190.8 kB / 0.6667 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/0.4841, allocations: 5.75 kB / 0.6667 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.089e-05/0.4841, allocations: 3.062 kB / 0.6667 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002706/0.4844, allocations: 93.55 kB / 0.6668 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.4844, allocations: 3.938 kB / 0.6668 GB, free: 5.066 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.4845, allocations: 5.172 kB / 0.6668 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.4845, allocations: 1.094 kB / 0.6668 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000263/0.4847, allocations: 80.67 kB / 0.6668 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004227/0.4852, allocations: 323.7 kB / 0.6672 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001722/0.4853, allocations: 62.5 kB / 0.6672 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001247/0.4855, allocations: 40.53 kB / 0.6673 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.439e-05/0.4855, allocations: 2.156 kB / 0.6673 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.677e-05/0.4855, allocations: 31.75 kB / 0.6673 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.4855, allocations: 0 / 0.6673 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004724/0.486, allocations: 146.1 kB / 0.6674 GB, free: 4.504 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.95e-05/0.4861, allocations: 52.84 kB / 0.6675 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.225e-05/0.4861, allocations: 122.1 kB / 0.6676 GB, free: 4.324 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.13e-05/0.4862, allocations: 27.05 kB / 0.6676 GB, free: 4.293 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.877e-05/0.4862, allocations: 86.67 kB / 0.6677 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.148e-05/0.4862, allocations: 13 kB / 0.6677 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.494e-05/0.4863, allocations: 24.67 kB / 0.6677 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.763e-05/0.4863, allocations: 316.2 kB / 0.668 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/0.4865, allocations: 39.48 kB / 0.6681 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001206/0.4866, allocations: 30.53 kB / 0.6681 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002652/0.4869, allocations: 73.34 kB / 0.6682 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.4869, allocations: 5.094 kB / 0.6682 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003041/0.4872, allocations: 99.8 kB / 0.6683 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.4872, allocations: 6.031 kB / 0.6683 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.4872, allocations: 0 / 0.6683 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.4872, allocations: 9.531 kB / 0.6683 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.4874, allocations: 17.61 kB / 0.6683 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.4874, allocations: 1.312 kB / 0.6683 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.113e-05/0.4875, allocations: 18.53 kB / 0.6683 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.113e-05/0.4875, allocations: 1.469 kB / 0.6683 GB, free: 3.688 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.475e-05/0.4876, allocations: 115.4 kB / 0.6684 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.701e-05/0.4876, allocations: 5.219 kB / 0.6684 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003347/0.488, allocations: 124.3 kB / 0.6686 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.488, allocations: 1.125 kB / 0.6686 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.488, allocations: 0 / 0.6686 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.488, allocations: 0 / 0.6686 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001373/0.4881, allocations: 179.1 kB / 0.6687 GB, free: 3.266 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.4881, allocations: 0 / 0.6687 GB, free: 3.266 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.343e-05/0.4882, allocations: 18.3 kB / 0.6687 GB, free: 3.258 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.4882, allocations: 5.188 kB / 0.6688 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.4882, allocations: 0 / 0.6688 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.4882, allocations: 4.516 kB / 0.6688 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.4883, allocations: 1.25 kB / 0.6688 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003029/0.4886, allocations: 202.1 kB / 0.669 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.815e-05/0.4886, allocations: 87.53 kB / 0.669 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.406e-05/0.4886, allocations: 0 / 0.669 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.433e-05/0.4887, allocations: 19.36 kB / 0.6691 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.503e-05/0.4887, allocations: 1.094 kB / 0.6691 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.182e-06/0.4888, allocations: 1.469 kB / 0.6691 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.281e-05/0.4888, allocations: 92.58 kB / 0.6691 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.4888, allocations: 0 / 0.6691 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002206/0.489, allocations: 16.53 kB / 0.6692 GB, free: 2.875 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.0004907/0.4895, allocations: 0.7338 MB / 0.6699 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003074/0.4898, allocations: 83.77 kB / 0.67 GB, free: 2.141 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.4899, allocations: 0 / 0.67 GB, free: 2.141 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001305/0.49, allocations: 39.08 kB / 0.67 GB, free: 2.125 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003034/0.4903, allocations: 7.812 kB / 0.67 GB, free: 2.121 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001392/0.4917, allocations: 1.432 MB / 0.6714 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001189/0.4918, allocations: 0.6929 MB / 0.6721 GB, free: 96 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.106e-05/0.4919, allocations: 12.89 kB / 0.6721 GB, free: 88 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.692e-05/0.4919, allocations: 12.72 kB / 0.6721 GB, free: 76 kB / 0.4981 GB Notification: Performance of SimCode: time 5.41e-07/0.4919, allocations: 1.25 kB / 0.6721 GB, free: 76 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01878/0.5107, allocations: 1.821 MB / 0.6739 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.363/7.873, allocations: 7.359 kB / 0.6739 GB, free: 15.06 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)