Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.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.Functions.Examples.Round,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Round",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Round,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Round",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.001199/0.001199, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001105/0.001105, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.466/2.466, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.699/4.699, allocations: 409.2 MB / 0.6838 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006641/0.0006643, allocations: 16 kB / 0.8375 GB, free: 6.492 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.371/1.372, allocations: 146.8 MB / 0.9809 GB, free: 6.242 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.001427/1.373, allocations: 333.6 kB / 0.9812 GB, free: 5.914 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.000484/1.374, allocations: 59.78 kB / 0.9813 GB, free: 5.855 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.543e-05/1.374, allocations: 0 / 0.9813 GB, free: 5.855 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.854e-05/1.374, allocations: 0 / 0.9813 GB, free: 5.855 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 1.28e-05/1.374, allocations: 0 / 0.9813 GB, free: 5.855 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004031/1.374, allocations: 19.97 kB / 0.9813 GB, free: 5.836 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.79e-05/1.374, allocations: 4 kB / 0.9813 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.317e-05/1.374, allocations: 3.984 kB / 0.9813 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.324e-05/1.374, allocations: 11.94 kB / 0.9813 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001885/1.375, allocations: 4 kB / 0.9813 GB, free: 5.812 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.084e-05/1.375, allocations: 4 kB / 0.9813 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001411/1.375, allocations: 15.98 kB / 0.9813 GB, free: 5.793 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.004e-05/1.375, allocations: 3.984 kB / 0.9813 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.824e-05/1.375, allocations: 29.69 kB / 0.9813 GB, free: 5.754 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001118/1.375, allocations: 8 kB / 0.9814 GB, free: 5.746 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 1.542e-05/1.375, allocations: 0 / 0.9814 GB, free: 5.746 MB / 0.7325 GB Notification: Performance of FrontEnd: time 5.27e-06/1.375, allocations: 7.875 kB / 0.9814 GB, free: 5.738 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.945e-06/1.375, allocations: 0 / 0.9814 GB, free: 5.738 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0009062/1.376, allocations: 324.7 kB / 0.9817 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 8.942e-05/1.376, allocations: 16.03 kB / 0.9817 GB, free: 5.359 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.008e-05/1.376, allocations: 34.55 kB / 0.9817 GB, free: 5.316 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.277e-05/1.376, allocations: 0 / 0.9817 GB, free: 5.316 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001977/1.376, allocations: 159.1 kB / 0.9819 GB, free: 5.121 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.152e-05/1.377, allocations: 4 kB / 0.9819 GB, free: 5.117 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.729e-05/1.377, allocations: 0 / 0.9819 GB, free: 5.117 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002593/1.377, allocations: 77.88 kB / 0.9819 GB, free: 5.02 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/1.377, allocations: 7.984 kB / 0.982 GB, free: 5.012 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.96e-05/1.377, allocations: 3.984 kB / 0.982 GB, free: 5.008 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.848e-06/1.377, allocations: 0 / 0.982 GB, free: 5.008 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.765e-05/1.377, allocations: 11.94 kB / 0.982 GB, free: 4.996 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003333/1.377, allocations: 179.4 kB / 0.9821 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000298/1.378, allocations: 97.23 kB / 0.9822 GB, free: 4.617 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004783/1.378, allocations: 85.09 kB / 0.9823 GB, free: 4.516 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.043e-05/1.378, allocations: 46.5 kB / 0.9824 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 1.843e-06/1.378, allocations: 0 / 0.9824 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5): time 0.0003356/1.379, allocations: 77.44 kB / 0.9824 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002529/1.379, allocations: 158.2 kB / 0.9826 GB, free: 4.188 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.546e-05/1.379, allocations: 90.48 kB / 0.9827 GB, free: 4.09 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.774e-05/1.379, allocations: 29.7 kB / 0.9827 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.667e-05/1.379, allocations: 80.14 kB / 0.9828 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.426e-05/1.379, allocations: 19.73 kB / 0.9828 GB, free: 3.953 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.477e-06/1.379, allocations: 4 kB / 0.9828 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002378/1.379, allocations: 314.8 kB / 0.9831 GB, free: 3.633 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.94e-05/1.379, allocations: 4 kB / 0.9831 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.322e-05/1.38, allocations: 32.3 kB / 0.9831 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.89e-05/1.38, allocations: 19.92 kB / 0.9832 GB, free: 3.562 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/1.38, allocations: 0 / 0.9832 GB, free: 3.562 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001876/1.38, allocations: 61.53 kB / 0.9832 GB, free: 3.496 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/1.38, allocations: 4 kB / 0.9832 GB, free: 3.492 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/1.38, allocations: 4 kB / 0.9832 GB, free: 3.488 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.731e-05/1.38, allocations: 4.156 kB / 0.9832 GB, free: 3.484 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/1.38, allocations: 23.86 kB / 0.9832 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.98e-05/1.38, allocations: 7.953 kB / 0.9833 GB, free: 3.453 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.524e-05/1.38, allocations: 0 / 0.9833 GB, free: 3.453 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.992e-05/1.38, allocations: 4 kB / 0.9833 GB, free: 3.449 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (5): * Single equations (assignments): 5 * 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.0001472/1.38, allocations: 105.8 kB / 0.9834 GB, free: 3.336 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.056e-05/1.38, allocations: 8.125 kB / 0.9834 GB, free: 3.328 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003926/1.381, allocations: 100.7 kB / 0.9835 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/1.381, allocations: 0 / 0.9835 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/1.381, allocations: 4 kB / 0.9835 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/1.381, allocations: 7.891 kB / 0.9835 GB, free: 3.215 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002751/1.381, allocations: 165.6 kB / 0.9836 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/1.381, allocations: 4.156 kB / 0.9836 GB, free: 3 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.576e-05/1.381, allocations: 19.98 kB / 0.9837 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/1.381, allocations: 0 / 0.9837 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/1.381, allocations: 4 kB / 0.9837 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/1.381, allocations: 0 / 0.9837 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.501e-06/1.381, allocations: 4 kB / 0.9837 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003866/1.382, allocations: 177.7 kB / 0.9838 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.322e-05/1.382, allocations: 85.14 kB / 0.9839 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.237e-05/1.382, allocations: 3.938 kB / 0.9839 GB, free: 2.641 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.2e-05/1.382, allocations: 4 kB / 0.9839 GB, free: 2.637 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.49e-05/1.382, allocations: 19.92 kB / 0.9839 GB, free: 2.617 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/1.382, allocations: 0 / 0.9839 GB, free: 2.617 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.151e-05/1.382, allocations: 83.28 kB / 0.984 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.61e-07/1.382, allocations: 0 / 0.984 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003862/1.382, allocations: 4 kB / 0.984 GB, free: 2.531 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (9): * Single equations (assignments): 9 * 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.00133/1.384, allocations: 0.9833 MB / 0.985 GB, free: 1.492 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001951/1.384, allocations: 35.92 kB / 0.985 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/1.384, allocations: 0 / 0.985 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000235/1.384, allocations: 31.86 kB / 0.985 GB, free: 1.426 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001731/1.385, allocations: 4 kB / 0.985 GB, free: 1.422 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007255/1.385, allocations: 184.4 kB / 0.9852 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004448/1.386, allocations: 0.682 MB / 0.9859 GB, free: 496 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.818e-05/1.386, allocations: 8 kB / 0.9859 GB, free: 488 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.056e-05/1.386, allocations: 23.42 kB / 0.9859 GB, free: 464 kB / 0.7325 GB Notification: Performance of SimCode: time 3.41e-07/1.386, allocations: 0 / 0.9859 GB, free: 464 kB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01738/1.403, allocations: 1.204 MB / 0.9871 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002572/1.404, allocations: 188.6 kB / 0.9873 GB, free: 15.13 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.889/4.293, allocations: 2.5 kB / 0.9873 GB, free: 15.13 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Round_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Round.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round_res.mat does not exist to compare? outputFormat=mat