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.001856/0.001856, 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.8798/0.8798, 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.554/1.554, allocations: 221.3 MB / 400.4 MB, free: 5.828 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.0009126/0.0009126, allocations: 108 kB / 483.3 MB, free: 5.875 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 4.33e-05/4.332e-05, allocations: 3.812 kB / 0.5601 GB, free: 87.83 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.215/0.215, allocations: 82.31 MB / 0.6405 GB, free: 7.75 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6728/0.8879, allocations: 111.5 MB / 0.7494 GB, free: 12 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002577/0.8882, allocations: 70.14 kB / 0.7494 GB, free: 12 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.005253/0.8935, allocations: 1.129 MB / 0.7505 GB, free: 27.64 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.894e-06/0.8936, allocations: 0 / 0.7505 GB, free: 27.64 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 2.616e-05/0.8936, allocations: 0 / 0.7505 GB, free: 27.64 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.000602/0.8942, allocations: 385.3 kB / 0.7509 GB, free: 27.28 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.59e-05/0.8943, allocations: 11.56 kB / 0.7509 GB, free: 27.28 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.31e-05/0.8944, allocations: 32.53 kB / 0.7509 GB, free: 27.24 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.252e-05/0.8944, allocations: 7.75 kB / 0.7509 GB, free: 27.23 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002323/0.8947, allocations: 184.5 kB / 0.7511 GB, free: 27.03 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.727e-05/0.8947, allocations: 7.844 kB / 0.7511 GB, free: 27.03 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.893e-05/0.8947, allocations: 3.938 kB / 0.7511 GB, free: 27.03 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002185/0.895, allocations: 62.83 kB / 0.7512 GB, free: 26.99 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.895, allocations: 0 / 0.7512 GB, free: 26.99 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.895, allocations: 7.625 kB / 0.7512 GB, free: 26.99 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.895, allocations: 0 / 0.7512 GB, free: 26.99 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001201/0.8952, allocations: 33.36 kB / 0.7512 GB, free: 26.99 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008611/0.896, allocations: 343.5 kB / 0.7516 GB, free: 26.71 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001322/0.8962, allocations: 37.16 kB / 0.7516 GB, free: 26.69 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.658e-05/0.8963, allocations: 16.45 kB / 0.7516 GB, free: 26.68 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 5.553e-05/0.8963, allocations: 7.984 kB / 0.7516 GB, free: 26.67 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.701e-05/0.8964, allocations: 34.41 kB / 0.7516 GB, free: 26.63 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=3): time 2.755e-06/0.8964, allocations: 0 / 0.7516 GB, free: 26.63 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3): time 0.0002573/0.8967, allocations: 67.28 kB / 0.7517 GB, free: 26.59 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.7e-05/0.8967, allocations: 54.41 kB / 0.7518 GB, free: 26.53 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.8969, allocations: 101.8 kB / 0.7519 GB, free: 26.44 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.162e-05/0.8969, allocations: 29.55 kB / 0.7519 GB, free: 26.41 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 5.96e-05/0.897, allocations: 94.23 kB / 0.752 GB, free: 26.32 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.559e-05/0.897, allocations: 22.22 kB / 0.752 GB, free: 26.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.891e-06/0.897, allocations: 0 / 0.752 GB, free: 26.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001644/0.8972, allocations: 314.7 kB / 0.7523 GB, free: 25.99 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.639e-05/0.8972, allocations: 14.27 kB / 0.7523 GB, free: 25.99 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.923e-05/0.8973, allocations: 11.5 kB / 0.7523 GB, free: 25.99 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.566e-05/0.8974, allocations: 10.88 kB / 0.7523 GB, free: 25.99 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.8974, allocations: 0 / 0.7523 GB, free: 25.99 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001643/0.8975, allocations: 59.05 kB / 0.7524 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 4.401e-05/0.8976, allocations: 3.969 kB / 0.7524 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.8976, allocations: 4 kB / 0.7524 GB, free: 25.95 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.8976, allocations: 0 / 0.7524 GB, free: 25.95 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001954/0.8979, allocations: 21.78 kB / 0.7524 GB, free: 25.95 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.8979, allocations: 7.766 kB / 0.7524 GB, free: 25.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001309/0.898, allocations: 17.06 kB / 0.7524 GB, free: 25.95 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.252e-05/0.8981, allocations: 0 / 0.7524 GB, free: 25.95 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 9.748e-05/0.8982, allocations: 105 kB / 0.7525 GB, free: 25.84 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.729e-05/0.8982, allocations: 7.812 kB / 0.7525 GB, free: 25.84 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001981/0.8984, allocations: 75.73 kB / 0.7526 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.8984, allocations: 0 / 0.7526 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.8985, allocations: 0 / 0.7526 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.8985, allocations: 7.141 kB / 0.7526 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002304/0.8987, allocations: 176 kB / 0.7528 GB, free: 25.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.8987, allocations: 0 / 0.7528 GB, free: 25.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001525/0.8989, allocations: 24.41 kB / 0.7528 GB, free: 25.59 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.8989, allocations: 0 / 0.7528 GB, free: 25.59 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.8989, allocations: 3.844 kB / 0.7528 GB, free: 25.59 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.033e-06/0.8989, allocations: 0 / 0.7528 GB, free: 25.59 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.8989, allocations: 3.938 kB / 0.7528 GB, free: 25.59 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002072/0.8992, allocations: 158 kB / 0.753 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.23e-05/0.8992, allocations: 77.11 kB / 0.753 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.8993, allocations: 4 kB / 0.7531 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001896/0.8995, allocations: 17.53 kB / 0.7531 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.631e-05/0.8995, allocations: 13.83 kB / 0.7531 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.889e-06/0.8995, allocations: 0 / 0.7531 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 6.824e-05/0.8996, allocations: 98.39 kB / 0.7532 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.41e-07/0.8996, allocations: 0 / 0.7532 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0004637/0.9001, allocations: 11.59 kB / 0.7532 GB, free: 25.27 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.0006362/0.9008, allocations: 0.6981 MB / 0.7539 GB, free: 24.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001611/0.9009, allocations: 33.92 kB / 0.7539 GB, free: 24.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.901, allocations: 0 / 0.7539 GB, free: 24.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 6.186e-05/0.901, allocations: 15 kB / 0.7539 GB, free: 24.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002641/0.9013, allocations: 12.55 kB / 0.7539 GB, free: 24.59 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005959/0.9019, allocations: 127.2 kB / 0.754 GB, free: 24.48 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003682/0.9023, allocations: 0.6922 MB / 0.7547 GB, free: 23.79 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 6.965e-05/0.9024, allocations: 7.672 kB / 0.7547 GB, free: 23.79 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.95e-05/0.9024, allocations: 14.34 kB / 0.7547 GB, free: 23.78 MB / 0.5105 GB Notification: Performance of SimCode: time 6.32e-07/0.9025, allocations: 0 / 0.7547 GB, free: 23.78 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01585/0.9183, allocations: 1.441 MB / 0.7562 GB, free: 23.6 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000159/0.9185, allocations: 137.8 kB / 0.7563 GB, free: 23.38 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.522/2.44, allocations: 3.938 kB / 0.7563 GB, free: 23.38 MB / 0.5105 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)