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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001581/0.001581, 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.002097/0.002097, allocations: 193.2 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.269/1.269, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.573/2.573, allocations: 469.4 MB / 0.742 GB, free: 7.652 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 68.56 kB / 0.9083 GB, free: 34.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.3269, allocations: 159.1 MB / 1.064 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Subtract): time 0.002224/0.3292, allocations: 0.7851 MB / 1.064 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001059/0.3303, allocations: 0.864 MB / 1.065 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.18e-05/0.3304, allocations: 0 / 1.065 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.205e-05/0.3304, allocations: 7.875 kB / 1.065 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.791e-05/0.3305, allocations: 7.875 kB / 1.065 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001669/0.3307, allocations: 39.95 kB / 1.065 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001144/0.3308, allocations: 87.81 kB / 1.065 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.331, allocations: 27.98 kB / 1.065 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.367e-05/0.3311, allocations: 31.86 kB / 1.065 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.435e-05/0.3312, allocations: 47.81 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.523e-05/0.3312, allocations: 8 kB / 1.066 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.761e-05/0.3312, allocations: 8 kB / 1.066 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.177e-05/0.3312, allocations: 31.91 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.959e-05/0.3313, allocations: 35.78 kB / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001294/0.3314, allocations: 83.72 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3314, allocations: 0 / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.262e-06/0.3315, allocations: 0 / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.845e-06/0.3315, allocations: 0 / 1.066 GB, free: 12.41 MB / 0.8262 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.0006331/0.3321, allocations: 397.2 kB / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.3322, allocations: 8.031 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.216e-05/0.3322, allocations: 38.69 kB / 1.066 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.653e-05/0.3323, allocations: 12.84 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001587/0.3324, allocations: 180.2 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.862e-05/0.3324, allocations: 4.375 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.886e-05/0.3325, allocations: 4.375 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003032/0.3328, allocations: 105.5 kB / 1.066 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.423e-06/0.3328, allocations: 0 / 1.066 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.3328, allocations: 3.938 kB / 1.066 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.3328, allocations: 4 kB / 1.066 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003769/0.3332, allocations: 99.84 kB / 1.067 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005158/0.3337, allocations: 348.7 kB / 1.067 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006221/0.3344, allocations: 122.5 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002057/0.3346, allocations: 56.81 kB / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/0.3346, allocations: 4 kB / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.886e-05/0.3346, allocations: 34.56 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.203e-06/0.3346, allocations: 0 / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0006813/0.3353, allocations: 177.5 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.623e-05/0.3354, allocations: 59.34 kB / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001057/0.3355, allocations: 137.7 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.653e-05/0.3355, allocations: 25.7 kB / 1.067 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.759e-05/0.3356, allocations: 95.98 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.502e-05/0.3356, allocations: 11.81 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.149e-05/0.3357, allocations: 25.7 kB / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.3358, allocations: 318.8 kB / 1.068 GB, free: 9.957 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001863/0.336, allocations: 43.95 kB / 1.068 GB, free: 9.914 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/0.3362, allocations: 51.94 kB / 1.068 GB, free: 9.863 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003422/0.3365, allocations: 100.8 kB / 1.068 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3366, allocations: 0 / 1.068 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004227/0.337, allocations: 134 kB / 1.068 GB, free: 9.625 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.337, allocations: 8 kB / 1.068 GB, free: 9.617 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.337, allocations: 3.938 kB / 1.068 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.337, allocations: 0 / 1.068 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/0.3372, allocations: 23.97 kB / 1.068 GB, free: 9.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.3372, allocations: 4.062 kB / 1.068 GB, free: 9.586 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001185/0.3373, allocations: 19.91 kB / 1.068 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.528e-06/0.3374, allocations: 4 kB / 1.068 GB, free: 9.562 MB / 0.8262 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.125e-05/0.3375, allocations: 113.8 kB / 1.068 GB, free: 9.441 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.33e-05/0.3375, allocations: 11.89 kB / 1.068 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.019e-05/0.3375, allocations: 12.38 kB / 1.068 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.604e-06/0.3375, allocations: 0 / 1.068 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.3376, allocations: 0 / 1.068 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.3376, allocations: 7.922 kB / 1.068 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002103/0.3378, allocations: 201.5 kB / 1.069 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.3378, allocations: 0 / 1.069 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001552/0.3379, allocations: 31.97 kB / 1.069 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.338, allocations: 0 / 1.069 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.338, allocations: 3.984 kB / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.338, allocations: 3.938 kB / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.338, allocations: 0 / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004445/0.3384, allocations: 239.2 kB / 1.069 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.997e-05/0.3385, allocations: 88.95 kB / 1.069 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.064e-05/0.3385, allocations: 4 kB / 1.069 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001415/0.3387, allocations: 11.98 kB / 1.069 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.739e-05/0.3388, allocations: 27.91 kB / 1.069 GB, free: 8.727 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-06/0.3388, allocations: 4 kB / 1.069 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.03e-05/0.3389, allocations: 95.7 kB / 1.069 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3389, allocations: 0 / 1.069 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002284/0.3391, allocations: 16 kB / 1.069 GB, free: 8.613 MB / 0.8262 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.0007263/0.3398, allocations: 0.7675 MB / 1.07 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004248/0.3403, allocations: 119.9 kB / 1.07 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3403, allocations: 4 kB / 1.07 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002008/0.3405, allocations: 51.95 kB / 1.07 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003282/0.3408, allocations: 17.81 kB / 1.07 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002123/0.3429, allocations: 1.529 MB / 1.072 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002626/0.3432, allocations: 0.6924 MB / 1.072 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.21e-05/0.3433, allocations: 11.94 kB / 1.072 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.127e-05/0.3434, allocations: 31.42 kB / 1.072 GB, free: 5.262 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3434, allocations: 0 / 1.072 GB, free: 5.262 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01879/0.3622, allocations: 2.663 MB / 1.075 GB, free: 2.684 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.153/7.515, allocations: 9.25 kB / 1.075 GB, free: 2.676 MB / 0.8262 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