Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.276/2.276, allocations: 393.5 MB / 408.4 MB, free: 10.96 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.001075/0.001075, allocations: 191.1 kB / 0.4901 GB, free: 2.211 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.55/1.55, allocations: 223.1 MB / 0.7992 GB, free: 14.69 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.001014/0.001014, allocations: 95 kB / 0.9396 GB, free: 1.852 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003489/0.0003489, allocations: 7.062 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.2999, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1935/0.4934, allocations: 149.6 MB / 1.375 GB, free: 3.711 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002338/0.4937, allocations: 75.94 kB / 1.375 GB, free: 3.637 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.002086/0.4958, allocations: 0.7086 MB / 1.376 GB, free: 2.926 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.204e-06/0.4958, allocations: 0 / 1.376 GB, free: 2.926 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.313e-06/0.4958, allocations: 0 / 1.376 GB, free: 2.926 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004403/0.4963, allocations: 347.3 kB / 1.377 GB, free: 2.539 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.4964, allocations: 12.56 kB / 1.377 GB, free: 2.527 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.557e-05/0.4964, allocations: 34.56 kB / 1.377 GB, free: 2.484 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.811e-05/0.4964, allocations: 3.906 kB / 1.377 GB, free: 2.48 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001364/0.4966, allocations: 167 kB / 1.377 GB, free: 2.277 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.375e-05/0.4966, allocations: 3.984 kB / 1.377 GB, free: 2.273 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.103e-05/0.4966, allocations: 0 / 1.377 GB, free: 2.273 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/0.4968, allocations: 57.67 kB / 1.377 GB, free: 2.211 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.4968, allocations: 3.938 kB / 1.377 GB, free: 2.207 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.4969, allocations: 4 kB / 1.377 GB, free: 2.203 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.4969, allocations: 0 / 1.377 GB, free: 2.203 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001897/0.4971, allocations: 51.89 kB / 1.377 GB, free: 2.152 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003761/0.4975, allocations: 252.9 kB / 1.377 GB, free: 1.855 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001474/0.4976, allocations: 42.56 kB / 1.377 GB, free: 1.805 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.4976, allocations: 3.984 kB / 1.377 GB, free: 1.801 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.294e-05/0.4977, allocations: 34.56 kB / 1.377 GB, free: 1.758 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=2): time 1.212e-06/0.4977, allocations: 0 / 1.377 GB, free: 1.758 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2): time 0.0004063/0.4981, allocations: 109.7 kB / 1.377 GB, free: 1.645 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.034e-05/0.4981, allocations: 55.34 kB / 1.377 GB, free: 1.578 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.31e-05/0.4982, allocations: 96.95 kB / 1.377 GB, free: 1.477 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.551e-05/0.4982, allocations: 25.7 kB / 1.377 GB, free: 1.445 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.042e-05/0.4983, allocations: 84.14 kB / 1.378 GB, free: 1.359 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.792e-05/0.4983, allocations: 7.906 kB / 1.378 GB, free: 1.352 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.719e-06/0.4983, allocations: 0 / 1.378 GB, free: 1.352 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.4985, allocations: 314.8 kB / 1.378 GB, free: 1.035 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.743e-05/0.4986, allocations: 28.02 kB / 1.378 GB, free: 1.008 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.971e-05/0.4987, allocations: 19.98 kB / 1.378 GB, free: 0.9883 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.734e-05/0.4988, allocations: 28.03 kB / 1.378 GB, free: 0.9609 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.4988, allocations: 0 / 1.378 GB, free: 0.9609 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002268/0.499, allocations: 81.59 kB / 1.378 GB, free: 0.875 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.499, allocations: 4 kB / 1.378 GB, free: 0.8711 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.499, allocations: 0 / 1.378 GB, free: 0.8711 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.4991, allocations: 4.031 kB / 1.378 GB, free: 0.8672 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.4992, allocations: 15.98 kB / 1.378 GB, free: 0.8516 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.4992, allocations: 0 / 1.378 GB, free: 0.8516 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.072e-05/0.4993, allocations: 4 kB / 1.378 GB, free: 0.8477 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.326e-06/0.4993, allocations: 3.953 kB / 1.378 GB, free: 0.8438 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 9.046e-05/0.4994, allocations: 117.8 kB / 1.378 GB, free: 0.7188 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.294e-05/0.4994, allocations: 3.906 kB / 1.378 GB, free: 0.7148 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.249e-05/0.4994, allocations: 7.125 kB / 1.378 GB, free: 0.7109 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.4994, allocations: 4 kB / 1.378 GB, free: 0.707 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.4995, allocations: 0 / 1.378 GB, free: 0.707 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.4995, allocations: 0 / 1.378 GB, free: 0.707 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000201/0.4997, allocations: 165.6 kB / 1.378 GB, free: 0.4961 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.4997, allocations: 0 / 1.378 GB, free: 0.4961 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.967e-05/0.4998, allocations: 8 kB / 1.378 GB, free: 500 kB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.4998, allocations: 3.984 kB / 1.378 GB, free: 496 kB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.939e-05/0.4998, allocations: 4 kB / 1.378 GB, free: 492 kB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.4998, allocations: 11.94 kB / 1.378 GB, free: 480 kB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.4998, allocations: 0 / 1.378 GB, free: 480 kB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002776/0.5001, allocations: 175.3 kB / 1.378 GB, free: 288 kB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.767e-05/0.5002, allocations: 93.08 kB / 1.379 GB, free: 176 kB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.5002, allocations: 0 / 1.379 GB, free: 176 kB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.91e-05/0.5003, allocations: 11.98 kB / 1.379 GB, free: 164 kB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.315e-05/0.5003, allocations: 7.984 kB / 1.379 GB, free: 156 kB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.5004, allocations: 0 / 1.379 GB, free: 156 kB / 0.8698 GB Notification: Performance of sorting global known variables: time 4.411e-05/0.5004, allocations: 83.28 kB / 1.379 GB, free: 72 kB / 0.8698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5004, allocations: 0 / 1.379 GB, free: 72 kB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002193/0.5006, allocations: 4 kB / 1.379 GB, free: 68 kB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0006008/0.5012, allocations: 0.7265 MB / 1.379 GB, free: 15.32 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002302/0.5015, allocations: 43.97 kB / 1.379 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.5015, allocations: 0 / 1.379 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001049/0.5016, allocations: 36.03 kB / 1.379 GB, free: 15.24 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002077/0.5018, allocations: 0.6875 kB / 1.379 GB, free: 15.24 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00047/0.5023, allocations: 142.3 kB / 1.38 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002669/0.5026, allocations: 0.6809 MB / 1.38 GB, free: 14.35 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.305e-05/0.5026, allocations: 15.91 kB / 1.38 GB, free: 14.33 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.05e-05/0.5027, allocations: 11.44 kB / 1.38 GB, free: 14.32 MB / 0.8855 GB Notification: Performance of SimCode: time 5.059e-06/0.5027, allocations: 0 / 1.38 GB, free: 14.32 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01492/0.5176, allocations: 1.151 MB / 1.381 GB, free: 13.34 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002023/0.5179, allocations: 198.3 kB / 1.382 GB, free: 13.1 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.526/2.044, allocations: 3.938 kB / 1.382 GB, free: 13.1 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat does not exist to compare? outputFormat=mat