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.00728/0.00728, allocations: 100.8 kB / 15.73 MB, free: 5.953 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.001486/0.001486, allocations: 187 kB / 16.67 MB, free: 5.883 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.444/1.444, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.885/2.885, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 72.08 kB / 1.054 GB, free: 7.645 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3064/0.3077, allocations: 157.4 MB / 1.207 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Subtract): time 0.00311/0.3109, allocations: 0.7832 MB / 1.208 GB, free: 9.359 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00145/0.3124, allocations: 0.8545 MB / 1.209 GB, free: 8.492 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.003e-05/0.3125, allocations: 0 / 1.209 GB, free: 8.492 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.489e-05/0.3126, allocations: 3.938 kB / 1.209 GB, free: 8.488 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001069/0.3127, allocations: 11.88 kB / 1.209 GB, free: 8.477 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002107/0.3129, allocations: 35.95 kB / 1.209 GB, free: 8.441 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000165/0.3131, allocations: 95.75 kB / 1.209 GB, free: 8.348 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001628/0.3133, allocations: 27.97 kB / 1.209 GB, free: 8.32 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001254/0.3134, allocations: 39.84 kB / 1.209 GB, free: 8.281 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001155/0.3135, allocations: 47.81 kB / 1.209 GB, free: 8.234 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.646e-05/0.3136, allocations: 8 kB / 1.209 GB, free: 8.227 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 2.031e-05/0.3136, allocations: 8 kB / 1.209 GB, free: 8.219 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.739e-05/0.3137, allocations: 23.92 kB / 1.209 GB, free: 8.195 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.997e-05/0.3137, allocations: 35.84 kB / 1.209 GB, free: 8.16 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002051/0.3139, allocations: 95.59 kB / 1.209 GB, free: 8.066 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.314, allocations: 0 / 1.209 GB, free: 8.066 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.444e-06/0.314, allocations: 0 / 1.209 GB, free: 8.066 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.712e-06/0.314, allocations: 0 / 1.209 GB, free: 8.066 MB / 0.9669 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.000832/0.3148, allocations: 395.4 kB / 1.21 GB, free: 7.633 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/0.3149, allocations: 8.625 kB / 1.21 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.336e-05/0.3149, allocations: 38.75 kB / 1.21 GB, free: 7.578 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.85e-05/0.315, allocations: 12.83 kB / 1.21 GB, free: 7.566 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001958/0.3152, allocations: 176.2 kB / 1.21 GB, free: 7.355 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.3152, allocations: 4.375 kB / 1.21 GB, free: 7.352 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.977e-05/0.3153, allocations: 12.12 kB / 1.21 GB, free: 7.34 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003795/0.3157, allocations: 101.5 kB / 1.21 GB, free: 7.234 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.3157, allocations: 0 / 1.21 GB, free: 7.234 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/0.3157, allocations: 4 kB / 1.21 GB, free: 7.23 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.351e-06/0.3157, allocations: 4 kB / 1.21 GB, free: 7.227 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004979/0.3162, allocations: 103.9 kB / 1.21 GB, free: 7.125 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007061/0.3169, allocations: 340.6 kB / 1.21 GB, free: 6.742 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007739/0.3177, allocations: 122.6 kB / 1.211 GB, free: 6.613 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002507/0.318, allocations: 64.73 kB / 1.211 GB, free: 6.547 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.362e-05/0.318, allocations: 7.938 kB / 1.211 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.935e-05/0.3181, allocations: 30.56 kB / 1.211 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.833e-06/0.3181, allocations: 0 / 1.211 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0007848/0.3189, allocations: 181.5 kB / 1.211 GB, free: 6.316 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.596e-05/0.3189, allocations: 51.41 kB / 1.211 GB, free: 6.254 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.3191, allocations: 125.8 kB / 1.211 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.691e-05/0.3191, allocations: 25.7 kB / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.745e-05/0.3192, allocations: 111.9 kB / 1.211 GB, free: 5.977 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.364e-05/0.3192, allocations: 11.72 kB / 1.211 GB, free: 5.965 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.276e-05/0.3193, allocations: 29.7 kB / 1.211 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001075/0.3194, allocations: 310.8 kB / 1.211 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001742/0.3195, allocations: 47.94 kB / 1.212 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001788/0.3197, allocations: 55.95 kB / 1.212 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003309/0.3201, allocations: 100.7 kB / 1.212 GB, free: 5.414 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3201, allocations: 0 / 1.212 GB, free: 5.414 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004171/0.3205, allocations: 134.1 kB / 1.212 GB, free: 5.277 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.3206, allocations: 8 kB / 1.212 GB, free: 5.27 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.3206, allocations: 0 / 1.212 GB, free: 5.27 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.3206, allocations: 3.984 kB / 1.212 GB, free: 5.266 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001717/0.3208, allocations: 23.97 kB / 1.212 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.3208, allocations: 3.938 kB / 1.212 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.3209, allocations: 19.89 kB / 1.212 GB, free: 5.219 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.18e-05/0.3209, allocations: 4.078 kB / 1.212 GB, free: 5.215 MB / 0.9669 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 0.0001649/0.3211, allocations: 117.8 kB / 1.212 GB, free: 5.09 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.951e-05/0.3211, allocations: 7.922 kB / 1.212 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.962e-05/0.3212, allocations: 12.38 kB / 1.212 GB, free: 5.066 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.3212, allocations: 0 / 1.212 GB, free: 5.066 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.259e-05/0.3212, allocations: 3.938 kB / 1.212 GB, free: 5.062 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3212, allocations: 0 / 1.212 GB, free: 5.062 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002104/0.3214, allocations: 213.4 kB / 1.212 GB, free: 4.805 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.3214, allocations: 0 / 1.212 GB, free: 4.805 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001546/0.3216, allocations: 23.97 kB / 1.212 GB, free: 4.781 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3216, allocations: 0 / 1.212 GB, free: 4.781 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.3216, allocations: 4 kB / 1.212 GB, free: 4.777 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.748e-06/0.3216, allocations: 3.984 kB / 1.212 GB, free: 4.773 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.3216, allocations: 7.938 kB / 1.212 GB, free: 4.766 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004715/0.3221, allocations: 231.4 kB / 1.212 GB, free: 4.523 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.995e-05/0.3222, allocations: 77.11 kB / 1.213 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/0.3222, allocations: 4 kB / 1.213 GB, free: 4.426 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001386/0.3223, allocations: 23.91 kB / 1.213 GB, free: 4.402 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.571e-05/0.3224, allocations: 19.92 kB / 1.213 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.083e-05/0.3224, allocations: 11.94 kB / 1.213 GB, free: 4.371 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.266e-05/0.3225, allocations: 95.7 kB / 1.213 GB, free: 4.277 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3225, allocations: 0 / 1.213 GB, free: 4.277 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002349/0.3227, allocations: 15.91 kB / 1.213 GB, free: 4.262 MB / 0.9669 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.0007807/0.3235, allocations: 0.7632 MB / 1.213 GB, free: 3.473 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004072/0.3239, allocations: 115.8 kB / 1.214 GB, free: 3.359 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3239, allocations: 0 / 1.214 GB, free: 3.359 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001923/0.3241, allocations: 59.94 kB / 1.214 GB, free: 3.301 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003639/0.3245, allocations: 9.125 kB / 1.214 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002402/0.3269, allocations: 1.546 MB / 1.215 GB, free: 1.668 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00033/0.3273, allocations: 0.6898 MB / 1.216 GB, free: 0.9531 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 8.402e-05/0.3274, allocations: 12 kB / 1.216 GB, free: 0.9414 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.3275, allocations: 27.42 kB / 1.216 GB, free: 0.9141 MB / 0.9669 GB Notification: Performance of SimCode: time 7.51e-07/0.3275, allocations: 0 / 1.216 GB, free: 0.9141 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02388/0.3514, allocations: 2.702 MB / 1.218 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.836/8.188, allocations: 3.984 kB / 1.218 GB, free: 14.31 MB / 0.9825 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