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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001309/0.00131, allocations: 177.5 kB / 7.649 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9424/0.9424, allocations: 133.6 MB / 141.6 MB, free: 2.852 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.644/1.644, allocations: 221.5 MB / 395.4 MB, free: 10.77 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008169/0.0008169, allocations: 105.4 kB / 478.2 MB, free: 1.281 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.269e-05/3.271e-05, allocations: 4 kB / 0.5535 GB, free: 8.938 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4616/0.4617, allocations: 82.3 MB / 0.6339 GB, free: 40.72 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1349/0.5966, allocations: 110.8 MB / 0.7421 GB, free: 11.87 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002204/0.5969, allocations: 71.95 kB / 0.7422 GB, free: 11.8 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.003294/0.6002, allocations: 1.134 MB / 0.7433 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.412e-06/0.6002, allocations: 0 / 0.7433 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.718e-06/0.6003, allocations: 0 / 0.7433 GB, free: 10.66 MB / 0.5261 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.0004598/0.6007, allocations: 378.4 kB / 0.7436 GB, free: 10.25 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.6008, allocations: 11.97 kB / 0.7437 GB, free: 10.24 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.356e-05/0.6008, allocations: 11.89 kB / 0.7437 GB, free: 10.23 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001612/0.601, allocations: 186.9 kB / 0.7438 GB, free: 10 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.919e-06/0.601, allocations: 4 kB / 0.7439 GB, free: 10 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.224e-05/0.601, allocations: 0 / 0.7439 GB, free: 10 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.247e-05/0.6011, allocations: 39.92 kB / 0.7439 GB, free: 9.961 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.15e-05/0.6012, allocations: 49.69 kB / 0.7439 GB, free: 9.906 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.6012, allocations: 4 kB / 0.7439 GB, free: 9.902 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.748e-06/0.6012, allocations: 0 / 0.7439 GB, free: 9.902 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.6013, allocations: 0 / 0.7439 GB, free: 9.902 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004599/0.6017, allocations: 309.2 kB / 0.7442 GB, free: 9.562 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 6.653e-05/0.6018, allocations: 42.56 kB / 0.7443 GB, free: 9.512 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.16e-05/0.6018, allocations: 16.86 kB / 0.7443 GB, free: 9.492 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 3.052e-05/0.6019, allocations: 0 / 0.7443 GB, free: 9.492 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.031e-05/0.6019, allocations: 34.56 kB / 0.7443 GB, free: 9.449 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 2.044e-06/0.6019, allocations: 96 / 0.7443 GB, free: 9.449 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.0001902/0.6021, allocations: 61.62 kB / 0.7444 GB, free: 9.383 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.16e-05/0.6021, allocations: 51.41 kB / 0.7444 GB, free: 9.32 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.185e-05/0.6022, allocations: 116.9 kB / 0.7445 GB, free: 9.199 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.317e-05/0.6022, allocations: 25.7 kB / 0.7446 GB, free: 9.168 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.959e-05/0.6023, allocations: 92.12 kB / 0.7447 GB, free: 9.074 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.713e-05/0.6023, allocations: 11.75 kB / 0.7447 GB, free: 9.062 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.731e-06/0.6023, allocations: 0 / 0.7447 GB, free: 9.062 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.894e-05/0.6024, allocations: 322.7 kB / 0.745 GB, free: 8.738 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.626e-05/0.6024, allocations: 15.98 kB / 0.745 GB, free: 8.723 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.992e-05/0.6025, allocations: 8 kB / 0.745 GB, free: 8.715 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.743e-05/0.6025, allocations: 12 kB / 0.745 GB, free: 8.703 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.6025, allocations: 4 kB / 0.745 GB, free: 8.699 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001083/0.6026, allocations: 61.8 kB / 0.7451 GB, free: 8.633 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/0.6027, allocations: 4 kB / 0.7451 GB, free: 8.629 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.6027, allocations: 3.984 kB / 0.7451 GB, free: 8.625 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.528e-06/0.6027, allocations: 0 / 0.7451 GB, free: 8.625 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/0.6028, allocations: 23.98 kB / 0.7451 GB, free: 8.602 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.336e-06/0.6028, allocations: 0 / 0.7451 GB, free: 8.602 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.69e-05/0.6029, allocations: 19.98 kB / 0.7451 GB, free: 8.582 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.948e-05/0.603, allocations: 7.969 kB / 0.7451 GB, free: 8.574 MB / 0.5261 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.544e-05/0.603, allocations: 110.3 kB / 0.7452 GB, free: 8.461 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001184/0.6031, allocations: 61.59 kB / 0.7453 GB, free: 8.395 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.481e-05/0.6032, allocations: 7.906 kB / 0.7453 GB, free: 8.387 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001341/0.6033, allocations: 65.95 kB / 0.7454 GB, free: 8.312 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.6033, allocations: 4 kB / 0.7454 GB, free: 8.309 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.6033, allocations: 4 kB / 0.7454 GB, free: 8.305 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.6033, allocations: 3.953 kB / 0.7454 GB, free: 8.301 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001308/0.6035, allocations: 154.1 kB / 0.7455 GB, free: 8.113 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.103e-06/0.6035, allocations: 4 kB / 0.7455 GB, free: 8.109 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.6036, allocations: 15.98 kB / 0.7455 GB, free: 8.094 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.6036, allocations: 4 kB / 0.7455 GB, free: 8.09 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.837e-06/0.6036, allocations: 3.984 kB / 0.7455 GB, free: 8.086 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.6036, allocations: 0 / 0.7455 GB, free: 8.086 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.6036, allocations: 4 kB / 0.7456 GB, free: 8.082 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001383/0.6038, allocations: 155.5 kB / 0.7457 GB, free: 7.914 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.162e-05/0.6038, allocations: 81.02 kB / 0.7458 GB, free: 7.816 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.416e-05/0.6038, allocations: 3.938 kB / 0.7458 GB, free: 7.812 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001167/0.604, allocations: 19.97 kB / 0.7458 GB, free: 7.793 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.485e-05/0.604, allocations: 8 kB / 0.7458 GB, free: 7.785 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-06/0.604, allocations: 0 / 0.7458 GB, free: 7.785 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 4.181e-05/0.6041, allocations: 95.2 kB / 0.7459 GB, free: 7.691 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6041, allocations: 0 / 0.7459 GB, free: 7.691 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002138/0.6043, allocations: 8 kB / 0.7459 GB, free: 7.684 MB / 0.5261 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004042/0.6047, allocations: 0.7006 MB / 0.7466 GB, free: 6.957 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 9.2e-05/0.6048, allocations: 27.94 kB / 0.7466 GB, free: 6.93 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.6048, allocations: 0 / 0.7466 GB, free: 6.93 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 3.19e-05/0.6049, allocations: 19.98 kB / 0.7466 GB, free: 6.91 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001628/0.605, allocations: 4 kB / 0.7466 GB, free: 6.906 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003491/0.6054, allocations: 125.7 kB / 0.7468 GB, free: 6.742 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000202/0.6056, allocations: 0.6885 MB / 0.7474 GB, free: 6.027 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 4.274e-05/0.6056, allocations: 11.98 kB / 0.7474 GB, free: 6.016 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.339e-05/0.6057, allocations: 15.44 kB / 0.7475 GB, free: 6 MB / 0.5261 GB Notification: Performance of SimCode: time 2.6e-07/0.6057, allocations: 0 / 0.7475 GB, free: 6 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0184/0.6241, allocations: 1.131 MB / 0.7486 GB, free: 4.883 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001585/0.6243, allocations: 122.8 kB / 0.7487 GB, free: 4.691 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.511/2.135, allocations: 0 / 0.7487 GB, free: 4.691 MB / 0.5261 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/linux/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)