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/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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001535/0.001535, allocations: 194 kB / 16.14 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.181/1.181, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.382/2.382, allocations: 461.8 MB / 0.7342 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 66.56 kB / 0.8985 GB, free: 37.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.2324, allocations: 157.4 MB / 1.052 GB, free: 8.25 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001746/0.2342, allocations: 0.6858 MB / 1.053 GB, free: 7.562 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007769/0.235, allocations: 0.8234 MB / 1.054 GB, free: 6.727 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.993e-05/0.235, allocations: 4 kB / 1.054 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.529e-05/0.2351, allocations: 0 / 1.054 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.072e-05/0.2351, allocations: 3.938 kB / 1.054 GB, free: 6.719 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001129/0.2353, allocations: 11.98 kB / 1.054 GB, free: 6.707 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.253e-05/0.2353, allocations: 27.92 kB / 1.054 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.046e-05/0.2354, allocations: 7.984 kB / 1.054 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.06e-05/0.2355, allocations: 15.92 kB / 1.054 GB, free: 6.656 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.206e-05/0.2355, allocations: 7.984 kB / 1.054 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.59e-05/0.2355, allocations: 4 kB / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.017e-06/0.2355, allocations: 3.938 kB / 1.054 GB, free: 6.641 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.605e-05/0.2356, allocations: 7.984 kB / 1.054 GB, free: 6.633 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.428e-05/0.2356, allocations: 7.938 kB / 1.054 GB, free: 6.625 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 6.166e-05/0.2357, allocations: 19.95 kB / 1.054 GB, free: 6.605 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2357, allocations: 4 kB / 1.054 GB, free: 6.602 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.31e-07/0.2357, allocations: 0 / 1.054 GB, free: 6.602 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.926e-06/0.2357, allocations: 0 / 1.054 GB, free: 6.602 MB / 0.8106 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.0003781/0.2361, allocations: 335.8 kB / 1.054 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.2361, allocations: 19.95 kB / 1.054 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.057e-05/0.2361, allocations: 34.75 kB / 1.054 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.135e-05/0.2362, allocations: 4.844 kB / 1.054 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.031e-05/0.2363, allocations: 164.4 kB / 1.054 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.687e-05/0.2363, allocations: 384 / 1.054 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.658e-06/0.2363, allocations: 4.375 kB / 1.054 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001601/0.2365, allocations: 54.17 kB / 1.054 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.2365, allocations: 7.922 kB / 1.054 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.745e-06/0.2365, allocations: 3.938 kB / 1.054 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.2365, allocations: 4 kB / 1.054 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001628/0.2367, allocations: 35.91 kB / 1.054 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000299/0.237, allocations: 253 kB / 1.055 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000127/0.2371, allocations: 46.42 kB / 1.055 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.552e-05/0.2372, allocations: 24.91 kB / 1.055 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.366e-05/0.2372, allocations: 0 / 1.055 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.939e-05/0.2373, allocations: 34.56 kB / 1.055 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.2373, allocations: 0 / 1.055 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.000337/0.2376, allocations: 85.62 kB / 1.055 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.818e-05/0.2376, allocations: 55.41 kB / 1.055 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.308e-05/0.2377, allocations: 97.86 kB / 1.055 GB, free: 5.16 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.315e-05/0.2377, allocations: 25.7 kB / 1.055 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.406e-05/0.2378, allocations: 84.17 kB / 1.055 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.587e-05/0.2378, allocations: 8 kB / 1.055 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.19e-05/0.2378, allocations: 21.64 kB / 1.055 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.027e-05/0.2379, allocations: 310.8 kB / 1.055 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.231e-05/0.238, allocations: 19.98 kB / 1.055 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.154e-05/0.2381, allocations: 15.97 kB / 1.055 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001502/0.2382, allocations: 40.89 kB / 1.056 GB, free: 4.617 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.2382, allocations: 3.938 kB / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001844/0.2384, allocations: 69.66 kB / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.2384, allocations: 8 kB / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.2385, allocations: 0 / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.598e-06/0.2385, allocations: 0 / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.095e-05/0.2386, allocations: 7.984 kB / 1.056 GB, free: 4.523 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.2386, allocations: 11.97 kB / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.205e-05/0.2386, allocations: 11.89 kB / 1.056 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.009e-06/0.2386, allocations: 0 / 1.056 GB, free: 4.5 MB / 0.8106 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 6.765e-05/0.2387, allocations: 109.8 kB / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.393e-05/0.2387, allocations: 4 kB / 1.056 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.648e-05/0.2388, allocations: 7.125 kB / 1.056 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2388, allocations: 3.984 kB / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-06/0.2388, allocations: 0 / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.724e-06/0.2388, allocations: 4 kB / 1.056 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001335/0.2389, allocations: 157.6 kB / 1.056 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.2389, allocations: 3.938 kB / 1.056 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.819e-05/0.239, allocations: 15.98 kB / 1.056 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.239, allocations: 192 / 1.056 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.392e-06/0.239, allocations: 0 / 1.056 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.239, allocations: 0 / 1.056 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.239, allocations: 3.984 kB / 1.056 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002229/0.2393, allocations: 183.4 kB / 1.056 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.888e-05/0.2393, allocations: 77.11 kB / 1.056 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.142e-05/0.2393, allocations: 3.938 kB / 1.056 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.819e-05/0.2394, allocations: 4 kB / 1.056 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.194e-05/0.2394, allocations: 11.98 kB / 1.056 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.2395, allocations: 0 / 1.056 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.018e-05/0.2395, allocations: 83.27 kB / 1.056 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2395, allocations: 4.031 kB / 1.056 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002046/0.2397, allocations: 4 kB / 1.056 GB, free: 3.742 MB / 0.8106 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.0004408/0.2401, allocations: 0.7006 MB / 1.057 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001906/0.2404, allocations: 43.92 kB / 1.057 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.2404, allocations: 0 / 1.057 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.57e-05/0.2405, allocations: 23.98 kB / 1.057 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002551/0.2407, allocations: 9.75 kB / 1.057 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003698/0.2411, allocations: 137.1 kB / 1.057 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001824/0.2413, allocations: 0.6809 MB / 1.058 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.961e-05/0.2413, allocations: 0 / 1.058 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.78e-05/0.2414, allocations: 15.44 kB / 1.058 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of SimCode: time 2.21e-07/0.2414, allocations: 0 / 1.058 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07269/0.3141, allocations: 1.232 MB / 1.059 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001702/0.3143, allocations: 224.7 kB / 1.059 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.51/1.825, allocations: 4.438 kB / 1.059 GB, free: 0.6914 MB / 0.8106 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/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) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches