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.006888/0.006888, allocations: 170.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8366/0.8366, allocations: 135.2 MB / 151 MB, free: 13.85 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 223.2 MB / 406.8 MB, free: 3.176 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.0009928/0.0009929, allocations: 101.4 kB / 489.9 MB, free: 10.88 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003575/0.0003575, allocations: 12 kB / 0.5692 GB, free: 14.04 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4197/0.4201, allocations: 82.31 MB / 0.6495 GB, free: 36.09 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1363/0.5564, allocations: 111.5 MB / 0.7584 GB, free: 4.422 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002183/0.5567, allocations: 71.95 kB / 0.7585 GB, free: 4.352 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.003284/0.56, allocations: 1.138 MB / 0.7596 GB, free: 3.211 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.282e-06/0.56, allocations: 0 / 0.7596 GB, free: 3.211 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.225e-06/0.56, allocations: 0 / 0.7596 GB, free: 3.211 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.0004726/0.5605, allocations: 391.1 kB / 0.76 GB, free: 2.781 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.5605, allocations: 12.03 kB / 0.76 GB, free: 2.77 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.684e-05/0.5606, allocations: 34.56 kB / 0.76 GB, free: 2.727 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.693e-05/0.5606, allocations: 11.89 kB / 0.76 GB, free: 2.715 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001634/0.5608, allocations: 183 kB / 0.7602 GB, free: 2.496 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.047e-06/0.5608, allocations: 7.938 kB / 0.7602 GB, free: 2.488 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.164e-05/0.5608, allocations: 0 / 0.7602 GB, free: 2.488 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002649/0.5611, allocations: 97.64 kB / 0.7603 GB, free: 2.387 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.732e-06/0.5611, allocations: 0 / 0.7603 GB, free: 2.387 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.5611, allocations: 3.984 kB / 0.7603 GB, free: 2.383 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.5611, allocations: 0 / 0.7603 GB, free: 2.383 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003199/0.5614, allocations: 99.92 kB / 0.7604 GB, free: 2.285 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005146/0.562, allocations: 340.6 kB / 0.7607 GB, free: 1.902 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002064/0.5622, allocations: 70.53 kB / 0.7608 GB, free: 1.824 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 3.013e-05/0.5622, allocations: 4.094 kB / 0.7608 GB, free: 1.82 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.045e-05/0.5622, allocations: 38.59 kB / 0.7609 GB, free: 1.773 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 9.51e-07/0.5622, allocations: 0 / 0.7609 GB, free: 1.773 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.0005585/0.5628, allocations: 177.5 kB / 0.761 GB, free: 1.594 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.149e-05/0.5628, allocations: 55.36 kB / 0.7611 GB, free: 1.527 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.095e-05/0.5629, allocations: 112.9 kB / 0.7612 GB, free: 1.41 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.265e-05/0.563, allocations: 29.7 kB / 0.7612 GB, free: 1.375 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.941e-05/0.563, allocations: 92.08 kB / 0.7613 GB, free: 1.281 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.656e-05/0.563, allocations: 7.812 kB / 0.7613 GB, free: 1.273 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.807e-06/0.563, allocations: 0 / 0.7613 GB, free: 1.273 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.903e-05/0.5631, allocations: 318.8 kB / 0.7616 GB, free: 0.9531 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.5633, allocations: 47.95 kB / 0.7617 GB, free: 0.9062 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.5635, allocations: 51.91 kB / 0.7617 GB, free: 0.8555 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001449/0.5636, allocations: 43.95 kB / 0.7617 GB, free: 0.8125 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.5636, allocations: 0 / 0.7617 GB, free: 0.8125 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003421/0.564, allocations: 125.6 kB / 0.7619 GB, free: 0.6836 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.564, allocations: 8 kB / 0.7619 GB, free: 0.6758 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.564, allocations: 4 kB / 0.7619 GB, free: 0.6719 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.564, allocations: 3.984 kB / 0.7619 GB, free: 0.668 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.5642, allocations: 19.98 kB / 0.7619 GB, free: 0.6484 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.5642, allocations: 4 kB / 0.7619 GB, free: 0.6445 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.864e-05/0.5643, allocations: 19.94 kB / 0.7619 GB, free: 0.625 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.485e-05/0.5643, allocations: 0 / 0.7619 GB, free: 0.625 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.065e-05/0.5644, allocations: 121.8 kB / 0.762 GB, free: 0.4961 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.826e-05/0.5644, allocations: 8.234 kB / 0.762 GB, free: 500 kB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003788/0.5648, allocations: 137.4 kB / 0.7622 GB, free: 352 kB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.5648, allocations: 0 / 0.7622 GB, free: 352 kB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.5648, allocations: 0 / 0.7622 GB, free: 352 kB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.5648, allocations: 4 kB / 0.7622 GB, free: 348 kB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001728/0.565, allocations: 181.6 kB / 0.7624 GB, free: 116 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.565, allocations: 0 / 0.7624 GB, free: 116 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001111/0.5651, allocations: 27.97 kB / 0.7624 GB, free: 88 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.5651, allocations: 0 / 0.7624 GB, free: 88 kB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.214e-06/0.5651, allocations: 0 / 0.7624 GB, free: 88 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.5651, allocations: 0 / 0.7624 GB, free: 88 kB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.5651, allocations: 0 / 0.7624 GB, free: 88 kB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003986/0.5655, allocations: 231.3 kB / 0.7626 GB, free: 15.84 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.027e-05/0.5656, allocations: 77.11 kB / 0.7627 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.614e-05/0.5656, allocations: 7.938 kB / 0.7627 GB, free: 15.74 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/0.5657, allocations: 19.98 kB / 0.7627 GB, free: 15.72 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.764e-05/0.5658, allocations: 3.984 kB / 0.7627 GB, free: 15.72 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.202e-06/0.5658, allocations: 0 / 0.7627 GB, free: 15.72 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 4.278e-05/0.5658, allocations: 91.27 kB / 0.7628 GB, free: 15.63 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5658, allocations: 0 / 0.7628 GB, free: 15.63 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002149/0.5661, allocations: 19.94 kB / 0.7628 GB, free: 15.61 MB / 0.5417 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 (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.0006696/0.5667, allocations: 0.763 MB / 0.7636 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.000342/0.5671, allocations: 91.92 kB / 0.7636 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.5671, allocations: 0 / 0.7636 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001615/0.5673, allocations: 55.95 kB / 0.7637 GB, free: 14.67 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001535/0.5674, allocations: 4 kB / 0.7637 GB, free: 14.67 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001104/0.5685, allocations: 0.5692 MB / 0.7643 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000245/0.5688, allocations: 0.7004 MB / 0.7649 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 4.28e-05/0.5689, allocations: 7.938 kB / 0.765 GB, free: 13.31 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.654e-05/0.5689, allocations: 19.42 kB / 0.765 GB, free: 13.29 MB / 0.5417 GB Notification: Performance of SimCode: time 4.21e-07/0.5689, allocations: 0 / 0.765 GB, free: 13.29 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01135/0.5803, allocations: 1.443 MB / 0.7664 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001865/0.5805, allocations: 155.8 kB / 0.7665 GB, free: 11.72 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.541/2.122, allocations: 0 / 0.7665 GB, free: 11.72 MB / 0.5417 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)