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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.01189/0.01189, allocations: 100.9 kB / 15.73 MB, free: 6 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.002467/0.002467, allocations: 189.1 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.683/2.683, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 3.732/3.732, allocations: 390.3 MB / 0.6648 GB, free: 252 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 66.64 kB / 0.9504 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.3203, allocations: 140.4 MB / 1.087 GB, free: 1.996 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.00225/0.3226, allocations: 0.6072 MB / 1.088 GB, free: 1.387 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001127/0.3238, allocations: 0.8199 MB / 1.089 GB, free: 0.5547 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.13e-05/0.3238, allocations: 0 / 1.089 GB, free: 0.5547 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.314e-05/0.3239, allocations: 7.938 kB / 1.089 GB, free: 0.5469 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.809e-05/0.324, allocations: 3.938 kB / 1.089 GB, free: 0.543 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001632/0.3241, allocations: 19.97 kB / 1.089 GB, free: 0.5234 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.929e-05/0.3242, allocations: 27.92 kB / 1.089 GB, free: 0.4961 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.3243, allocations: 8 kB / 1.089 GB, free: 500 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.325e-05/0.3244, allocations: 15.92 kB / 1.089 GB, free: 484 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.081e-05/0.3245, allocations: 11.98 kB / 1.089 GB, free: 472 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.234e-05/0.3245, allocations: 4 kB / 1.089 GB, free: 468 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 8.767e-06/0.3245, allocations: 0 / 1.089 GB, free: 468 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.22e-05/0.3246, allocations: 11.92 kB / 1.089 GB, free: 456 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.891e-05/0.3246, allocations: 4 kB / 1.089 GB, free: 452 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 9.329e-05/0.3247, allocations: 23.89 kB / 1.089 GB, free: 428 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3247, allocations: 4 kB / 1.089 GB, free: 424 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.393e-06/0.3247, allocations: 4 kB / 1.089 GB, free: 420 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.3247, allocations: 0 / 1.089 GB, free: 420 kB / 0.8419 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.0005087/0.3252, allocations: 339.7 kB / 1.089 GB, free: 28 kB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.3253, allocations: 8.031 kB / 1.089 GB, free: 20 kB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.304e-05/0.3253, allocations: 34.75 kB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.744e-05/0.3254, allocations: 0.9375 kB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.3255, allocations: 172.3 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.409e-05/0.3255, allocations: 4.359 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.359e-05/0.3256, allocations: 12.38 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001826/0.3258, allocations: 50.23 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.3258, allocations: 11.81 kB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.3258, allocations: 0 / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.3258, allocations: 0 / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001903/0.326, allocations: 35.95 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003971/0.3264, allocations: 257 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001468/0.3266, allocations: 46.44 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.474e-05/0.3267, allocations: 20.89 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.6e-05/0.3267, allocations: 0 / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/0.3267, allocations: 38.56 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.3267, allocations: 4 kB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003923/0.3271, allocations: 85.59 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.3272, allocations: 55.34 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.001e-05/0.3273, allocations: 97.84 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.3273, allocations: 33.7 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.089e-05/0.3273, allocations: 80.14 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.81e-05/0.3274, allocations: 8.078 kB / 1.09 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.4e-05/0.3274, allocations: 13.72 kB / 1.09 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001216/0.3275, allocations: 314.8 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.3276, allocations: 15.97 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.302e-05/0.3277, allocations: 19.98 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001697/0.3279, allocations: 44.88 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.3279, allocations: 3.938 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002152/0.3281, allocations: 73.59 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.3282, allocations: 4 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.3282, allocations: 0 / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.3282, allocations: 0 / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.3283, allocations: 11.98 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.3283, allocations: 0 / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.531e-05/0.3284, allocations: 8.031 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-06/0.3284, allocations: 0 / 1.091 GB, free: 14.31 MB / 0.8575 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.759e-05/0.3285, allocations: 117.8 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.5e-05/0.3285, allocations: 0 / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.152e-05/0.3285, allocations: 7.125 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.3285, allocations: 0 / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.3285, allocations: 4 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.3286, allocations: 0 / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001663/0.3287, allocations: 169.5 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3287, allocations: 0 / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.878e-05/0.3288, allocations: 4 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.3288, allocations: 7.984 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.572e-06/0.3288, allocations: 0 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.3288, allocations: 0 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3288, allocations: 3.938 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002701/0.3291, allocations: 175.5 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.57e-05/0.3292, allocations: 77.11 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.705e-05/0.3292, allocations: 11.98 kB / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.465e-05/0.3293, allocations: 7.984 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.016e-05/0.3293, allocations: 4 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-06/0.3293, allocations: 0 / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.645e-05/0.3294, allocations: 83.27 kB / 1.091 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3294, allocations: 0 / 1.091 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002219/0.3296, allocations: 4.031 kB / 1.091 GB, free: 13.55 MB / 0.8575 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.0006066/0.3302, allocations: 0.7084 MB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002588/0.3305, allocations: 43.98 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3305, allocations: 0 / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001007/0.3306, allocations: 23.97 kB / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003036/0.3309, allocations: 5.719 kB / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004343/0.3314, allocations: 123.2 kB / 1.092 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002473/0.3316, allocations: 0.6769 MB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.228e-05/0.3317, allocations: 8 kB / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.339e-05/0.3317, allocations: 11.44 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of SimCode: time 1.804e-06/0.3318, allocations: 4 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01959/0.3514, allocations: 1.443 MB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.12/8.472, allocations: 6.578 kB / 1.094 GB, free: 10.52 MB / 0.8575 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches