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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.945/1.945, allocations: 387.1 MB / 399.7 MB, free: 9.504 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009301/0.0009301, allocations: 179.5 kB / 492.3 MB, free: 0.6445 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 221.3 MB / 0.7871 GB, free: 12.98 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000787/0.000787, allocations: 99.41 kB / 0.9267 GB, free: 14.04 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.841e-05/2.847e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1999/0.1999, allocations: 142.3 MB / 1.212 GB, free: 38.44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7112/0.9111, allocations: 148.7 MB / 1.358 GB, free: 19 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001684/0.9114, allocations: 71.86 kB / 1.358 GB, free: 19 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.001745/0.9131, allocations: 0.6272 MB / 1.358 GB, free: 34.67 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.072e-06/0.9131, allocations: 0 / 1.358 GB, free: 34.67 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.737e-06/0.9131, allocations: 0.5312 kB / 1.358 GB, free: 34.67 MB / 0.8386 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.0001746/0.9133, allocations: 326.2 kB / 1.359 GB, free: 34.33 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.9134, allocations: 7.812 kB / 1.359 GB, free: 34.33 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.962e-05/0.9134, allocations: 35.19 kB / 1.359 GB, free: 34.29 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.816e-05/0.9134, allocations: 3.906 kB / 1.359 GB, free: 34.29 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.599e-05/0.9135, allocations: 165 kB / 1.359 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.626e-06/0.9135, allocations: 4.562 kB / 1.359 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.608e-06/0.9135, allocations: 3.969 kB / 1.359 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.409e-05/0.9136, allocations: 73.22 kB / 1.359 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.9136, allocations: 0 / 1.359 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.943e-06/0.9136, allocations: 0 / 1.359 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.758e-06/0.9136, allocations: 1.547 kB / 1.359 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.969e-05/0.9137, allocations: 15.69 kB / 1.359 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001097/0.9138, allocations: 184.8 kB / 1.359 GB, free: 33.78 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.987e-05/0.9139, allocations: 99.48 kB / 1.359 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.574e-05/0.9139, allocations: 29.86 kB / 1.359 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001218/0.914, allocations: 89.25 kB / 1.359 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.639e-05/0.914, allocations: 35.81 kB / 1.359 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=5): time 9.82e-07/0.914, allocations: 0 / 1.359 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of matching and sorting (n=5): time 0.0001254/0.9142, allocations: 71.25 kB / 1.36 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.94e-05/0.9142, allocations: 155.6 kB / 1.36 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.427e-05/0.9142, allocations: 85 kB / 1.36 GB, free: 33.15 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.164e-06/0.9143, allocations: 27.23 kB / 1.36 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.864e-05/0.9143, allocations: 84.08 kB / 1.36 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.661e-05/0.9143, allocations: 21.16 kB / 1.36 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-06/0.9143, allocations: 4.156 kB / 1.36 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.079e-05/0.9144, allocations: 310.8 kB / 1.36 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.58e-05/0.9144, allocations: 8.016 kB / 1.36 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.26e-05/0.9144, allocations: 36.97 kB / 1.36 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.754e-05/0.9145, allocations: 13.2 kB / 1.36 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.9145, allocations: 3.953 kB / 1.36 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of matching and sorting (n=5) (initialization): time 7.597e-05/0.9146, allocations: 65.62 kB / 1.36 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.678e-06/0.9146, allocations: 3.844 kB / 1.36 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.9146, allocations: 0 / 1.36 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.9146, allocations: 4.5 kB / 1.36 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.263e-05/0.9147, allocations: 11.86 kB / 1.36 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.9147, allocations: 5.578 kB / 1.36 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.812e-05/0.9147, allocations: 3.844 kB / 1.36 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.9147, allocations: 4.578 kB / 1.36 GB, free: 32.61 MB / 0.8386 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 () * 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.163e-05/0.9148, allocations: 105.1 kB / 1.36 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.354e-05/0.9148, allocations: 8.312 kB / 1.36 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001572/0.915, allocations: 106.1 kB / 1.361 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.915, allocations: 3.844 kB / 1.361 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.915, allocations: 0 / 1.361 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.915, allocations: 4.562 kB / 1.361 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.488e-05/0.9151, allocations: 164.5 kB / 1.361 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.9151, allocations: 0 / 1.361 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.24e-05/0.9151, allocations: 21.53 kB / 1.361 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.9152, allocations: 0.6094 kB / 1.361 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.636e-06/0.9152, allocations: 15.92 kB / 1.361 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.9152, allocations: 0.6094 kB / 1.361 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.9152, allocations: 3.938 kB / 1.361 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000107/0.9153, allocations: 173.7 kB / 1.361 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.735e-05/0.9153, allocations: 85.69 kB / 1.361 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.156e-05/0.9153, allocations: 0.7969 kB / 1.361 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.748e-05/0.9154, allocations: 7.094 kB / 1.361 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.659e-05/0.9154, allocations: 10.44 kB / 1.361 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.608e-06/0.9154, allocations: 3.844 kB / 1.361 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.554e-05/0.9154, allocations: 79.28 kB / 1.361 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9154, allocations: 96 / 1.361 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001817/0.9156, allocations: 19.58 kB / 1.361 GB, free: 31.88 MB / 0.8386 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 () * 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.0004142/0.9161, allocations: 0.981 MB / 1.362 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 7.557e-05/0.9161, allocations: 31.27 kB / 1.362 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.9161, allocations: 4.125 kB / 1.362 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.753e-05/0.9162, allocations: 27.67 kB / 1.362 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.523e-05/0.9163, allocations: 7.078 kB / 1.362 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002724/0.9166, allocations: 144.5 kB / 1.362 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002273/0.9168, allocations: 0.6853 MB / 1.363 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.177e-05/0.9168, allocations: 8.172 kB / 1.363 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.92e-05/0.9169, allocations: 16.12 kB / 1.363 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of SimCode: time 8.31e-07/0.9169, allocations: 0 / 1.363 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0104/0.9273, allocations: 1.216 MB / 1.364 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001234/0.9274, allocations: 159 kB / 1.364 GB, free: 29.65 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.347/2.275, allocations: 3.938 kB / 1.364 GB, free: 29.65 MB / 0.8386 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