Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Integers.Validation.Subtract,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Subtract",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Subtract,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Subtract",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.008909/0.008909, allocations: 103.5 kB / 15.73 MB, free: 6.043 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.001852/0.001852, allocations: 201.5 kB / 16.68 MB, free: 5.98 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 / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.612/2.612, allocations: 461.9 MB / 0.7348 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 63.91 kB / 1.054 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8822/0.8834, allocations: 157.4 MB / 1.207 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Subtract): time 0.002046/0.8855, allocations: 0.7767 MB / 1.208 GB, free: 12.77 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001046/0.8866, allocations: 0.8585 MB / 1.209 GB, free: 11.9 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.009e-05/0.8866, allocations: 4 kB / 1.209 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.651e-05/0.8867, allocations: 7.875 kB / 1.209 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.622e-05/0.8868, allocations: 15.86 kB / 1.209 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001697/0.887, allocations: 35.95 kB / 1.209 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001271/0.8871, allocations: 83.77 kB / 1.209 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001229/0.8873, allocations: 31.97 kB / 1.209 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.971e-05/0.8874, allocations: 39.84 kB / 1.209 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.811e-05/0.8875, allocations: 47.81 kB / 1.209 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.452e-05/0.8875, allocations: 8 kB / 1.209 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.655e-05/0.8875, allocations: 8 kB / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.546e-05/0.8875, allocations: 19.92 kB / 1.209 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.835e-05/0.8876, allocations: 35.86 kB / 1.209 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000138/0.8877, allocations: 91.59 kB / 1.209 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.8877, allocations: 4 kB / 1.209 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.172e-06/0.8878, allocations: 0 / 1.209 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.491e-06/0.8878, allocations: 0 / 1.209 GB, free: 11.47 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006415/0.8884, allocations: 389.5 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.8885, allocations: 8.031 kB / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.827e-05/0.8885, allocations: 38.75 kB / 1.21 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.376e-05/0.8885, allocations: 8.844 kB / 1.21 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001506/0.8887, allocations: 180.2 kB / 1.21 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/0.8887, allocations: 8.375 kB / 1.21 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.986e-05/0.8887, allocations: 12.12 kB / 1.21 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002989/0.889, allocations: 101.5 kB / 1.21 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.8891, allocations: 0 / 1.21 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.8891, allocations: 4 kB / 1.21 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.8891, allocations: 0 / 1.21 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003815/0.8895, allocations: 107.8 kB / 1.21 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005065/0.89, allocations: 336.5 kB / 1.21 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006107/0.8906, allocations: 118.6 kB / 1.211 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002151/0.8908, allocations: 68.8 kB / 1.211 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.752e-05/0.8909, allocations: 3.984 kB / 1.211 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.244e-05/0.8909, allocations: 30.56 kB / 1.211 GB, free: 9.918 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.8909, allocations: 0 / 1.211 GB, free: 9.918 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0006659/0.8916, allocations: 185.4 kB / 1.211 GB, free: 9.73 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.433e-05/0.8916, allocations: 55.34 kB / 1.211 GB, free: 9.664 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.908e-05/0.8917, allocations: 125.8 kB / 1.211 GB, free: 9.531 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.8917, allocations: 29.7 kB / 1.211 GB, free: 9.496 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.224e-05/0.8918, allocations: 96 kB / 1.211 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.774e-05/0.8918, allocations: 27.64 kB / 1.211 GB, free: 9.371 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.76e-05/0.8919, allocations: 21.7 kB / 1.211 GB, free: 9.344 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.892, allocations: 322.8 kB / 1.211 GB, free: 9.02 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001916/0.8922, allocations: 43.95 kB / 1.212 GB, free: 8.977 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001736/0.8924, allocations: 48.27 kB / 1.212 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003613/0.8927, allocations: 104.9 kB / 1.212 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.8927, allocations: 0 / 1.212 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004193/0.8932, allocations: 133.5 kB / 1.212 GB, free: 8.688 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.8932, allocations: 7.984 kB / 1.212 GB, free: 8.68 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.8932, allocations: 0 / 1.212 GB, free: 8.68 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.8932, allocations: 0 / 1.212 GB, free: 8.68 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001702/0.8934, allocations: 27.97 kB / 1.212 GB, free: 8.652 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.822e-06/0.8934, allocations: 3.938 kB / 1.212 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001134/0.8935, allocations: 19.89 kB / 1.212 GB, free: 8.629 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.176e-05/0.8936, allocations: 4 kB / 1.212 GB, free: 8.625 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (reaToInt1.y,reaToInt.y,sub.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.878e-05/0.8937, allocations: 113.8 kB / 1.212 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.81e-05/0.8937, allocations: 0 / 1.212 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.844e-05/0.8937, allocations: 16.36 kB / 1.212 GB, free: 8.484 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.127e-06/0.8937, allocations: 0 / 1.212 GB, free: 8.484 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.8937, allocations: 11.88 kB / 1.212 GB, free: 8.473 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.8937, allocations: 0 / 1.212 GB, free: 8.473 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001988/0.894, allocations: 201.5 kB / 1.212 GB, free: 8.227 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.894, allocations: 0 / 1.212 GB, free: 8.227 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001578/0.8941, allocations: 23.97 kB / 1.212 GB, free: 8.203 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.8941, allocations: 0 / 1.212 GB, free: 8.203 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.8942, allocations: 7.938 kB / 1.212 GB, free: 8.195 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.8942, allocations: 4 kB / 1.212 GB, free: 8.191 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.8942, allocations: 3.938 kB / 1.212 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004548/0.8946, allocations: 235.4 kB / 1.212 GB, free: 7.941 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.776e-05/0.8947, allocations: 81.02 kB / 1.213 GB, free: 7.844 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.675e-05/0.8947, allocations: 3.938 kB / 1.213 GB, free: 7.84 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001541/0.8949, allocations: 19.97 kB / 1.213 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.347e-05/0.895, allocations: 31.86 kB / 1.213 GB, free: 7.789 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/0.895, allocations: 0 / 1.213 GB, free: 7.789 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.043e-05/0.895, allocations: 95.27 kB / 1.213 GB, free: 7.695 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.895, allocations: 0 / 1.213 GB, free: 7.695 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002338/0.8953, allocations: 15.94 kB / 1.213 GB, free: 7.68 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (sub.y,reaToInt.y,reaToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0007524/0.896, allocations: 0.767 MB / 1.213 GB, free: 6.887 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004203/0.8965, allocations: 111.8 kB / 1.214 GB, free: 6.777 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.8965, allocations: 0 / 1.214 GB, free: 6.777 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002099/0.8967, allocations: 63.94 kB / 1.214 GB, free: 6.715 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003099/0.897, allocations: 17.81 kB / 1.214 GB, free: 6.699 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002095/0.8991, allocations: 1.541 MB / 1.215 GB, free: 5.078 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002473/0.8994, allocations: 0.6947 MB / 1.216 GB, free: 4.359 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.661e-05/0.8994, allocations: 8 kB / 1.216 GB, free: 4.352 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.3e-05/0.8995, allocations: 31.42 kB / 1.216 GB, free: 4.32 MB / 0.9356 GB Notification: Performance of SimCode: time 2.3e-07/0.8995, allocations: 0 / 1.216 GB, free: 4.32 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02029/0.9198, allocations: 2.753 MB / 1.219 GB, free: 1.672 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.937/8.857, allocations: 3.984 kB / 1.219 GB, free: 1.668 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Subtract_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Subtract.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Subtract.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sub.u1,sub.u2,sub.y Variables in the result:ramp1.duration,ramp1.height,ramp1.offset,ramp1.startTime,ramp1.y,ramp2.duration,ramp2.height,ramp2.offset,ramp2.startTime,ramp2.y,reaToInt.u,reaToInt.y,reaToInt1.u,reaToInt1.y,round1.n,round1.u,round1.y,round2.n,round2.u,round2.y,sub.u1,sub.u2,sub.y,time