Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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.Reals.Validation.Subtract,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_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.001499/0.0015, allocations: 108 kB / 15.61 MB, free: 148 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.001636/0.001636, allocations: 198.8 kB / 16.53 MB, free: 6.656 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.427/1.427, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.469/3.469, allocations: 469.4 MB / 0.742 GB, free: 7.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 66.75 kB / 0.9083 GB, free: 34.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3305, allocations: 159.1 MB / 1.064 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract): time 0.003332/0.3339, allocations: 0.7043 MB / 1.064 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001752/0.3357, allocations: 0.804 MB / 1.065 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.402e-05/0.3358, allocations: 0 / 1.065 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.863e-05/0.3359, allocations: 3.938 kB / 1.065 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.664e-05/0.336, allocations: 7.938 kB / 1.065 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 9.974e-05/0.3361, allocations: 11.98 kB / 1.065 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001479/0.3363, allocations: 47.8 kB / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001542/0.3364, allocations: 15.97 kB / 1.065 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.3366, allocations: 19.98 kB / 1.065 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.137e-05/0.3367, allocations: 19.86 kB / 1.065 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.88e-05/0.3367, allocations: 4 kB / 1.065 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.736e-05/0.3367, allocations: 4 kB / 1.065 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.827e-05/0.3368, allocations: 11.92 kB / 1.065 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.362e-05/0.3369, allocations: 15.88 kB / 1.065 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001426/0.337, allocations: 39.88 kB / 1.065 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.337, allocations: 4 kB / 1.065 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.784e-06/0.337, allocations: 0 / 1.065 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.1e-05/0.3371, allocations: 0 / 1.065 GB, free: 12.78 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0007337/0.3378, allocations: 359.7 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.823e-05/0.3379, allocations: 12.03 kB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.242e-05/0.3379, allocations: 30.75 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.861e-05/0.338, allocations: 4.844 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001876/0.3382, allocations: 176.3 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.3382, allocations: 8.312 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.884e-05/0.3383, allocations: 4.375 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003979/0.3387, allocations: 70.2 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.3387, allocations: 3.938 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.3387, allocations: 0 / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.3387, allocations: 0 / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004986/0.3393, allocations: 67.92 kB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005597/0.3398, allocations: 272.8 kB / 1.066 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003335/0.3402, allocations: 50.48 kB / 1.066 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002871/0.3405, allocations: 56.89 kB / 1.066 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.3405, allocations: 0 / 1.066 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.106e-05/0.3406, allocations: 30.56 kB / 1.066 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.793e-06/0.3406, allocations: 0 / 1.066 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0009204/0.3415, allocations: 129.5 kB / 1.067 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.033e-05/0.3416, allocations: 55.39 kB / 1.067 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.3417, allocations: 113.8 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.774e-05/0.3418, allocations: 25.7 kB / 1.067 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.617e-05/0.3419, allocations: 84.14 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.185e-05/0.3419, allocations: 15.81 kB / 1.067 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.586e-05/0.342, allocations: 9.719 kB / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001788/0.3422, allocations: 322.8 kB / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002468/0.3425, allocations: 27.97 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002494/0.3427, allocations: 31.95 kB / 1.067 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000457/0.3432, allocations: 76.67 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.3432, allocations: 0 / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005701/0.3438, allocations: 101.6 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.393e-05/0.3438, allocations: 7.984 kB / 1.067 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.3439, allocations: 4 kB / 1.067 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.3439, allocations: 0 / 1.067 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002164/0.3441, allocations: 19.98 kB / 1.067 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.3441, allocations: 0 / 1.067 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002512/0.3444, allocations: 15.92 kB / 1.067 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.118e-05/0.3444, allocations: 0 / 1.067 GB, free: 10.4 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.0001174/0.3446, allocations: 113.8 kB / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.559e-05/0.3446, allocations: 3.906 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.603e-05/0.3447, allocations: 11.89 kB / 1.068 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.565e-06/0.3447, allocations: 4 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.3447, allocations: 4 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.3447, allocations: 0 / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000369/0.3451, allocations: 169.6 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.3451, allocations: 0 / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001614/0.3453, allocations: 15.97 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.3453, allocations: 0 / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.3453, allocations: 4 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.3453, allocations: 0 / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3454, allocations: 0 / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006395/0.346, allocations: 199.4 kB / 1.068 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.337e-05/0.3461, allocations: 85.33 kB / 1.068 GB, free: 9.703 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.6e-05/0.3461, allocations: 4 kB / 1.068 GB, free: 9.699 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002059/0.3463, allocations: 11.97 kB / 1.068 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.174e-05/0.3464, allocations: 4 kB / 1.068 GB, free: 9.684 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-06/0.3464, allocations: 4 kB / 1.068 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.131e-05/0.3465, allocations: 87.27 kB / 1.068 GB, free: 9.594 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.31e-07/0.3466, allocations: 4 kB / 1.068 GB, free: 9.59 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004185/0.347, allocations: 4 kB / 1.068 GB, free: 9.586 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.001212/0.3482, allocations: 0.7363 MB / 1.069 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005589/0.3488, allocations: 71.92 kB / 1.069 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3488, allocations: 0 / 1.069 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002796/0.3491, allocations: 35.97 kB / 1.069 GB, free: 8.719 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005653/0.3497, allocations: 7.938 kB / 1.069 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008427/0.3505, allocations: 163.1 kB / 1.069 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004102/0.351, allocations: 0.6807 MB / 1.07 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.246e-05/0.351, allocations: 4 kB / 1.07 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.107e-05/0.3511, allocations: 19.42 kB / 1.07 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of SimCode: time 6.12e-07/0.3511, allocations: 0 / 1.07 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02674/0.3779, allocations: 1.597 MB / 1.071 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.721/8.099, allocations: 9.484 kB / 1.071 GB, free: 6.258 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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_Reals_Validation_Subtract.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Subtract.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches