Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.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.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="Buildings_9_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00136/0.00136, 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.00116/0.00116, allocations: 177.3 kB / 15.95 MB, free: 216 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.435/1.435, allocations: 223.2 MB / 239.9 MB, free: 5.461 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.416/2.416, allocations: 390.3 MB / 0.6653 GB, free: 3.008 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003594/0.0003594, allocations: 11.94 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7576/0.7579, allocations: 142.3 MB / 0.9536 GB, free: 8.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.0006884/0.7587, allocations: 339.9 kB / 0.9539 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007069/0.7594, allocations: 0.8135 MB / 0.9547 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.485e-05/0.7594, allocations: 1.344 kB / 0.9547 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.184e-05/0.7595, allocations: 0 / 0.9547 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.623e-05/0.7595, allocations: 4.969 kB / 0.9547 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001135/0.7596, allocations: 15.48 kB / 0.9547 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.814e-05/0.7597, allocations: 19.59 kB / 0.9548 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.213e-05/0.7598, allocations: 7.5 kB / 0.9548 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.029e-05/0.7598, allocations: 3.656 kB / 0.9548 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.597e-05/0.7599, allocations: 19.44 kB / 0.9548 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.627e-05/0.7599, allocations: 1.375 kB / 0.9548 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.023e-05/0.7599, allocations: 1.312 kB / 0.9548 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.102e-05/0.7599, allocations: 5.359 kB / 0.9548 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.656e-05/0.76, allocations: 31.08 kB / 0.9548 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 4.642e-05/0.76, allocations: 11.31 kB / 0.9548 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.76, allocations: 3.938 kB / 0.9548 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.613e-06/0.76, allocations: 0 / 0.9548 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.356e-06/0.76, allocations: 5.188 kB / 0.9548 GB, free: 7.086 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003398/0.7604, allocations: 337.5 kB / 0.9552 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.7604, allocations: 9 kB / 0.9552 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.359e-05/0.7605, allocations: 31.78 kB / 0.9552 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.148e-05/0.7605, allocations: 9.359 kB / 0.9552 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.901e-05/0.7606, allocations: 164.1 kB / 0.9554 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.865e-05/0.7606, allocations: 1 kB / 0.9554 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.989e-06/0.7606, allocations: 9.438 kB / 0.9554 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001673/0.7608, allocations: 53.8 kB / 0.9554 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.7608, allocations: 1.625 kB / 0.9554 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.435e-06/0.7608, allocations: 0 / 0.9554 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.7608, allocations: 0 / 0.9554 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001824/0.761, allocations: 57.11 kB / 0.9555 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002607/0.7613, allocations: 249.9 kB / 0.9557 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001306/0.7614, allocations: 49.91 kB / 0.9558 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.448e-05/0.7614, allocations: 3.984 kB / 0.9558 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.41e-05/0.7615, allocations: 32.03 kB / 0.9558 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.031e-06/0.7615, allocations: 0 / 0.9558 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003756/0.7618, allocations: 112 kB / 0.9559 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.471e-05/0.7619, allocations: 52.78 kB / 0.956 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.383e-05/0.7619, allocations: 98.05 kB / 0.9561 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.217e-06/0.762, allocations: 31.14 kB / 0.9561 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.509e-05/0.762, allocations: 80.14 kB / 0.9562 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.555e-05/0.762, allocations: 13.14 kB / 0.9562 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.037e-06/0.762, allocations: 4.125 kB / 0.9562 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.458e-05/0.7621, allocations: 312.4 kB / 0.9565 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.01e-05/0.7622, allocations: 22.42 kB / 0.9565 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.323e-05/0.7622, allocations: 22.84 kB / 0.9565 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.833e-05/0.7623, allocations: 26.58 kB / 0.9566 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.7623, allocations: 0 / 0.9566 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002118/0.7626, allocations: 84.12 kB / 0.9566 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.7626, allocations: 8.312 kB / 0.9566 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.7626, allocations: 1.406 kB / 0.9566 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.7626, allocations: 0 / 0.9566 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.7627, allocations: 20.34 kB / 0.9567 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.7627, allocations: 0 / 0.9567 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.46e-05/0.7628, allocations: 7.094 kB / 0.9567 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.702e-06/0.7628, allocations: 3.984 kB / 0.9567 GB, free: 5.254 MB / 0.7169 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 5.618e-05/0.7629, allocations: 120.6 kB / 0.9568 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.255e-05/0.7629, allocations: 1.062 kB / 0.9568 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.789e-05/0.7629, allocations: 3.125 kB / 0.9568 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.7629, allocations: 1.25 kB / 0.9568 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.7629, allocations: 3.953 kB / 0.9568 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.7629, allocations: 1.312 kB / 0.9568 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001117/0.7631, allocations: 157.3 kB / 0.9569 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.7631, allocations: 1.375 kB / 0.9569 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.047e-05/0.7631, allocations: 19.67 kB / 0.957 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.7632, allocations: 1.375 kB / 0.957 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.173e-06/0.7632, allocations: 0 / 0.957 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.7632, allocations: 1.406 kB / 0.957 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.7632, allocations: 0 / 0.957 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002322/0.7634, allocations: 178 kB / 0.9571 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.987e-05/0.7634, allocations: 82.14 kB / 0.9572 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.31e-05/0.7635, allocations: 0 / 0.9572 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.664e-05/0.7636, allocations: 10.27 kB / 0.9572 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.712e-05/0.7636, allocations: 10.7 kB / 0.9572 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-06/0.7636, allocations: 4.969 kB / 0.9572 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.336e-05/0.7636, allocations: 86.16 kB / 0.9573 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7636, allocations: 0 / 0.9573 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002188/0.7639, allocations: 7.891 kB / 0.9573 GB, free: 4.555 MB / 0.7169 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.0003974/0.7643, allocations: 0.7054 MB / 0.958 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002199/0.7645, allocations: 48.69 kB / 0.9581 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.7645, allocations: 4.094 kB / 0.9581 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.7646, allocations: 30.19 kB / 0.9581 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002011/0.7648, allocations: 6.125 kB / 0.9581 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003945/0.7652, allocations: 138.7 kB / 0.9582 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001142/0.7654, allocations: 0.6824 MB / 0.9589 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.99e-05/0.7654, allocations: 2.219 kB / 0.9589 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.449e-05/0.7654, allocations: 17.77 kB / 0.9589 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.7654, allocations: 0 / 0.9589 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01081/0.7763, allocations: 1.136 MB / 0.96 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000137/0.7764, allocations: 203.7 kB / 0.9602 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.688/2.465, allocations: 0 / 0.9602 GB, free: 2.207 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat does not exist to compare? outputFormat=mat