Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001774/0.001774, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002401/0.002401, allocations: 215.6 kB / 22.26 MB, free: 5.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.487/1.487, allocations: 230.6 MB / 256 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.881/2.881, allocations: 476.7 MB / 0.7707 GB, free: 4.293 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002086/0.002086, allocations: 63.72 kB / 1.117 GB, free: 39.85 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3269/0.329, allocations: 170 MB / 1.283 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002093/0.3311, allocations: 0.6289 MB / 1.284 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00122/0.3323, allocations: 0.8549 MB / 1.285 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.169e-05/0.3323, allocations: 0 / 1.285 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.111e-05/0.3324, allocations: 3.984 kB / 1.285 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.291e-05/0.3324, allocations: 3.938 kB / 1.285 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001467/0.3326, allocations: 20 kB / 1.285 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.332e-05/0.3327, allocations: 31.86 kB / 1.285 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.099e-05/0.3328, allocations: 3.984 kB / 1.285 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.882e-05/0.3328, allocations: 8 kB / 1.285 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.812e-05/0.3329, allocations: 23.91 kB / 1.285 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.621e-05/0.3329, allocations: 0 / 1.285 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.23e-05/0.3329, allocations: 4 kB / 1.285 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.831e-05/0.3329, allocations: 4 kB / 1.285 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.735e-05/0.333, allocations: 3.938 kB / 1.285 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 8.87e-05/0.3331, allocations: 35.45 kB / 1.285 GB, free: 9.984 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3331, allocations: 7.938 kB / 1.285 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.683e-06/0.3331, allocations: 0 / 1.285 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.239e-06/0.3331, allocations: 0 / 1.285 GB, free: 9.977 MB / 0.9825 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.0004553/0.3335, allocations: 258.3 kB / 1.285 GB, free: 9.691 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.3336, allocations: 12.03 kB / 1.285 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.036e-05/0.3336, allocations: 34.69 kB / 1.285 GB, free: 9.637 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.665e-05/0.3336, allocations: 0.9375 kB / 1.285 GB, free: 9.637 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000109/0.3338, allocations: 110.5 kB / 1.285 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.145e-05/0.3338, allocations: 384 / 1.285 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.045e-06/0.3338, allocations: 4.375 kB / 1.285 GB, free: 9.5 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001812/0.334, allocations: 50.23 kB / 1.285 GB, free: 9.445 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.334, allocations: 7.938 kB / 1.285 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.355e-06/0.334, allocations: 0 / 1.285 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.334, allocations: 3.984 kB / 1.285 GB, free: 9.434 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000176/0.3342, allocations: 39.95 kB / 1.285 GB, free: 9.395 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003744/0.3345, allocations: 231.9 kB / 1.286 GB, free: 9.125 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001399/0.3347, allocations: 38.5 kB / 1.286 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.079e-05/0.3348, allocations: 24.91 kB / 1.286 GB, free: 9.051 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.606e-05/0.3348, allocations: 3.984 kB / 1.286 GB, free: 9.047 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.512e-05/0.3348, allocations: 30.56 kB / 1.286 GB, free: 9.008 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 9.51e-07/0.3348, allocations: 7.938 kB / 1.286 GB, free: 9 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0003796/0.3352, allocations: 89.58 kB / 1.286 GB, free: 8.906 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.337e-05/0.3352, allocations: 51.41 kB / 1.286 GB, free: 8.844 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.3353, allocations: 101.8 kB / 1.286 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.604e-05/0.3353, allocations: 25.7 kB / 1.286 GB, free: 8.703 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.293e-05/0.3354, allocations: 80.14 kB / 1.286 GB, free: 8.621 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.42e-05/0.3354, allocations: 16.08 kB / 1.286 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.355e-05/0.3355, allocations: 9.719 kB / 1.286 GB, free: 8.59 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.3356, allocations: 310.8 kB / 1.286 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.96e-05/0.3357, allocations: 23.97 kB / 1.286 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.603e-05/0.3358, allocations: 15.98 kB / 1.286 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001595/0.3359, allocations: 44.88 kB / 1.287 GB, free: 8.191 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.3359, allocations: 3.938 kB / 1.287 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002041/0.3361, allocations: 69.59 kB / 1.287 GB, free: 8.113 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.3361, allocations: 8 kB / 1.287 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3361, allocations: 0 / 1.287 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.3362, allocations: 3.938 kB / 1.287 GB, free: 8.102 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.3363, allocations: 11.98 kB / 1.287 GB, free: 8.09 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.3363, allocations: 4.031 kB / 1.287 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.703e-05/0.3363, allocations: 7.938 kB / 1.287 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-06/0.3363, allocations: 0 / 1.287 GB, free: 8.078 MB / 0.9825 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.787e-05/0.3364, allocations: 117.8 kB / 1.287 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.001e-05/0.3365, allocations: 4 kB / 1.287 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.673e-05/0.3365, allocations: 3.312 kB / 1.287 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.3365, allocations: 0 / 1.287 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.3365, allocations: 0 / 1.287 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.093e-06/0.3365, allocations: 0 / 1.287 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001594/0.3366, allocations: 140.7 kB / 1.287 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.3366, allocations: 4 kB / 1.287 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.855e-05/0.3367, allocations: 4 kB / 1.287 GB, free: 7.762 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.3367, allocations: 0 / 1.287 GB, free: 7.762 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.288e-06/0.3367, allocations: 3.984 kB / 1.287 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.3367, allocations: 4 kB / 1.287 GB, free: 7.754 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3367, allocations: 3.938 kB / 1.287 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002638/0.337, allocations: 171.4 kB / 1.287 GB, free: 7.566 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.432e-06/0.337, allocations: 0 / 1.287 GB, free: 7.566 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.235e-05/0.337, allocations: 0 / 1.287 GB, free: 7.566 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.185e-05/0.3371, allocations: 7.984 kB / 1.287 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.615e-05/0.3371, allocations: 8 kB / 1.287 GB, free: 7.551 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.19e-06/0.3371, allocations: 3.984 kB / 1.287 GB, free: 7.547 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.518e-05/0.3372, allocations: 79.28 kB / 1.287 GB, free: 7.469 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.3372, allocations: 0 / 1.287 GB, free: 7.469 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002183/0.3374, allocations: 11.97 kB / 1.287 GB, free: 7.457 MB / 0.9825 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000559/0.338, allocations: 0.6928 MB / 1.288 GB, free: 6.734 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002199/0.3382, allocations: 47.98 kB / 1.288 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3382, allocations: 0 / 1.288 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.149e-05/0.3383, allocations: 19.97 kB / 1.288 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003062/0.3386, allocations: 13.55 kB / 1.288 GB, free: 6.656 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000537/0.3391, allocations: 131.2 kB / 1.288 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003312/0.3395, allocations: 0.6808 MB / 1.289 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.119e-05/0.3395, allocations: 0 / 1.289 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.199e-05/0.3395, allocations: 15.77 kB / 1.289 GB, free: 5.766 MB / 0.9825 GB Notification: Performance of SimCode: time 6.21e-07/0.3395, allocations: 3.938 kB / 1.289 GB, free: 5.762 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02834/0.3679, allocations: 1.555 MB / 1.29 GB, free: 4.336 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.62, allocations: 6.812 kB / 1.29 GB, free: 4.336 MB / 0.9825 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.32429307210259]