Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-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(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_latest_Buildings_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.0008401/0.0008401, allocations: 91.53 kB / 15.06 MB, free: 1.098 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.001025/0.001025, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 223.2 MB / 240 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.481/2.481, allocations: 409.4 MB / 0.684 GB, free: 0.9609 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003418/0.0003419, allocations: 16 kB / 0.8378 GB, free: 6.5 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7158/0.7161, allocations: 146.8 MB / 0.9811 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001893/0.7181, allocations: 1.241 MB / 0.9823 GB, free: 5.012 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0003044/0.7184, allocations: 104.6 kB / 0.9824 GB, free: 4.906 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.402e-05/0.7184, allocations: 3.938 kB / 0.9824 GB, free: 4.902 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.000101/0.7185, allocations: 15.92 kB / 0.9825 GB, free: 4.887 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 2.474e-05/0.7186, allocations: 7.938 kB / 0.9825 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002156/0.7188, allocations: 19.95 kB / 0.9825 GB, free: 4.859 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001024/0.7189, allocations: 47.84 kB / 0.9825 GB, free: 4.812 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000144/0.7191, allocations: 19.98 kB / 0.9825 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.388e-05/0.7192, allocations: 31.84 kB / 0.9826 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.145e-05/0.7192, allocations: 19.92 kB / 0.9826 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.517e-05/0.7193, allocations: 0 / 0.9826 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.728e-05/0.7193, allocations: 11.98 kB / 0.9826 GB, free: 4.73 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.661e-05/0.7194, allocations: 11.92 kB / 0.9826 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.845e-05/0.7194, allocations: 33.7 kB / 0.9827 GB, free: 4.68 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001139/0.7196, allocations: 39.92 kB / 0.9827 GB, free: 4.637 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.7196, allocations: 0 / 0.9827 GB, free: 4.637 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.064e-06/0.7196, allocations: 0 / 0.9827 GB, free: 4.637 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.704e-06/0.7196, allocations: 4 kB / 0.9827 GB, free: 4.633 MB / 0.7325 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.0006244/0.7202, allocations: 377.4 kB / 0.9831 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.307e-05/0.7203, allocations: 16.02 kB / 0.9831 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.052e-05/0.7204, allocations: 30.56 kB / 0.9831 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.287e-05/0.7204, allocations: 7.906 kB / 0.9831 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002409/0.7206, allocations: 179 kB / 0.9833 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.7207, allocations: 8 kB / 0.9833 GB, free: 3.934 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.14e-05/0.7207, allocations: 11.89 kB / 0.9833 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003049/0.721, allocations: 97.62 kB / 0.9834 GB, free: 3.82 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.721, allocations: 3.938 kB / 0.9834 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.721, allocations: 0 / 0.9834 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.7211, allocations: 0 / 0.9834 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003787/0.7214, allocations: 111.9 kB / 0.9835 GB, free: 3.707 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000731/0.7222, allocations: 340.6 kB / 0.9838 GB, free: 3.324 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002249/0.7224, allocations: 74.56 kB / 0.9839 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.7226, allocations: 56.91 kB / 0.984 GB, free: 3.184 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.91e-05/0.7226, allocations: 0 / 0.984 GB, free: 3.184 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.7227, allocations: 30.56 kB / 0.984 GB, free: 3.145 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.7227, allocations: 0 / 0.984 GB, free: 3.145 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0006617/0.7234, allocations: 181.5 kB / 0.9842 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.692e-05/0.7234, allocations: 55.34 kB / 0.9842 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001213/0.7235, allocations: 121.8 kB / 0.9843 GB, free: 2.766 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.94e-05/0.7236, allocations: 25.7 kB / 0.9843 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.022e-05/0.7236, allocations: 92.14 kB / 0.9844 GB, free: 2.641 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.434e-05/0.7237, allocations: 11.75 kB / 0.9844 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.108e-06/0.7237, allocations: 0 / 0.9844 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000163/0.7238, allocations: 330.8 kB / 0.9848 GB, free: 2.297 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001425/0.724, allocations: 43.95 kB / 0.9848 GB, free: 2.254 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.7241, allocations: 43.97 kB / 0.9848 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001417/0.7243, allocations: 43.95 kB / 0.9849 GB, free: 2.168 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.7243, allocations: 0 / 0.9849 GB, free: 2.168 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003362/0.7246, allocations: 125.6 kB / 0.985 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.7247, allocations: 4 kB / 0.985 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.7247, allocations: 4 kB / 0.985 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.7247, allocations: 0 / 0.985 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001419/0.7248, allocations: 27.91 kB / 0.985 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.7249, allocations: 0 / 0.985 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.726e-05/0.7249, allocations: 15.98 kB / 0.9851 GB, free: 1.988 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.185e-05/0.725, allocations: 8 kB / 0.9851 GB, free: 1.98 MB / 0.7325 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 0.0001319/0.7251, allocations: 125.7 kB / 0.9852 GB, free: 1.848 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.781e-05/0.7252, allocations: 3.906 kB / 0.9852 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003946/0.7256, allocations: 133.5 kB / 0.9853 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.095e-06/0.7256, allocations: 0 / 0.9853 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.7256, allocations: 0 / 0.9853 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.7256, allocations: 0 / 0.9853 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002156/0.7258, allocations: 177.6 kB / 0.9855 GB, free: 1.48 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.7258, allocations: 0 / 0.9855 GB, free: 1.48 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.94e-05/0.7259, allocations: 27.97 kB / 0.9855 GB, free: 1.453 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.7259, allocations: 3.938 kB / 0.9855 GB, free: 1.449 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.7259, allocations: 4 kB / 0.9855 GB, free: 1.445 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.726, allocations: 7.938 kB / 0.9855 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.726, allocations: 0 / 0.9855 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003975/0.7264, allocations: 219.3 kB / 0.9857 GB, free: 1.207 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.7265, allocations: 85.11 kB / 0.9858 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.608e-05/0.7265, allocations: 4 kB / 0.9858 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.7266, allocations: 15.98 kB / 0.9858 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.606e-05/0.7267, allocations: 3.984 kB / 0.9858 GB, free: 1.082 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.7267, allocations: 4 kB / 0.9858 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.174e-05/0.7267, allocations: 91.27 kB / 0.9859 GB, free: 0.9883 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7268, allocations: 0 / 0.9859 GB, free: 0.9883 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002284/0.727, allocations: 11.91 kB / 0.9859 GB, free: 0.9766 MB / 0.7325 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.0009985/0.728, allocations: 0.7635 MB / 0.9867 GB, free: 188 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003193/0.7283, allocations: 95.92 kB / 0.9868 GB, free: 92 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.7283, allocations: 0 / 0.9868 GB, free: 92 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001417/0.7285, allocations: 56.03 kB / 0.9868 GB, free: 36 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003324/0.7288, allocations: 9.562 kB / 0.9868 GB, free: 28 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.7299, allocations: 0.5696 MB / 0.9874 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002608/0.7302, allocations: 0.6887 MB / 0.9881 GB, free: 14.69 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.651e-05/0.7303, allocations: 15.98 kB / 0.9881 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.042e-05/0.7303, allocations: 15.44 kB / 0.9881 GB, free: 14.66 MB / 0.7481 GB Notification: Performance of SimCode: time 2.4e-07/0.7303, allocations: 0 / 0.9881 GB, free: 14.66 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01143/0.7418, allocations: 1.476 MB / 0.9895 GB, free: 13.3 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001727/0.742, allocations: 180.2 kB / 0.9897 GB, free: 13.06 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.752/2.494, allocations: 3.938 kB / 0.9897 GB, free: 13.06 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat does not exist to compare? outputFormat=mat