Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_OBC_CDL_Integers_Validation_Subtract",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Subtract,fileNamePrefix="Buildings_10_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.007073/0.007073, allocations: 102.1 kB / 15.73 MB, free: 6.438 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.001377/0.001377, allocations: 194.3 kB / 16.67 MB, free: 6.355 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.619/2.619, allocations: 437 MB / 0.7105 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002077/0.002077, allocations: 71.89 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2889/0.2911, allocations: 151.6 MB / 1.166 GB, free: 7.324 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Subtract): time 0.002068/0.2932, allocations: 0.7795 MB / 1.167 GB, free: 6.539 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001122/0.2943, allocations: 0.8663 MB / 1.168 GB, free: 5.66 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.623e-05/0.2944, allocations: 0 / 1.168 GB, free: 5.66 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.704e-05/0.2944, allocations: 3.938 kB / 1.168 GB, free: 5.656 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 9.295e-05/0.2946, allocations: 11.86 kB / 1.168 GB, free: 5.645 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001804/0.2947, allocations: 43.95 kB / 1.168 GB, free: 5.602 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001288/0.2949, allocations: 87.77 kB / 1.168 GB, free: 5.516 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.295, allocations: 23.97 kB / 1.168 GB, free: 5.492 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.867e-05/0.2951, allocations: 35.91 kB / 1.168 GB, free: 5.457 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 9.39e-05/0.2952, allocations: 51.81 kB / 1.168 GB, free: 5.406 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.348e-05/0.2953, allocations: 8 kB / 1.168 GB, free: 5.398 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.945e-05/0.2953, allocations: 12 kB / 1.168 GB, free: 5.387 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.797e-05/0.2953, allocations: 15.92 kB / 1.168 GB, free: 5.371 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.132e-05/0.2954, allocations: 39.73 kB / 1.168 GB, free: 5.332 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001445/0.2955, allocations: 91.66 kB / 1.168 GB, free: 5.242 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2956, allocations: 3.938 kB / 1.168 GB, free: 5.238 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2956, allocations: 0 / 1.168 GB, free: 5.238 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.242e-06/0.2956, allocations: 0 / 1.168 GB, free: 5.238 MB / 0.92 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.0006446/0.2962, allocations: 386.9 kB / 1.169 GB, free: 4.816 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.2963, allocations: 16.03 kB / 1.169 GB, free: 4.801 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.511e-05/0.2963, allocations: 38.73 kB / 1.169 GB, free: 4.754 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.829e-05/0.2964, allocations: 8.844 kB / 1.169 GB, free: 4.746 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001466/0.2965, allocations: 176.2 kB / 1.169 GB, free: 4.535 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.302e-05/0.2965, allocations: 8.375 kB / 1.169 GB, free: 4.527 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.038e-05/0.2966, allocations: 12.06 kB / 1.169 GB, free: 4.516 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000315/0.2969, allocations: 105.6 kB / 1.169 GB, free: 4.406 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.2969, allocations: 3.984 kB / 1.169 GB, free: 4.402 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.2969, allocations: 8 kB / 1.169 GB, free: 4.395 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.2969, allocations: 0 / 1.169 GB, free: 4.395 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003643/0.2973, allocations: 95.89 kB / 1.169 GB, free: 4.301 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006464/0.298, allocations: 340.6 kB / 1.169 GB, free: 3.918 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006363/0.2986, allocations: 118.6 kB / 1.169 GB, free: 3.793 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001836/0.2988, allocations: 60.8 kB / 1.17 GB, free: 3.73 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/0.2988, allocations: 3.984 kB / 1.17 GB, free: 3.727 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.2989, allocations: 42.56 kB / 1.17 GB, free: 3.676 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.133e-06/0.2989, allocations: 0 / 1.17 GB, free: 3.676 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0006229/0.2995, allocations: 177.4 kB / 1.17 GB, free: 3.496 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.2996, allocations: 51.41 kB / 1.17 GB, free: 3.434 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.2997, allocations: 125.8 kB / 1.17 GB, free: 3.301 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.639e-05/0.2997, allocations: 33.7 kB / 1.17 GB, free: 3.262 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.891e-05/0.2997, allocations: 95.97 kB / 1.17 GB, free: 3.164 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.343e-05/0.2998, allocations: 23.66 kB / 1.17 GB, free: 3.141 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.216e-05/0.2998, allocations: 25.7 kB / 1.17 GB, free: 3.109 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.568e-05/0.2999, allocations: 314.8 kB / 1.17 GB, free: 2.793 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.3001, allocations: 43.95 kB / 1.17 GB, free: 2.75 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001612/0.3003, allocations: 51.94 kB / 1.17 GB, free: 2.699 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003189/0.3006, allocations: 100.7 kB / 1.171 GB, free: 2.598 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3006, allocations: 8 kB / 1.171 GB, free: 2.59 MB / 0.92 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003974/0.301, allocations: 133.6 kB / 1.171 GB, free: 2.453 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.301, allocations: 4 kB / 1.171 GB, free: 2.449 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.77e-06/0.3011, allocations: 4 kB / 1.171 GB, free: 2.445 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.3011, allocations: 0 / 1.171 GB, free: 2.445 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000237/0.3013, allocations: 23.97 kB / 1.171 GB, free: 2.422 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/0.3013, allocations: 3.938 kB / 1.171 GB, free: 2.418 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.3015, allocations: 19.83 kB / 1.171 GB, free: 2.398 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.003e-05/0.3015, allocations: 3.938 kB / 1.171 GB, free: 2.395 MB / 0.92 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 9.783e-05/0.3016, allocations: 125.8 kB / 1.171 GB, free: 2.262 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.056e-05/0.3016, allocations: 4 kB / 1.171 GB, free: 2.258 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.821e-05/0.3017, allocations: 12.38 kB / 1.171 GB, free: 2.246 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.3017, allocations: 4 kB / 1.171 GB, free: 2.242 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.3017, allocations: 3.938 kB / 1.171 GB, free: 2.238 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.3017, allocations: 0 / 1.171 GB, free: 2.238 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002043/0.3019, allocations: 197.5 kB / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3019, allocations: 0 / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001544/0.3021, allocations: 23.97 kB / 1.171 GB, free: 1.973 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.3021, allocations: 8 kB / 1.171 GB, free: 1.965 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.3021, allocations: 0 / 1.171 GB, free: 1.965 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3021, allocations: 0 / 1.171 GB, free: 1.965 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3021, allocations: 3.938 kB / 1.171 GB, free: 1.961 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005497/0.3027, allocations: 232 kB / 1.171 GB, free: 1.719 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.607e-05/0.3027, allocations: 92.95 kB / 1.171 GB, free: 1.609 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.858e-05/0.3027, allocations: 0 / 1.171 GB, free: 1.609 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/0.3029, allocations: 15.97 kB / 1.171 GB, free: 1.594 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.26e-05/0.303, allocations: 19.92 kB / 1.171 GB, free: 1.574 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.247e-05/0.303, allocations: 7.984 kB / 1.171 GB, free: 1.566 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.905e-05/0.303, allocations: 91.22 kB / 1.172 GB, free: 1.477 MB / 0.92 GB Notification: Performance of sort global known variables: time 1e-07/0.303, allocations: 0 / 1.172 GB, free: 1.477 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.000233/0.3033, allocations: 16 kB / 1.172 GB, free: 1.461 MB / 0.92 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.0008023/0.3041, allocations: 0.7767 MB / 1.172 GB, free: 0.6602 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0004249/0.3045, allocations: 107.8 kB / 1.172 GB, free: 0.5547 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.3045, allocations: 4 kB / 1.172 GB, free: 0.5508 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0002028/0.3048, allocations: 59.94 kB / 1.172 GB, free: 0.4922 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003874/0.3052, allocations: 11.94 kB / 1.172 GB, free: 492 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00236/0.3075, allocations: 1.542 MB / 1.174 GB, free: 14.86 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003289/0.3079, allocations: 0.6885 MB / 1.175 GB, free: 14.14 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.331e-05/0.3079, allocations: 12 kB / 1.175 GB, free: 14.13 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.484e-05/0.308, allocations: 28.19 kB / 1.175 GB, free: 14.1 MB / 0.9356 GB Notification: Performance of SimCode: time 3.8e-07/0.308, allocations: 8 kB / 1.175 GB, free: 14.09 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01931/0.3273, allocations: 2.702 MB / 1.177 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.739/8.067, allocations: 18.7 kB / 1.177 GB, free: 11.48 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_Subtract_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_Subtract.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_Subtract.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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