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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.007305/0.007305, allocations: 97 kB / 15.73 MB, free: 5.949 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.001331/0.001331, allocations: 192.9 kB / 16.67 MB, free: 5.871 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.346/1.346, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.61/2.61, allocations: 469.4 MB / 0.7422 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 63.91 kB / 1.064 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.013/1.015, allocations: 159.1 MB / 1.22 GB, free: 2.254 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Subtract): time 0.002219/1.018, allocations: 0.7812 MB / 1.221 GB, free: 1.473 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001182/1.019, allocations: 0.8584 MB / 1.221 GB, free: 0.6016 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.844e-05/1.019, allocations: 0 / 1.221 GB, free: 0.6016 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.888e-05/1.019, allocations: 3.938 kB / 1.221 GB, free: 0.5977 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001244/1.019, allocations: 19.86 kB / 1.221 GB, free: 0.5781 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000216/1.019, allocations: 35.89 kB / 1.221 GB, free: 0.543 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001436/1.019, allocations: 91.81 kB / 1.222 GB, free: 464 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/1.02, allocations: 23.98 kB / 1.222 GB, free: 440 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.695e-05/1.02, allocations: 39.84 kB / 1.222 GB, free: 400 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.966e-05/1.02, allocations: 47.81 kB / 1.222 GB, free: 352 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.638e-05/1.02, allocations: 8 kB / 1.222 GB, free: 344 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.718e-05/1.02, allocations: 8 kB / 1.222 GB, free: 336 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.287e-05/1.02, allocations: 23.92 kB / 1.222 GB, free: 312 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.298e-05/1.02, allocations: 31.86 kB / 1.222 GB, free: 280 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001617/1.02, allocations: 98.25 kB / 1.222 GB, free: 184 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/1.02, allocations: 0 / 1.222 GB, free: 184 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.503e-06/1.02, allocations: 0 / 1.222 GB, free: 184 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.203e-06/1.02, allocations: 0 / 1.222 GB, free: 184 kB / 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.0007046/1.021, allocations: 398.7 kB / 1.222 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/1.021, allocations: 8.625 kB / 1.222 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.856e-05/1.021, allocations: 38.75 kB / 1.222 GB, free: 15.69 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.312e-05/1.021, allocations: 16.88 kB / 1.222 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001498/1.021, allocations: 172.3 kB / 1.222 GB, free: 15.47 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.136e-05/1.021, allocations: 4.375 kB / 1.222 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/1.021, allocations: 16.06 kB / 1.222 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003153/1.022, allocations: 97.61 kB / 1.222 GB, free: 15.35 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/1.022, allocations: 3.938 kB / 1.222 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/1.022, allocations: 4 kB / 1.222 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/1.022, allocations: 4 kB / 1.222 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003705/1.022, allocations: 99.89 kB / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000554/1.023, allocations: 340.6 kB / 1.223 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006294/1.023, allocations: 122.6 kB / 1.223 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002099/1.023, allocations: 64.73 kB / 1.223 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.09e-05/1.023, allocations: 7.984 kB / 1.223 GB, free: 14.65 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.884e-05/1.023, allocations: 30.56 kB / 1.223 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/1.023, allocations: 4 kB / 1.223 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0006737/1.024, allocations: 181.5 kB / 1.223 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.922e-05/1.024, allocations: 51.41 kB / 1.223 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.405e-05/1.024, allocations: 125.8 kB / 1.223 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/1.024, allocations: 25.7 kB / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.223e-05/1.024, allocations: 104.1 kB / 1.224 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.841e-05/1.024, allocations: 19.8 kB / 1.224 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.808e-05/1.024, allocations: 25.7 kB / 1.224 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001025/1.025, allocations: 310.8 kB / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001836/1.025, allocations: 47.95 kB / 1.224 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001702/1.025, allocations: 51.95 kB / 1.224 GB, free: 13.63 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003496/1.025, allocations: 100.7 kB / 1.224 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/1.025, allocations: 0 / 1.224 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004119/1.026, allocations: 141.5 kB / 1.224 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/1.026, allocations: 8 kB / 1.224 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/1.026, allocations: 0 / 1.224 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/1.026, allocations: 0 / 1.224 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001694/1.026, allocations: 23.97 kB / 1.224 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/1.026, allocations: 3.938 kB / 1.224 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/1.026, allocations: 15.98 kB / 1.224 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/1.026, allocations: 4 kB / 1.224 GB, free: 13.33 MB / 0.9512 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.0001006/1.026, allocations: 122.3 kB / 1.224 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.592e-05/1.026, allocations: 7.938 kB / 1.224 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.039e-05/1.026, allocations: 12.38 kB / 1.224 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/1.026, allocations: 0 / 1.224 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/1.026, allocations: 3.938 kB / 1.224 GB, free: 13.17 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/1.026, allocations: 3.938 kB / 1.224 GB, free: 13.17 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001986/1.027, allocations: 201.6 kB / 1.225 GB, free: 12.92 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/1.027, allocations: 0 / 1.225 GB, free: 12.92 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001581/1.027, allocations: 23.97 kB / 1.225 GB, free: 12.9 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/1.027, allocations: 0 / 1.225 GB, free: 12.9 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/1.027, allocations: 8 kB / 1.225 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/1.027, allocations: 0.5469 kB / 1.225 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.027, allocations: 11.88 kB / 1.225 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004627/1.027, allocations: 231.4 kB / 1.225 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.001e-05/1.027, allocations: 85 kB / 1.225 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.895e-05/1.027, allocations: 4 kB / 1.225 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001492/1.027, allocations: 19.97 kB / 1.225 GB, free: 12.51 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.429e-05/1.028, allocations: 23.92 kB / 1.225 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-06/1.028, allocations: 4 kB / 1.225 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.431e-05/1.028, allocations: 95.27 kB / 1.225 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/1.028, allocations: 0 / 1.225 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002423/1.028, allocations: 15.94 kB / 1.225 GB, free: 12.38 MB / 0.9512 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.0007589/1.029, allocations: 0.7671 MB / 1.226 GB, free: 11.58 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004306/1.029, allocations: 115.8 kB / 1.226 GB, free: 11.47 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/1.029, allocations: 0 / 1.226 GB, free: 11.47 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002082/1.029, allocations: 59.94 kB / 1.226 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003327/1.03, allocations: 7.938 kB / 1.226 GB, free: 11.4 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002103/1.032, allocations: 1.55 MB / 1.228 GB, free: 9.77 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002356/1.032, allocations: 0.6924 MB / 1.228 GB, free: 9.051 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 7.022e-05/1.032, allocations: 8 kB / 1.228 GB, free: 9.043 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.524e-05/1.032, allocations: 31.42 kB / 1.228 GB, free: 9.012 MB / 0.9512 GB Notification: Performance of SimCode: time 2.21e-07/1.032, allocations: 0 / 1.228 GB, free: 9.012 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02092/1.053, allocations: 2.705 MB / 1.231 GB, free: 6.414 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.636/8.689, allocations: 18.5 kB / 1.231 GB, free: 6.398 MB / 0.9512 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Subtract_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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) Reference file matches