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.001253/0.001253, allocations: 174.8 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8079/0.8079, allocations: 133.4 MB / 146.7 MB, free: 10.79 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.469/1.469, allocations: 221.3 MB / 400.4 MB, free: 5.852 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008655/0.0008656, allocations: 101 kB / 483.3 MB, free: 5.891 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.1e-05/3.104e-05, allocations: 3.844 kB / 0.5601 GB, free: 87.75 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1596/0.1596, allocations: 82.31 MB / 0.6405 GB, free: 7.75 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5936/0.7532, allocations: 111.4 MB / 0.7493 GB, free: 11.79 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000186/0.7535, allocations: 72.67 kB / 0.7494 GB, free: 11.79 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.003503/0.757, allocations: 1.14 MB / 0.7505 GB, free: 27.43 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.353e-06/0.757, allocations: 0 / 0.7505 GB, free: 27.43 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.027e-06/0.757, allocations: 0 / 0.7505 GB, free: 27.43 MB / 0.5105 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.000412/0.7574, allocations: 379.6 kB / 0.7509 GB, free: 27.06 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.7575, allocations: 11.53 kB / 0.7509 GB, free: 27.06 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.557e-05/0.7575, allocations: 40.98 kB / 0.7509 GB, free: 27.02 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.667e-05/0.7576, allocations: 7.875 kB / 0.7509 GB, free: 27.02 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001574/0.7577, allocations: 186.2 kB / 0.7511 GB, free: 26.81 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.738e-06/0.7577, allocations: 3.812 kB / 0.7511 GB, free: 26.81 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.502e-05/0.7578, allocations: 3.875 kB / 0.7511 GB, free: 26.81 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001297/0.7579, allocations: 64.12 kB / 0.7512 GB, free: 26.78 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.7579, allocations: 4 kB / 0.7512 GB, free: 26.77 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.888e-06/0.7579, allocations: 0 / 0.7512 GB, free: 26.77 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.7579, allocations: 3.781 kB / 0.7512 GB, free: 26.77 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.994e-05/0.758, allocations: 33.25 kB / 0.7512 GB, free: 26.77 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004896/0.7585, allocations: 338.7 kB / 0.7516 GB, free: 26.5 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 7.081e-05/0.7586, allocations: 33.55 kB / 0.7516 GB, free: 26.47 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.576e-05/0.7586, allocations: 16.36 kB / 0.7516 GB, free: 26.46 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 3.811e-05/0.7587, allocations: 6.625 kB / 0.7516 GB, free: 26.46 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.188e-05/0.7587, allocations: 30.56 kB / 0.7516 GB, free: 26.43 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=3): time 1.272e-06/0.7587, allocations: 7.938 kB / 0.7516 GB, free: 26.42 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3): time 0.0001715/0.7589, allocations: 66.92 kB / 0.7517 GB, free: 26.38 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.416e-05/0.7589, allocations: 55.03 kB / 0.7518 GB, free: 26.31 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.759, allocations: 103.5 kB / 0.7519 GB, free: 26.22 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.7591, allocations: 25.7 kB / 0.7519 GB, free: 26.19 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 4.441e-05/0.7591, allocations: 91.05 kB / 0.752 GB, free: 26.11 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.908e-05/0.7591, allocations: 19.44 kB / 0.752 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.048e-06/0.7592, allocations: 0 / 0.752 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001165/0.7593, allocations: 325.9 kB / 0.7523 GB, free: 25.78 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.65e-05/0.7593, allocations: 7.531 kB / 0.7523 GB, free: 25.78 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.183e-05/0.7593, allocations: 11.75 kB / 0.7523 GB, free: 25.78 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.752e-05/0.7594, allocations: 7.047 kB / 0.7523 GB, free: 25.78 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.7594, allocations: 3.906 kB / 0.7523 GB, free: 25.78 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.11e-05/0.7595, allocations: 59.69 kB / 0.7524 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.7595, allocations: 7.875 kB / 0.7524 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.7595, allocations: 0 / 0.7524 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.7595, allocations: 0 / 0.7524 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000164/0.7597, allocations: 25.69 kB / 0.7524 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.7597, allocations: 5.891 kB / 0.7524 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.981e-05/0.7598, allocations: 17.38 kB / 0.7524 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.079e-05/0.7598, allocations: 0 / 0.7524 GB, free: 25.73 MB / 0.5105 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 6.463e-05/0.7599, allocations: 104.9 kB / 0.7525 GB, free: 25.63 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.925e-05/0.76, allocations: 3.906 kB / 0.7525 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001537/0.7601, allocations: 76.59 kB / 0.7526 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.7601, allocations: 0 / 0.7526 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.7601, allocations: 48 / 0.7526 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.7601, allocations: 7.938 kB / 0.7526 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000159/0.7603, allocations: 184.1 kB / 0.7528 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.7603, allocations: 0 / 0.7528 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001223/0.7604, allocations: 21.53 kB / 0.7528 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.7605, allocations: 4 kB / 0.7528 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.7605, allocations: 0 / 0.7528 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.7605, allocations: 0.75 kB / 0.7528 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.7605, allocations: 2.859 kB / 0.7528 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001435/0.7606, allocations: 157 kB / 0.753 GB, free: 25.24 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.433e-05/0.7607, allocations: 83.94 kB / 0.7531 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.568e-05/0.7607, allocations: 0 / 0.7531 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001362/0.7609, allocations: 19.83 kB / 0.7531 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.234e-05/0.7609, allocations: 6.797 kB / 0.7531 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.836e-06/0.7609, allocations: 3.844 kB / 0.7531 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 5.248e-05/0.761, allocations: 93.81 kB / 0.7532 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.7e-07/0.761, allocations: 0 / 0.7532 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002394/0.7612, allocations: 22.88 kB / 0.7532 GB, free: 25.05 MB / 0.5105 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.0004866/0.7617, allocations: 0.6929 MB / 0.7539 GB, free: 24.39 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001086/0.7619, allocations: 33.45 kB / 0.7539 GB, free: 24.38 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.7619, allocations: 0 / 0.7539 GB, free: 24.38 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 4.255e-05/0.7619, allocations: 18.36 kB / 0.7539 GB, free: 24.38 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001798/0.7621, allocations: 0.5469 kB / 0.7539 GB, free: 24.38 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000403/0.7625, allocations: 129.6 kB / 0.754 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003048/0.7628, allocations: 0.6995 MB / 0.7547 GB, free: 23.57 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 4.929e-05/0.7629, allocations: 3.594 kB / 0.7547 GB, free: 23.57 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.994e-05/0.7629, allocations: 14.14 kB / 0.7547 GB, free: 23.56 MB / 0.5105 GB Notification: Performance of SimCode: time 4.1e-07/0.7629, allocations: 0 / 0.7547 GB, free: 23.56 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01035/0.7733, allocations: 1.442 MB / 0.7562 GB, free: 23.39 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001333/0.7735, allocations: 133.2 kB / 0.7563 GB, free: 23.16 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.518/2.291, allocations: 0 / 0.7563 GB, free: 23.16 MB / 0.5105 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)