Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007324/0.007324, allocations: 107.4 kB / 15.74 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00172/0.00172, allocations: 197 kB / 16.67 MB, free: 5.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.261/1.261, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001967/0.001967, allocations: 287.7 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8839/0.8839, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001747/0.001747, allocations: 103.8 kB / 0.681 GB, free: 7.41 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4782/0.48, allocations: 86.98 MB / 0.7659 GB, free: 3.785 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002888/0.4829, allocations: 1.523 MB / 0.7674 GB, free: 2.25 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0004046/0.4834, allocations: 120.5 kB / 0.7675 GB, free: 2.129 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.197e-05/0.4835, allocations: 4 kB / 0.7675 GB, free: 2.125 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001398/0.4837, allocations: 7.875 kB / 0.7675 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.469e-05/0.4837, allocations: 7.922 kB / 0.7675 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002691/0.484, allocations: 27.97 kB / 0.7676 GB, free: 2.082 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001257/0.4841, allocations: 55.84 kB / 0.7676 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.4842, allocations: 22.8 kB / 0.7676 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 7.122e-05/0.4843, allocations: 27.91 kB / 0.7677 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 7.994e-05/0.4844, allocations: 39.84 kB / 0.7677 GB, free: 1.941 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.845e-05/0.4844, allocations: 4 kB / 0.7677 GB, free: 1.938 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.805e-05/0.4845, allocations: 8 kB / 0.7677 GB, free: 1.93 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 5.008e-05/0.4846, allocations: 15.92 kB / 0.7677 GB, free: 1.914 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 4.789e-05/0.4846, allocations: 23.86 kB / 0.7678 GB, free: 1.891 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000148/0.4848, allocations: 59.8 kB / 0.7678 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.4848, allocations: 0 / 0.7678 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.512e-06/0.4848, allocations: 3.938 kB / 0.7678 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.4848, allocations: 0 / 0.7678 GB, free: 1.828 MB / 0.5294 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.0005433/0.4854, allocations: 383.3 kB / 0.7682 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.4854, allocations: 8.031 kB / 0.7682 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.58e-05/0.4854, allocations: 34.75 kB / 0.7682 GB, free: 1.352 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.806e-05/0.4855, allocations: 8.844 kB / 0.7682 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001637/0.4856, allocations: 196.1 kB / 0.7684 GB, free: 1.113 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.028e-05/0.4857, allocations: 4.375 kB / 0.7684 GB, free: 1.109 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.026e-05/0.4857, allocations: 384 / 0.7684 GB, free: 1.109 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002717/0.486, allocations: 90.14 kB / 0.7685 GB, free: 1.016 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.486, allocations: 7.938 kB / 0.7685 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.486, allocations: 0 / 0.7685 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.486, allocations: 0 / 0.7685 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002951/0.4863, allocations: 83.91 kB / 0.7686 GB, free: 0.9258 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005254/0.4868, allocations: 328.6 kB / 0.7689 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001901/0.487, allocations: 54.53 kB / 0.769 GB, free: 0.4922 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/0.4872, allocations: 40.92 kB / 0.769 GB, free: 460 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 4.111e-05/0.4872, allocations: 4 kB / 0.769 GB, free: 456 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.4873, allocations: 38.55 kB / 0.769 GB, free: 408 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.4873, allocations: 0 / 0.769 GB, free: 408 kB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0005264/0.4878, allocations: 133.6 kB / 0.7692 GB, free: 268 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.405e-05/0.4879, allocations: 55.41 kB / 0.7692 GB, free: 200 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.945e-05/0.4879, allocations: 117.8 kB / 0.7693 GB, free: 72 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.488, allocations: 25.7 kB / 0.7694 GB, free: 40 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 6.68e-05/0.488, allocations: 96.03 kB / 0.7694 GB, free: 15.94 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.219e-05/0.4881, allocations: 11.84 kB / 0.7695 GB, free: 15.93 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.706e-05/0.4881, allocations: 13.72 kB / 0.7695 GB, free: 15.91 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.4882, allocations: 322.8 kB / 0.7698 GB, free: 15.59 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.4884, allocations: 31.97 kB / 0.7698 GB, free: 15.55 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.4885, allocations: 40.14 kB / 0.7698 GB, free: 15.52 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002494/0.4888, allocations: 72.86 kB / 0.7699 GB, free: 15.44 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.4888, allocations: 0 / 0.7699 GB, free: 15.44 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003061/0.4891, allocations: 117.5 kB / 0.77 GB, free: 15.32 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.4891, allocations: 4 kB / 0.77 GB, free: 15.32 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.4891, allocations: 0 / 0.77 GB, free: 15.32 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.4891, allocations: 0 / 0.77 GB, free: 15.32 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.4893, allocations: 19.92 kB / 0.7701 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.4893, allocations: 0 / 0.7701 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.451e-05/0.4893, allocations: 11.98 kB / 0.7701 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.4894, allocations: 3.984 kB / 0.7701 GB, free: 15.28 MB / 0.545 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.632e-05/0.4895, allocations: 125.8 kB / 0.7702 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.748e-05/0.4895, allocations: 7.906 kB / 0.7702 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000333/0.4898, allocations: 113.4 kB / 0.7703 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.4898, allocations: 0 / 0.7703 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.4899, allocations: 4 kB / 0.7703 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.4899, allocations: 7.984 kB / 0.7703 GB, free: 15.01 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001741/0.49, allocations: 177.6 kB / 0.7705 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-06/0.4901, allocations: 7.984 kB / 0.7705 GB, free: 14.78 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.964e-05/0.4901, allocations: 19.98 kB / 0.7705 GB, free: 14.76 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.4902, allocations: 0 / 0.7705 GB, free: 14.76 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-06/0.4902, allocations: 0 / 0.7705 GB, free: 14.76 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.4902, allocations: 0 / 0.7705 GB, free: 14.76 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.4902, allocations: 0 / 0.7705 GB, free: 14.76 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003401/0.4905, allocations: 207.3 kB / 0.7707 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.637e-05/0.4906, allocations: 81.02 kB / 0.7708 GB, free: 14.44 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.507e-05/0.4906, allocations: 4 kB / 0.7708 GB, free: 14.44 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.556e-05/0.4907, allocations: 7.984 kB / 0.7708 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.883e-05/0.4907, allocations: 7.984 kB / 0.7708 GB, free: 14.42 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/0.4908, allocations: 0 / 0.7708 GB, free: 14.42 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.011e-05/0.4908, allocations: 95.27 kB / 0.7709 GB, free: 14.33 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4908, allocations: 0 / 0.7709 GB, free: 14.33 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002244/0.491, allocations: 19.94 kB / 0.7709 GB, free: 14.31 MB / 0.545 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006298/0.4917, allocations: 0.7319 MB / 0.7716 GB, free: 13.55 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000298/0.492, allocations: 75.86 kB / 0.7717 GB, free: 13.48 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.492, allocations: 0 / 0.7717 GB, free: 13.48 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001377/0.4921, allocations: 44.23 kB / 0.7717 GB, free: 13.43 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002494/0.4924, allocations: 8 kB / 0.7718 GB, free: 13.43 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001644/0.4941, allocations: 1.44 MB / 0.7732 GB, free: 11.91 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002278/0.4943, allocations: 0.6924 MB / 0.7738 GB, free: 11.19 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.215e-05/0.4944, allocations: 7.984 kB / 0.7738 GB, free: 11.18 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.667e-05/0.4944, allocations: 15.44 kB / 0.7739 GB, free: 11.17 MB / 0.545 GB Notification: Performance of SimCode: time 2e-07/0.4944, allocations: 0 / 0.7739 GB, free: 11.17 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01741/0.5118, allocations: 1.873 MB / 0.7757 GB, free: 9.395 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.981/7.493, allocations: 4.562 kB / 0.7757 GB, free: 9.391 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1)