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.0009849/0.0009849, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.001396/0.001396, allocations: 168.7 kB / 15.95 MB, free: 200 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.431/1.431, allocations: 223.2 MB / 240 MB, free: 5.438 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.355/2.355, allocations: 390.4 MB / 0.6655 GB, free: 2.953 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003795/0.0003797, allocations: 12 kB / 0.8149 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7815/0.7819, allocations: 142.3 MB / 0.9539 GB, free: 8.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.0007784/0.7828, allocations: 328.6 kB / 0.9542 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000247/0.783, allocations: 61.14 kB / 0.9542 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.438e-05/0.7831, allocations: 0 / 0.9542 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.158e-05/0.7831, allocations: 0 / 0.9542 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.237e-06/0.7831, allocations: 0 / 0.9542 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000227/0.7833, allocations: 18.98 kB / 0.9543 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.897e-05/0.7834, allocations: 7.953 kB / 0.9543 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.436e-05/0.7834, allocations: 1.688 kB / 0.9543 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.174e-05/0.7835, allocations: 8.062 kB / 0.9543 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.204e-05/0.7835, allocations: 18.5 kB / 0.9543 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.105e-05/0.7836, allocations: 1.25 kB / 0.9543 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.662e-05/0.7836, allocations: 14.55 kB / 0.9543 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.668e-06/0.7837, allocations: 1.219 kB / 0.9543 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.88e-05/0.7837, allocations: 26.95 kB / 0.9543 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.85e-05/0.7838, allocations: 12.83 kB / 0.9543 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.7838, allocations: 0 / 0.9543 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.974e-06/0.7838, allocations: 1.188 kB / 0.9543 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.697e-06/0.7838, allocations: 0 / 0.9543 GB, free: 7.727 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.0002745/0.7841, allocations: 321.6 kB / 0.9546 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.7841, allocations: 8.875 kB / 0.9547 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.926e-05/0.7842, allocations: 35.84 kB / 0.9547 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.258e-05/0.7842, allocations: 9.016 kB / 0.9547 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.074e-05/0.7842, allocations: 163 kB / 0.9549 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.326e-06/0.7843, allocations: 4.969 kB / 0.9549 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.094e-05/0.7843, allocations: 2.25 kB / 0.9549 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001232/0.7844, allocations: 77.25 kB / 0.9549 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.7844, allocations: 1.094 kB / 0.9549 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.887e-06/0.7844, allocations: 1.219 kB / 0.9549 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.7844, allocations: 0 / 0.9549 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.75e-05/0.7845, allocations: 18.42 kB / 0.955 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001351/0.7846, allocations: 192.3 kB / 0.9551 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.27e-05/0.7847, allocations: 98.2 kB / 0.9552 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.251e-05/0.7847, allocations: 37.55 kB / 0.9553 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001526/0.7849, allocations: 88 kB / 0.9554 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.59e-05/0.7849, allocations: 33.38 kB / 0.9554 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.022e-06/0.7849, allocations: 0 / 0.9554 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0001666/0.7851, allocations: 70.41 kB / 0.9555 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.315e-05/0.7851, allocations: 163.7 kB / 0.9556 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.633e-05/0.7852, allocations: 93.84 kB / 0.9557 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.665e-06/0.7852, allocations: 25.7 kB / 0.9557 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.02e-05/0.7852, allocations: 84.14 kB / 0.9558 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.88e-05/0.7852, allocations: 14.5 kB / 0.9558 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.446e-06/0.7852, allocations: 0 / 0.9558 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.45e-05/0.7853, allocations: 320.5 kB / 0.9561 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.651e-05/0.7853, allocations: 10.98 kB / 0.9561 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.334e-05/0.7853, allocations: 33.42 kB / 0.9562 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.014e-05/0.7854, allocations: 9.5 kB / 0.9562 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.7854, allocations: 3.938 kB / 0.9562 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 8.844e-05/0.7855, allocations: 65.86 kB / 0.9562 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.7855, allocations: 5.781 kB / 0.9562 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.7855, allocations: 0.875 kB / 0.9562 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.7855, allocations: 2.188 kB / 0.9562 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.084e-05/0.7856, allocations: 12.09 kB / 0.9563 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.7856, allocations: 0.9062 kB / 0.9563 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.064e-05/0.7856, allocations: 5.812 kB / 0.9563 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.909e-06/0.7856, allocations: 7.422 kB / 0.9563 GB, free: 5.535 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 5.582e-05/0.7857, allocations: 120.8 kB / 0.9564 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.215e-05/0.7857, allocations: 1.375 kB / 0.9564 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001735/0.7859, allocations: 97.41 kB / 0.9565 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.127e-06/0.7859, allocations: 10.41 kB / 0.9565 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.7859, allocations: 1.188 kB / 0.9565 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.7859, allocations: 1.406 kB / 0.9565 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.352e-05/0.786, allocations: 175 kB / 0.9567 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.786, allocations: 128 / 0.9567 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.777e-05/0.7861, allocations: 25.3 kB / 0.9567 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.7861, allocations: 2.125 kB / 0.9567 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.7861, allocations: 6.031 kB / 0.9567 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.7861, allocations: 1.281 kB / 0.9567 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.7861, allocations: 2.125 kB / 0.9567 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001116/0.7863, allocations: 120.7 kB / 0.9568 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.125e-05/0.7863, allocations: 87.38 kB / 0.9569 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.516e-05/0.7863, allocations: 6.75 kB / 0.9569 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.708e-05/0.7863, allocations: 1.531 kB / 0.9569 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.138e-05/0.7864, allocations: 15.48 kB / 0.9569 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.873e-06/0.7864, allocations: 4.062 kB / 0.9569 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.357e-05/0.7864, allocations: 79.28 kB / 0.957 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7864, allocations: 0 / 0.957 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002054/0.7866, allocations: 9.594 kB / 0.957 GB, free: 4.785 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.0003329/0.7869, allocations: 0.6622 MB / 0.9577 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.593e-05/0.7871, allocations: 31.86 kB / 0.9577 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.7871, allocations: 320 / 0.9577 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.508e-05/0.7871, allocations: 27.97 kB / 0.9577 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001624/0.7873, allocations: 9.281 kB / 0.9577 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003649/0.7876, allocations: 183.7 kB / 0.9579 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001042/0.7878, allocations: 0.6884 MB / 0.9586 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.212e-05/0.7878, allocations: 8.297 kB / 0.9586 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.125e-05/0.7878, allocations: 10.88 kB / 0.9586 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.7878, allocations: 4.906 kB / 0.9586 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01168/0.7995, allocations: 1.213 MB / 0.9598 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000182/0.7998, allocations: 186.3 kB / 0.96 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.539/2.339, allocations: 0 / 0.96 GB, free: 2.367 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