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.001084/0.001084, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 197.3 kB / 16.53 MB, free: 6.391 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.296/1.296, allocations: 222.9 MB / 240.2 MB, free: 4.426 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.573/2.573, allocations: 437 MB / 0.7104 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 63.91 kB / 0.8694 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6055/0.607, allocations: 151.6 MB / 1.017 GB, free: 2.445 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Subtract): time 0.002162/0.6092, allocations: 0.7867 MB / 1.018 GB, free: 1.656 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001002/0.6103, allocations: 0.8663 MB / 1.019 GB, free: 0.7773 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.464e-05/0.6104, allocations: 0 / 1.019 GB, free: 0.7773 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.37e-05/0.6104, allocations: 7.875 kB / 1.019 GB, free: 0.7695 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.117e-05/0.6105, allocations: 15.8 kB / 1.019 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001793/0.6107, allocations: 39.95 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.000124/0.6108, allocations: 83.83 kB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.611, allocations: 27.97 kB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.832e-05/0.6111, allocations: 35.84 kB / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001022/0.6112, allocations: 47.81 kB / 1.019 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.76e-05/0.6112, allocations: 8 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.85e-05/0.6113, allocations: 12 kB / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.05e-05/0.6113, allocations: 23.92 kB / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.973e-05/0.6113, allocations: 31.84 kB / 1.019 GB, free: 460 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001282/0.6115, allocations: 87.66 kB / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.6115, allocations: 0 / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.532e-06/0.6115, allocations: 0 / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.6115, allocations: 0 / 1.019 GB, free: 372 kB / 0.7637 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.0006404/0.6122, allocations: 397.4 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.6122, allocations: 12.03 kB / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.262e-05/0.6123, allocations: 38.69 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.647e-05/0.6123, allocations: 8.844 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000144/0.6124, allocations: 180.2 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.154e-05/0.6125, allocations: 8.375 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.511e-05/0.6125, allocations: 4.375 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003071/0.6128, allocations: 105.5 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.6128, allocations: 0 / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.6128, allocations: 4 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.6129, allocations: 4 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000365/0.6132, allocations: 99.83 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004872/0.6137, allocations: 352.5 kB / 1.021 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005986/0.6143, allocations: 118.5 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001917/0.6145, allocations: 60.8 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.6146, allocations: 4 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.957e-05/0.6146, allocations: 34.56 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.6146, allocations: 0 / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0006507/0.6152, allocations: 173.5 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.843e-05/0.6153, allocations: 59.41 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.916e-05/0.6154, allocations: 133.7 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.6154, allocations: 25.7 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.958e-05/0.6155, allocations: 95.98 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.785e-05/0.6155, allocations: 23.72 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.898e-05/0.6156, allocations: 25.7 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.529e-05/0.6157, allocations: 314.8 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.6159, allocations: 47.95 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/0.616, allocations: 43.95 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003469/0.6164, allocations: 101.2 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.6164, allocations: 0 / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004001/0.6168, allocations: 141.5 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.6168, allocations: 11.98 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.6168, allocations: 0 / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.6169, allocations: 3.938 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.617, allocations: 23.97 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.617, allocations: 0 / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.6172, allocations: 19.92 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.756e-06/0.6172, allocations: 0 / 1.022 GB, free: 13.51 MB / 0.7794 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 7.644e-05/0.6173, allocations: 113.8 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.404e-05/0.6173, allocations: 11.89 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.844e-05/0.6173, allocations: 12.36 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.6173, allocations: 4 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.6173, allocations: 0 / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.6174, allocations: 3.938 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001844/0.6175, allocations: 197.6 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.6176, allocations: 8 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001573/0.6177, allocations: 27.97 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.6177, allocations: 0 / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.6177, allocations: 0 / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.6178, allocations: 3.938 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.6178, allocations: 0 / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004288/0.6182, allocations: 235.3 kB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.725e-05/0.6182, allocations: 85.02 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.102e-05/0.6183, allocations: 4 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001425/0.6184, allocations: 19.91 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.895e-05/0.6185, allocations: 23.86 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.316e-06/0.6185, allocations: 4 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.761e-05/0.6186, allocations: 95.27 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6186, allocations: 4 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002298/0.6188, allocations: 19.94 kB / 1.023 GB, free: 12.56 MB / 0.7794 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.0007019/0.6195, allocations: 0.7747 MB / 1.024 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004044/0.6199, allocations: 103.9 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.6199, allocations: 3.938 kB / 1.024 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001976/0.6201, allocations: 55.94 kB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003043/0.6204, allocations: 15.94 kB / 1.024 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001876/0.6223, allocations: 1.517 MB / 1.025 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001913/0.6225, allocations: 0.694 MB / 1.026 GB, free: 9.262 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.742e-05/0.6226, allocations: 11.98 kB / 1.026 GB, free: 9.25 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.051e-05/0.6227, allocations: 35.36 kB / 1.026 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.6227, allocations: 0 / 1.026 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01755/0.6402, allocations: 2.659 MB / 1.029 GB, free: 6.637 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.99/7.63, allocations: 9.672 kB / 1.029 GB, free: 6.629 MB / 0.7794 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 & python3 -m fmpy simulate --output-file Buildings_10_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_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.csv","/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) Reference file matches