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/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_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/Complex 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 180.9 kB / 7.651 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.7729/0.7729, 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.521/1.521, 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.0008594/0.0008595, allocations: 102.1 kB / 478.2 MB, free: 1.309 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.569e-05/2.571e-05, allocations: 4 kB / 0.5535 GB, free: 8.953 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4321/0.4321, allocations: 82.3 MB / 0.6339 GB, free: 40.79 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2018/0.634, allocations: 110.8 MB / 0.7421 GB, free: 11.89 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/0.6343, allocations: 71.95 kB / 0.7422 GB, free: 11.82 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.004209/0.6386, allocations: 1.13 MB / 0.7433 GB, free: 10.69 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.352e-06/0.6386, allocations: 0 / 0.7433 GB, free: 10.69 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.781e-05/0.6386, allocations: 4 kB / 0.7433 GB, free: 10.69 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.0005711/0.6392, allocations: 378.4 kB / 0.7437 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.6393, allocations: 11.97 kB / 0.7437 GB, free: 10.26 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.759e-05/0.6393, allocations: 7.906 kB / 0.7437 GB, free: 10.25 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000227/0.6396, allocations: 186.9 kB / 0.7438 GB, free: 10.03 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.6396, allocations: 0 / 0.7438 GB, free: 10.03 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.049e-05/0.6396, allocations: 4 kB / 0.7439 GB, free: 10.03 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001368/0.6398, allocations: 35.98 kB / 0.7439 GB, free: 9.992 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001306/0.6399, allocations: 53.69 kB / 0.7439 GB, free: 9.934 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.6399, allocations: 4 kB / 0.7439 GB, free: 9.93 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.64, allocations: 0 / 0.7439 GB, free: 9.93 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.64, allocations: 4 kB / 0.7439 GB, free: 9.926 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006359/0.6406, allocations: 313.2 kB / 0.7442 GB, free: 9.582 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 9.348e-05/0.6407, allocations: 34.56 kB / 0.7443 GB, free: 9.539 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.32e-05/0.6408, allocations: 12.86 kB / 0.7443 GB, free: 9.523 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 4.016e-05/0.6408, allocations: 4 kB / 0.7443 GB, free: 9.52 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.6409, allocations: 34.56 kB / 0.7443 GB, free: 9.477 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 1.873e-06/0.6409, allocations: 0 / 0.7443 GB, free: 9.477 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.0002774/0.6412, allocations: 61.72 kB / 0.7444 GB, free: 9.41 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.16e-05/0.6412, allocations: 59.41 kB / 0.7444 GB, free: 9.34 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.6413, allocations: 104.9 kB / 0.7445 GB, free: 9.23 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.6414, allocations: 25.7 kB / 0.7446 GB, free: 9.199 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 6.355e-05/0.6414, allocations: 92.12 kB / 0.7447 GB, free: 9.105 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.961e-05/0.6415, allocations: 15.75 kB / 0.7447 GB, free: 9.09 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.564e-06/0.6415, allocations: 4 kB / 0.7447 GB, free: 9.086 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.6417, allocations: 318.7 kB / 0.745 GB, free: 8.766 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.495e-05/0.6417, allocations: 12 kB / 0.745 GB, free: 8.754 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.734e-05/0.6417, allocations: 15.98 kB / 0.745 GB, free: 8.738 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.426e-05/0.6418, allocations: 12 kB / 0.745 GB, free: 8.727 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.6418, allocations: 3.938 kB / 0.745 GB, free: 8.723 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001693/0.642, allocations: 61.8 kB / 0.7451 GB, free: 8.656 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.6421, allocations: 9.562 kB / 0.7451 GB, free: 8.648 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.6421, allocations: 3.984 kB / 0.7451 GB, free: 8.645 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.6421, allocations: 0 / 0.7451 GB, free: 8.645 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001857/0.6423, allocations: 23.98 kB / 0.7451 GB, free: 8.621 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.6423, allocations: 0 / 0.7451 GB, free: 8.621 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001252/0.6425, allocations: 15.98 kB / 0.7451 GB, free: 8.605 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.986e-05/0.6425, allocations: 0 / 0.7451 GB, free: 8.605 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 8.529e-05/0.6426, allocations: 108.9 kB / 0.7452 GB, free: 8.492 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001771/0.6428, allocations: 61.59 kB / 0.7453 GB, free: 8.426 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.766e-05/0.6428, allocations: 7.906 kB / 0.7453 GB, free: 8.418 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000196/0.643, allocations: 69.95 kB / 0.7454 GB, free: 8.34 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.643, allocations: 0 / 0.7454 GB, free: 8.34 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.758e-06/0.6431, allocations: 0 / 0.7454 GB, free: 8.34 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.6431, allocations: 3.953 kB / 0.7454 GB, free: 8.336 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002007/0.6433, allocations: 158.2 kB / 0.7455 GB, free: 8.145 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.6433, allocations: 0 / 0.7455 GB, free: 8.145 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001367/0.6434, allocations: 19.98 kB / 0.7455 GB, free: 8.125 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.6434, allocations: 4 kB / 0.7455 GB, free: 8.121 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.365e-06/0.6435, allocations: 0 / 0.7455 GB, free: 8.121 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.6435, allocations: 3.984 kB / 0.7455 GB, free: 8.117 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.6435, allocations: 4 kB / 0.7456 GB, free: 8.113 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001975/0.6437, allocations: 151.5 kB / 0.7457 GB, free: 7.949 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.959e-05/0.6438, allocations: 85.02 kB / 0.7458 GB, free: 7.848 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.009e-05/0.6438, allocations: 0 / 0.7458 GB, free: 7.848 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.644, allocations: 31.91 kB / 0.7458 GB, free: 7.816 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.741e-05/0.644, allocations: 0 / 0.7458 GB, free: 7.816 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.644, allocations: 4 kB / 0.7458 GB, free: 7.812 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 5.826e-05/0.6441, allocations: 95.2 kB / 0.7459 GB, free: 7.719 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.1e-07/0.6441, allocations: 0 / 0.7459 GB, free: 7.719 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003508/0.6445, allocations: 8 kB / 0.7459 GB, free: 7.711 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.0005608/0.645, allocations: 0.7006 MB / 0.7466 GB, free: 6.984 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001246/0.6452, allocations: 24 kB / 0.7466 GB, free: 6.961 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.6452, allocations: 3.938 kB / 0.7466 GB, free: 6.957 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 4.064e-05/0.6452, allocations: 16 kB / 0.7466 GB, free: 6.941 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001623/0.6454, allocations: 3.984 kB / 0.7466 GB, free: 6.938 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003798/0.6458, allocations: 129.7 kB / 0.7468 GB, free: 6.77 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002375/0.646, allocations: 0.6962 MB / 0.7474 GB, free: 6.047 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 4.473e-05/0.6461, allocations: 7.984 kB / 0.7475 GB, free: 6.039 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.683e-05/0.6461, allocations: 19.44 kB / 0.7475 GB, free: 6.02 MB / 0.5261 GB Notification: Performance of SimCode: time 2.6e-07/0.6461, allocations: 0 / 0.7475 GB, free: 6.02 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02153/0.6677, allocations: 1.125 MB / 0.7486 GB, free: 4.906 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001997/0.6679, allocations: 112.1 kB / 0.7487 GB, free: 4.719 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.533/2.201, allocations: 0 / 0.7487 GB, free: 4.719 MB / 0.5261 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_Average.fmu > IDEAS_IDEAS.Utilities.Math.Examples.Average.pipe 2>&1)