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.482/2.482, allocations: 390.3 MB / 402.8 MB, free: 6.707 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.001167/0.001167, allocations: 172.8 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.551/1.551, allocations: 221.3 MB / 0.7915 GB, free: 5.387 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.0009792/0.0009794, allocations: 99.12 kB / 0.9317 GB, free: 5.707 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.722e-05/3.742e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3241/0.3242, allocations: 143 MB / 1.219 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.068/1.392, allocations: 149.6 MB / 1.365 GB, free: 4.449 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/1.393, allocations: 69.16 kB / 1.365 GB, free: 4.414 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002139/1.395, allocations: 0.7155 MB / 1.366 GB, free: 3.762 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.884e-06/1.395, allocations: 0 / 1.366 GB, free: 3.762 MB / 0.823 GB Notification: Performance of Transformations before backend: time 8.666e-06/1.395, allocations: 0 / 1.366 GB, free: 3.762 MB / 0.823 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.0004205/1.395, allocations: 346.4 kB / 1.366 GB, free: 3.383 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 6.118e-05/1.395, allocations: 12.02 kB / 1.366 GB, free: 3.371 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.728e-05/1.395, allocations: 30.56 kB / 1.366 GB, free: 3.332 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.119e-05/1.395, allocations: 4 kB / 1.366 GB, free: 3.328 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000148/1.396, allocations: 167.8 kB / 1.366 GB, free: 3.125 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.7e-05/1.396, allocations: 0 / 1.366 GB, free: 3.125 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.635e-05/1.396, allocations: 7.875 kB / 1.366 GB, free: 3.121 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001156/1.396, allocations: 39.41 kB / 1.366 GB, free: 3.082 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/1.396, allocations: 0 / 1.366 GB, free: 3.082 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/1.396, allocations: 4 kB / 1.366 GB, free: 3.078 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/1.396, allocations: 0 / 1.366 GB, free: 3.078 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.789e-05/1.396, allocations: 10.88 kB / 1.366 GB, free: 3.07 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004213/1.396, allocations: 259.8 kB / 1.367 GB, free: 2.777 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 6.955e-05/1.396, allocations: 26.02 kB / 1.367 GB, free: 2.746 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.198e-05/1.396, allocations: 20.59 kB / 1.367 GB, free: 2.727 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.573e-05/1.396, allocations: 4 kB / 1.367 GB, free: 2.723 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.613e-05/1.396, allocations: 30.56 kB / 1.367 GB, free: 2.684 MB / 0.823 GB Notification: Performance of pre-optimization done (n=2): time 1.413e-06/1.396, allocations: 0 / 1.367 GB, free: 2.684 MB / 0.823 GB Notification: Performance of matching and sorting (n=2): time 0.0001919/1.397, allocations: 41.2 kB / 1.367 GB, free: 2.641 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.291e-05/1.397, allocations: 59.3 kB / 1.367 GB, free: 2.57 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.322e-05/1.397, allocations: 96.23 kB / 1.367 GB, free: 2.473 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/1.397, allocations: 25.7 kB / 1.367 GB, free: 2.441 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 5.329e-05/1.397, allocations: 84.17 kB / 1.367 GB, free: 2.355 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 2.269e-05/1.397, allocations: 12.22 kB / 1.367 GB, free: 2.348 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.358e-06/1.397, allocations: 0 / 1.367 GB, free: 2.348 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001142/1.397, allocations: 310.8 kB / 1.367 GB, free: 2.035 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.109e-05/1.397, allocations: 11.38 kB / 1.367 GB, free: 2.027 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.538e-05/1.397, allocations: 4 kB / 1.367 GB, free: 2.023 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.81e-05/1.397, allocations: 11.8 kB / 1.367 GB, free: 2.016 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/1.397, allocations: 0 / 1.367 GB, free: 2.016 MB / 0.823 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.343e-05/1.397, allocations: 44.83 kB / 1.367 GB, free: 1.969 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/1.397, allocations: 8.031 kB / 1.367 GB, free: 1.961 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/1.397, allocations: 0 / 1.367 GB, free: 1.961 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/1.397, allocations: 0 / 1.367 GB, free: 1.961 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/1.397, allocations: 11.98 kB / 1.367 GB, free: 1.949 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/1.397, allocations: 3.938 kB / 1.367 GB, free: 1.945 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.214e-05/1.397, allocations: 15.94 kB / 1.367 GB, free: 1.93 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.642e-06/1.397, allocations: 0 / 1.367 GB, free: 1.93 MB / 0.823 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 () * 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 8.345e-05/1.398, allocations: 112.2 kB / 1.367 GB, free: 1.816 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.892e-05/1.398, allocations: 3.875 kB / 1.367 GB, free: 1.816 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.692e-05/1.398, allocations: 3.312 kB / 1.367 GB, free: 1.816 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/1.398, allocations: 3.984 kB / 1.367 GB, free: 1.812 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/1.398, allocations: 3.984 kB / 1.367 GB, free: 1.809 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.287e-06/1.398, allocations: 0 / 1.367 GB, free: 1.809 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001621/1.398, allocations: 168.7 kB / 1.368 GB, free: 1.602 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/1.398, allocations: 0 / 1.368 GB, free: 1.602 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.762e-05/1.398, allocations: 11.98 kB / 1.368 GB, free: 1.59 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/1.398, allocations: 4 kB / 1.368 GB, free: 1.586 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.328e-06/1.398, allocations: 0 / 1.368 GB, free: 1.586 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/1.398, allocations: 0 / 1.368 GB, free: 1.586 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/1.398, allocations: 0 / 1.368 GB, free: 1.586 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001452/1.398, allocations: 150.4 kB / 1.368 GB, free: 1.43 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.865e-05/1.398, allocations: 81.11 kB / 1.368 GB, free: 1.332 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.206e-05/1.398, allocations: 0 / 1.368 GB, free: 1.332 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.897e-05/1.398, allocations: 12.02 kB / 1.368 GB, free: 1.32 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.094e-05/1.398, allocations: 7.984 kB / 1.368 GB, free: 1.312 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/1.398, allocations: 0 / 1.368 GB, free: 1.312 MB / 0.823 GB Notification: Performance of sorting global known variables: time 3.874e-05/1.398, allocations: 82.66 kB / 1.368 GB, free: 1.234 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.31e-07/1.398, allocations: 0 / 1.368 GB, free: 1.234 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0002006/1.399, allocations: 8 kB / 1.368 GB, free: 1.227 MB / 0.823 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 () * 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.0004281/1.399, allocations: 0.6801 MB / 1.369 GB, free: 0.5234 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 9.061e-05/1.399, allocations: 26.55 kB / 1.369 GB, free: 0.5039 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/1.399, allocations: 0 / 1.369 GB, free: 0.5039 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 2.929e-05/1.399, allocations: 11 kB / 1.369 GB, free: 0.4961 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000199/1.399, allocations: 4.688 kB / 1.369 GB, free: 0.4922 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003963/1.4, allocations: 98.17 kB / 1.369 GB, free: 372 kB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/1.4, allocations: 0.6848 MB / 1.369 GB, free: 15.65 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.887e-05/1.4, allocations: 4 kB / 1.369 GB, free: 15.65 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.179e-05/1.4, allocations: 10.06 kB / 1.369 GB, free: 15.64 MB / 0.8386 GB Notification: Performance of SimCode: time 5.41e-07/1.4, allocations: 0 / 1.369 GB, free: 15.64 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0129/1.413, allocations: 1.16 MB / 1.371 GB, free: 14.65 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002098/1.413, allocations: 173.8 kB / 1.371 GB, free: 14.43 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.46/2.874, allocations: 0 / 1.371 GB, free: 14.43 MB / 0.8386 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