Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_Buildings_Utilities_Math_Functions_Examples_Round",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Round,fileNamePrefix="Buildings_9_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.001175/0.001175, allocations: 99.7 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.001035/0.001035, allocations: 177.3 kB / 15.94 MB, free: 228 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.324/1.324, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.309/2.309, allocations: 390.3 MB / 0.6653 GB, free: 3.004 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003305/0.0003306, allocations: 11.98 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7365/0.7368, allocations: 142.3 MB / 0.9536 GB, free: 8.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.0009017/0.7378, allocations: 330 kB / 0.9539 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002813/0.7381, allocations: 52.88 kB / 0.954 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.89e-05/0.7381, allocations: 5.281 kB / 0.954 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.67e-05/0.7382, allocations: 3.938 kB / 0.954 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.715e-06/0.7382, allocations: 0 / 0.954 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002877/0.7385, allocations: 22.78 kB / 0.954 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.743e-05/0.7386, allocations: 6.234 kB / 0.954 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.484e-05/0.7386, allocations: 1.156 kB / 0.954 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.597e-05/0.7387, allocations: 7.969 kB / 0.954 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.516e-05/0.7388, allocations: 15.25 kB / 0.954 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.292e-05/0.7388, allocations: 2 kB / 0.954 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.585e-05/0.7389, allocations: 9.375 kB / 0.954 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.165e-05/0.7389, allocations: 5.266 kB / 0.954 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.197e-05/0.7389, allocations: 27.17 kB / 0.9541 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.698e-05/0.739, allocations: 9.703 kB / 0.9541 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.739, allocations: 4 kB / 0.9541 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.434e-06/0.7391, allocations: 0 / 0.9541 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.602e-06/0.7391, allocations: 0 / 0.9541 GB, free: 7.695 MB / 0.7169 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.0003947/0.7395, allocations: 320.9 kB / 0.9544 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.216e-05/0.7395, allocations: 10.22 kB / 0.9544 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.935e-05/0.7396, allocations: 30.56 kB / 0.9544 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.287e-05/0.7396, allocations: 9.328 kB / 0.9544 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.884e-05/0.7397, allocations: 164.2 kB / 0.9546 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.7397, allocations: 5.281 kB / 0.9546 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.151e-05/0.7398, allocations: 4.844 kB / 0.9546 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001811/0.7399, allocations: 74.12 kB / 0.9547 GB, free: 7 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.74, allocations: 0 / 0.9547 GB, free: 7 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.74, allocations: 5.156 kB / 0.9547 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.74, allocations: 5.391 kB / 0.9547 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.86e-05/0.7401, allocations: 13.36 kB / 0.9547 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002179/0.7403, allocations: 188.8 kB / 0.9549 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001003/0.7404, allocations: 93.83 kB / 0.955 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002128/0.7406, allocations: 88.73 kB / 0.955 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/0.7407, allocations: 43.88 kB / 0.9551 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.533e-06/0.7407, allocations: 0 / 0.9551 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.000243/0.7409, allocations: 73.58 kB / 0.9552 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.727e-05/0.741, allocations: 163.9 kB / 0.9553 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.952e-05/0.741, allocations: 89.86 kB / 0.9554 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.741, allocations: 26.36 kB / 0.9554 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.243e-05/0.7411, allocations: 81.14 kB / 0.9555 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.248e-05/0.7411, allocations: 14.03 kB / 0.9555 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.588e-06/0.7411, allocations: 4.531 kB / 0.9555 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.079e-05/0.7412, allocations: 324 kB / 0.9558 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.729e-05/0.7412, allocations: 2.656 kB / 0.9558 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.807e-05/0.7413, allocations: 33.36 kB / 0.9559 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.311e-05/0.7413, allocations: 10.05 kB / 0.9559 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.7413, allocations: 4 kB / 0.9559 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001062/0.7414, allocations: 61.28 kB / 0.9559 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.7414, allocations: 6 kB / 0.9559 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.7415, allocations: 1.219 kB / 0.9559 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.7415, allocations: 2.344 kB / 0.9559 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-05/0.7416, allocations: 15.45 kB / 0.956 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.7416, allocations: 5.453 kB / 0.956 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.91e-05/0.7416, allocations: 10.41 kB / 0.956 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.7417, allocations: 6.125 kB / 0.956 GB, free: 5.543 MB / 0.7169 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 6.745e-05/0.7417, allocations: 113.6 kB / 0.9561 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.07e-05/0.7418, allocations: 6.688 kB / 0.9561 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002176/0.742, allocations: 96.25 kB / 0.9562 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.742, allocations: 2.938 kB / 0.9562 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.742, allocations: 1.469 kB / 0.9562 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.742, allocations: 5.375 kB / 0.9562 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001453/0.7422, allocations: 178.3 kB / 0.9564 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.7422, allocations: 1.188 kB / 0.9564 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.129e-05/0.7423, allocations: 16.88 kB / 0.9564 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.7423, allocations: 1.969 kB / 0.9564 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.7423, allocations: 1.531 kB / 0.9564 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/0.7423, allocations: 6.938 kB / 0.9564 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.7423, allocations: 5.469 kB / 0.9564 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001808/0.7425, allocations: 178.9 kB / 0.9566 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.216e-05/0.7425, allocations: 83.89 kB / 0.9566 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.809e-05/0.7426, allocations: 6.516 kB / 0.9566 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.089e-05/0.7426, allocations: 1.5 kB / 0.9566 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.805e-05/0.7426, allocations: 12.17 kB / 0.9567 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.277e-06/0.7426, allocations: 3.531 kB / 0.9567 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.205e-05/0.7427, allocations: 75.28 kB / 0.9567 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.7427, allocations: 4 kB / 0.9567 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002394/0.7429, allocations: 6.906 kB / 0.9567 GB, free: 4.73 MB / 0.7169 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.0004822/0.7434, allocations: 0.9825 MB / 0.9577 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001305/0.7435, allocations: 31.58 kB / 0.9577 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.7436, allocations: 1.625 kB / 0.9577 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.568e-05/0.7436, allocations: 31.36 kB / 0.9578 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001355/0.7438, allocations: 13.3 kB / 0.9578 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004788/0.7442, allocations: 176.6 kB / 0.9579 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001943/0.7444, allocations: 0.6893 MB / 0.9586 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.838e-05/0.7445, allocations: 8.359 kB / 0.9586 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.325e-05/0.7446, allocations: 15.66 kB / 0.9586 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.7446, allocations: 0 / 0.9586 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01152/0.7561, allocations: 1.199 MB / 0.9598 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001619/0.7563, allocations: 185.6 kB / 0.96 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.577/2.333, allocations: 0 / 0.96 GB, free: 1.973 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_Round_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_Round.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round_res.mat does not exist to compare? outputFormat=mat