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.001187/0.001187, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00121/0.00121, allocations: 197.4 kB / 16.26 MB, free: 6.621 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.341/1.341, allocations: 222.9 MB / 239.9 MB, free: 4.527 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.51/2.51, allocations: 437.1 MB / 0.7101 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 63.91 kB / 0.8689 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6955/0.6969, allocations: 151.6 MB / 1.017 GB, free: 2.688 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Subtract): time 0.002225/0.6992, allocations: 0.836 MB / 1.018 GB, free: 1.852 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001127/0.7003, allocations: 0.8545 MB / 1.019 GB, free: 0.9844 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.29e-05/0.7004, allocations: 0 / 1.019 GB, free: 0.9844 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.406e-05/0.7005, allocations: 3.938 kB / 1.019 GB, free: 0.9805 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.842e-05/0.7006, allocations: 15.92 kB / 1.019 GB, free: 0.9648 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000155/0.7007, allocations: 35.89 kB / 1.019 GB, free: 0.9297 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.994e-05/0.7008, allocations: 79.91 kB / 1.019 GB, free: 0.8516 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001384/0.701, allocations: 31.97 kB / 1.019 GB, free: 0.8203 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.175e-05/0.7011, allocations: 43.83 kB / 1.019 GB, free: 0.7773 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.866e-05/0.7012, allocations: 47.77 kB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.35e-05/0.7012, allocations: 8 kB / 1.019 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.669e-05/0.7012, allocations: 8 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.575e-05/0.7012, allocations: 27.91 kB / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.075e-05/0.7013, allocations: 27.86 kB / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000125/0.7014, allocations: 91.66 kB / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.7014, allocations: 0 / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.633e-06/0.7014, allocations: 0 / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.14e-06/0.7014, allocations: 4 kB / 1.019 GB, free: 0.5664 MB / 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.0006262/0.7021, allocations: 393.4 kB / 1.019 GB, free: 140 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.7021, allocations: 11.97 kB / 1.019 GB, free: 128 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.26e-05/0.7022, allocations: 42.73 kB / 1.019 GB, free: 76 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.149e-05/0.7022, allocations: 8.844 kB / 1.019 GB, free: 68 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001539/0.7024, allocations: 176.2 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.653e-05/0.7024, allocations: 384 / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.64e-05/0.7024, allocations: 12.31 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002898/0.7027, allocations: 109.5 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.523e-06/0.7027, allocations: 0 / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.7027, allocations: 0 / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.7028, allocations: 8 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003502/0.7031, allocations: 99.89 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005101/0.7036, allocations: 348.5 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006282/0.7043, allocations: 118.6 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001824/0.7045, allocations: 56.81 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.272e-05/0.7045, allocations: 7.984 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.098e-05/0.7045, allocations: 34.56 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.032e-06/0.7045, allocations: 0 / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0006233/0.7052, allocations: 193.4 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.196e-05/0.7052, allocations: 51.41 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.332e-05/0.7053, allocations: 129.7 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.7053, allocations: 29.7 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.192e-05/0.7054, allocations: 99.97 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.576e-05/0.7054, allocations: 15.75 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.824e-05/0.7055, allocations: 25.7 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000114/0.7056, allocations: 314.8 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00017/0.7058, allocations: 51.95 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/0.7059, allocations: 43.95 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003111/0.7063, allocations: 96.72 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.7063, allocations: 0 / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003783/0.7067, allocations: 145.5 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.7067, allocations: 4 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.7067, allocations: 0 / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.7067, allocations: 0 / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.7069, allocations: 23.97 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.7069, allocations: 0 / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.707, allocations: 19.92 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/0.707, allocations: 8 kB / 1.022 GB, free: 13.71 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 8.578e-05/0.7071, allocations: 118.3 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.629e-05/0.7071, allocations: 7.906 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.994e-05/0.7072, allocations: 12.38 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.7072, allocations: 0 / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.7072, allocations: 0 / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.7072, allocations: 7.875 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002082/0.7074, allocations: 197.6 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.7074, allocations: 0 / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001534/0.7076, allocations: 27.97 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.7076, allocations: 4 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.7076, allocations: 4 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.7076, allocations: 0 / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.7076, allocations: 0 / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000447/0.7081, allocations: 239.3 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.066e-05/0.7081, allocations: 88.95 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.937e-05/0.7082, allocations: 3.984 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.7083, allocations: 19.98 kB / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.588e-05/0.7084, allocations: 27.86 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-06/0.7084, allocations: 3.984 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.228e-05/0.7085, allocations: 95.27 kB / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.7085, allocations: 0 / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002168/0.7087, allocations: 19.94 kB / 1.022 GB, free: 12.75 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.0007857/0.7095, allocations: 0.7592 MB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004002/0.7099, allocations: 112.5 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.7099, allocations: 0 / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001876/0.7101, allocations: 63.88 kB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003283/0.7104, allocations: 17.5 kB / 1.023 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002027/0.7125, allocations: 1.541 MB / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002648/0.7128, allocations: 0.6885 MB / 1.025 GB, free: 9.441 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.976e-05/0.7128, allocations: 15.98 kB / 1.026 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.943e-05/0.7129, allocations: 27.42 kB / 1.026 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of SimCode: time 3.4e-07/0.7129, allocations: 4 kB / 1.026 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.13/1.843, allocations: 2.415 MB / 1.028 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002032/1.843, allocations: 207 kB / 1.028 GB, free: 6.852 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.889/3.733, allocations: 0 / 1.028 GB, free: 6.852 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 & /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) Reference file matches