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: translateModel(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.u|reaToInt.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") translateModel(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.u|reaToInt.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 119 kB / 16.42 MB, free: 6.473 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.001158/0.001159, allocations: 183.9 kB / 17.35 MB, free: 5.75 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.453/1.453, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.307/2.307, allocations: 390.2 MB / 0.6655 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001634/0.001634, allocations: 59.91 kB / 0.9515 GB, free: 7.695 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9461/0.9478, allocations: 140.4 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001745/0.9496, allocations: 0.6142 MB / 1.089 GB, free: 5.141 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008908/0.9505, allocations: 0.8237 MB / 1.09 GB, free: 4.52 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.29e-05/0.9505, allocations: 0 / 1.09 GB, free: 4.52 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.055e-05/0.9506, allocations: 0 / 1.09 GB, free: 4.52 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.045e-05/0.9506, allocations: 8.969 kB / 1.09 GB, free: 4.512 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001478/0.9508, allocations: 14.92 kB / 1.09 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.62e-05/0.9509, allocations: 34.28 kB / 1.09 GB, free: 4.484 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001095/0.951, allocations: 8.672 kB / 1.09 GB, free: 4.48 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.501e-05/0.951, allocations: 10.42 kB / 1.09 GB, free: 4.477 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.397e-05/0.9511, allocations: 15.39 kB / 1.09 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.261e-05/0.9511, allocations: 2.406 kB / 1.09 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.074e-05/0.9511, allocations: 2.312 kB / 1.09 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.781e-05/0.9512, allocations: 6.484 kB / 1.09 GB, free: 4.465 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.908e-05/0.9512, allocations: 11.38 kB / 1.09 GB, free: 4.457 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 8.906e-05/0.9513, allocations: 26.55 kB / 1.09 GB, free: 4.445 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.9513, allocations: 4 kB / 1.09 GB, free: 4.441 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.653e-06/0.9513, allocations: 1.375 kB / 1.09 GB, free: 4.441 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.9513, allocations: 0 / 1.09 GB, free: 4.441 MB / 0.8575 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.0004147/0.9517, allocations: 329.4 kB / 1.09 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.9518, allocations: 8.469 kB / 1.09 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.507e-05/0.9518, allocations: 6.062 kB / 1.09 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.686e-05/0.9519, allocations: 172.3 kB / 1.091 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.98e-05/0.9519, allocations: 384 / 1.091 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.688e-06/0.952, allocations: 2.656 kB / 1.091 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001763/0.9521, allocations: 59.12 kB / 1.091 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.9522, allocations: 0.8438 kB / 1.091 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.9522, allocations: 5.281 kB / 1.091 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.9522, allocations: 0 / 1.091 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001825/0.9524, allocations: 35.77 kB / 1.091 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003228/0.9527, allocations: 255.9 kB / 1.091 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001293/0.9528, allocations: 51 kB / 1.091 GB, free: 3.516 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.132e-05/0.9529, allocations: 23.89 kB / 1.091 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.166e-05/0.953, allocations: 1.094 kB / 1.091 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.751e-05/0.953, allocations: 32.36 kB / 1.091 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.953, allocations: 0 / 1.091 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003697/0.9534, allocations: 87.2 kB / 1.091 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.802e-05/0.9534, allocations: 55.86 kB / 1.091 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.127e-05/0.9535, allocations: 101.5 kB / 1.091 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.888e-06/0.9535, allocations: 26.95 kB / 1.091 GB, free: 3.223 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.842e-05/0.9535, allocations: 84.7 kB / 1.091 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.664e-05/0.9535, allocations: 1.562 kB / 1.091 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.001e-05/0.9536, allocations: 21.98 kB / 1.091 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.809e-05/0.9536, allocations: 317 kB / 1.092 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.029e-05/0.9537, allocations: 14.81 kB / 1.092 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.923e-05/0.9538, allocations: 19.61 kB / 1.092 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001643/0.954, allocations: 38.77 kB / 1.092 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.954, allocations: 5.125 kB / 1.092 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001995/0.9542, allocations: 76.97 kB / 1.092 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.9542, allocations: 5.375 kB / 1.092 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.9542, allocations: 3.938 kB / 1.092 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.9542, allocations: 1.531 kB / 1.092 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.9543, allocations: 9.938 kB / 1.092 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.818e-06/0.9543, allocations: 3.984 kB / 1.092 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.882e-05/0.9544, allocations: 14.3 kB / 1.092 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-06/0.9544, allocations: 1 kB / 1.092 GB, free: 2.715 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 5.01e-05/0.9545, allocations: 108.5 kB / 1.092 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.512e-05/0.9545, allocations: 5.922 kB / 1.092 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.166e-05/0.9545, allocations: 8.781 kB / 1.092 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.9545, allocations: 0 / 1.092 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.9545, allocations: 0.7969 kB / 1.092 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.426e-05/0.9546, allocations: 77.92 kB / 1.092 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.381e-05/0.9546, allocations: 2.062 kB / 1.092 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.685e-05/0.9547, allocations: 9.531 kB / 1.092 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.12e-05/0.9547, allocations: 9.172 kB / 1.092 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002571/0.955, allocations: 153.9 kB / 1.092 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002314/0.9552, allocations: 242.6 kB / 1.093 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.523e-05/0.9553, allocations: 21.7 kB / 1.093 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.09e-05/0.9554, allocations: 79.66 kB / 1.093 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of Backend: time 5.21e-07/0.9554, allocations: 0 / 1.093 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00038/0.9558, allocations: 100.8 kB / 1.093 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of SimCode: time 0.0003352/0.9561, allocations: 0.5579 MB / 1.093 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of Templates: time 0.003051/0.9592, allocations: 0.684 MB / 1.094 GB, free: 1.34 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/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