Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Integers.Validation.Subtract,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Subtract",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Subtract,fileNamePrefix="Buildings_9_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.006239/0.006239, allocations: 101.2 kB / 15.73 MB, free: 6.051 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.001488/0.001488, allocations: 189.7 kB / 16.67 MB, free: 5.977 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.35/1.35, allocations: 222.9 MB / 240.4 MB, free: 4.336 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 2.381/2.381, allocations: 390.2 MB / 0.6648 GB, free: 232 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 64.17 kB / 0.9504 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2994/0.3006, allocations: 140.4 MB / 1.087 GB, free: 1.98 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Subtract): time 0.002975/0.3036, allocations: 0.7793 MB / 1.088 GB, free: 1.199 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001861/0.3055, allocations: 0.8662 MB / 1.089 GB, free: 328 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.545e-05/0.3056, allocations: 0 / 1.089 GB, free: 328 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.855e-05/0.3056, allocations: 3.938 kB / 1.089 GB, free: 324 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001115/0.3058, allocations: 19.86 kB / 1.089 GB, free: 304 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002094/0.306, allocations: 35.95 kB / 1.089 GB, free: 268 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002561/0.3063, allocations: 87.81 kB / 1.089 GB, free: 180 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.3064, allocations: 19.98 kB / 1.089 GB, free: 160 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001094/0.3065, allocations: 39.84 kB / 1.089 GB, free: 120 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/0.3067, allocations: 51.81 kB / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.084e-05/0.3067, allocations: 8 kB / 1.089 GB, free: 60 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.86e-05/0.3067, allocations: 8 kB / 1.089 GB, free: 52 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.595e-05/0.3068, allocations: 23.92 kB / 1.089 GB, free: 28 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 7.682e-05/0.3068, allocations: 35.86 kB / 1.089 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001816/0.307, allocations: 83.58 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.307, allocations: 0 / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.764e-06/0.3071, allocations: 4 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.605e-06/0.3071, allocations: 0 / 1.089 GB, free: 15.91 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0009769/0.3081, allocations: 402.9 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.3081, allocations: 8.031 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.632e-05/0.3082, allocations: 42.73 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.342e-05/0.3082, allocations: 8.844 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003196/0.3085, allocations: 172.2 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.3086, allocations: 8.312 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.89e-05/0.3086, allocations: 8.125 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000341/0.3089, allocations: 107.3 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.309, allocations: 7.984 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.309, allocations: 0 / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.309, allocations: 4 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000523/0.3095, allocations: 95.91 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006684/0.3102, allocations: 344.6 kB / 1.091 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006978/0.3109, allocations: 118.6 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002028/0.3111, allocations: 60.8 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.3112, allocations: 0 / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.043e-05/0.3112, allocations: 38.56 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 2.916e-06/0.3112, allocations: 0 / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0007064/0.3119, allocations: 181.4 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/0.3121, allocations: 55.41 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001276/0.3122, allocations: 129.8 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.195e-05/0.3122, allocations: 25.7 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.3123, allocations: 99.97 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.816e-05/0.3124, allocations: 11.81 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.504e-05/0.3124, allocations: 25.7 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002941/0.3128, allocations: 318.8 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001922/0.3129, allocations: 43.95 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001866/0.3131, allocations: 47.95 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003659/0.3135, allocations: 108.7 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3135, allocations: 0 / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004699/0.314, allocations: 137.5 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.314, allocations: 8 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.3141, allocations: 0 / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.3141, allocations: 0 / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001769/0.3143, allocations: 23.97 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.496e-05/0.3143, allocations: 3.938 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/0.3144, allocations: 19.86 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.3144, allocations: 7.984 kB / 1.092 GB, free: 13.06 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: 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.0002142/0.3146, allocations: 117.8 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.351e-05/0.3147, allocations: 7.906 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.146e-05/0.3147, allocations: 12.38 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.3147, allocations: 0 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3147, allocations: 7.875 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.3147, allocations: 0 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004462/0.3152, allocations: 201.6 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.3152, allocations: 4 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001572/0.3154, allocations: 27.97 kB / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.3154, allocations: 0 / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.3154, allocations: 0 / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.3154, allocations: 0 / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.3154, allocations: 3.938 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005551/0.316, allocations: 235.8 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.928e-05/0.316, allocations: 89 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.018e-05/0.3161, allocations: 4 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001399/0.3162, allocations: 11.98 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002636/0.3165, allocations: 19.92 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.041e-05/0.3165, allocations: 7.984 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.772e-05/0.3166, allocations: 95.27 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.81e-07/0.3166, allocations: 0 / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002408/0.3168, allocations: 16 kB / 1.093 GB, free: 12.12 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: 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.001284/0.3181, allocations: 0.7671 MB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004907/0.3186, allocations: 107.8 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.3186, allocations: 4 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002147/0.3188, allocations: 59.94 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003769/0.3192, allocations: 13.66 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002974/0.3222, allocations: 1.543 MB / 1.095 GB, free: 9.523 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005917/0.3228, allocations: 0.6924 MB / 1.096 GB, free: 8.805 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.73e-05/0.3229, allocations: 15.69 kB / 1.096 GB, free: 8.789 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.866e-05/0.323, allocations: 39.41 kB / 1.096 GB, free: 8.75 MB / 0.8575 GB Notification: Performance of SimCode: time 4e-07/0.323, allocations: 0 / 1.096 GB, free: 8.75 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02195/0.345, allocations: 2.758 MB / 1.099 GB, free: 6.094 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.026/8.371, allocations: 5.812 kB / 1.099 GB, free: 6.09 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Subtract_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Subtract.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_Subtract.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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