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.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.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.009094/0.009094, allocations: 101.6 kB / 15.73 MB, free: 5.996 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.001684/0.001684, allocations: 190.3 kB / 16.67 MB, free: 5.93 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.451/1.451, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.927/2.927, allocations: 469.4 MB / 0.7421 GB, free: 7.633 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 67.91 kB / 1.064 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.329/0.3304, allocations: 159.1 MB / 1.22 GB, free: 14.67 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract): time 0.00203/0.3325, allocations: 0.7058 MB / 1.22 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009851/0.3335, allocations: 0.7941 MB / 1.221 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.787e-05/0.3336, allocations: 4 kB / 1.221 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.253e-05/0.3336, allocations: 7.938 kB / 1.221 GB, free: 13.15 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.699e-05/0.3337, allocations: 3.938 kB / 1.221 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 6.3e-05/0.3338, allocations: 15.97 kB / 1.221 GB, free: 13.13 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.872e-05/0.3339, allocations: 43.86 kB / 1.221 GB, free: 13.09 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.334, allocations: 11.98 kB / 1.221 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.04e-05/0.3341, allocations: 11.94 kB / 1.221 GB, free: 13.06 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.851e-05/0.3341, allocations: 27.89 kB / 1.221 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.622e-05/0.3342, allocations: 4 kB / 1.221 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.043e-05/0.3342, allocations: 8 kB / 1.221 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.934e-05/0.3342, allocations: 11.94 kB / 1.221 GB, free: 13.01 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.132e-05/0.3342, allocations: 11.92 kB / 1.221 GB, free: 13 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 9.98e-05/0.3344, allocations: 39.81 kB / 1.221 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.3344, allocations: 4 kB / 1.221 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.453e-06/0.3344, allocations: 0 / 1.221 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.616e-06/0.3344, allocations: 0 / 1.221 GB, free: 12.96 MB / 0.9825 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.0005474/0.3349, allocations: 371.2 kB / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.335, allocations: 12.03 kB / 1.222 GB, free: 12.53 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.565e-05/0.335, allocations: 34.75 kB / 1.222 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.975e-05/0.3351, allocations: 8.891 kB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001153/0.3352, allocations: 164.4 kB / 1.222 GB, free: 12.28 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.3352, allocations: 4.375 kB / 1.222 GB, free: 12.28 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.468e-05/0.3352, allocations: 4.375 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002479/0.3355, allocations: 70.14 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.3355, allocations: 11.88 kB / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.3355, allocations: 8 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.3355, allocations: 0 / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002824/0.3358, allocations: 59.94 kB / 1.222 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000346/0.3362, allocations: 268.8 kB / 1.222 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002015/0.3364, allocations: 66.47 kB / 1.223 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001563/0.3366, allocations: 44.91 kB / 1.223 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.175e-05/0.3366, allocations: 0 / 1.223 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.196e-05/0.3366, allocations: 30.56 kB / 1.223 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.3366, allocations: 0 / 1.223 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0005161/0.3371, allocations: 125.6 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.58e-05/0.3372, allocations: 55.41 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.074e-05/0.3373, allocations: 105.8 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.206e-05/0.3373, allocations: 29.64 kB / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.865e-05/0.3373, allocations: 96.12 kB / 1.223 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.074e-05/0.3374, allocations: 11.84 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.089e-05/0.3374, allocations: 17.72 kB / 1.223 GB, free: 11.17 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.466e-05/0.3375, allocations: 310.8 kB / 1.223 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/0.3377, allocations: 31.95 kB / 1.223 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001297/0.3378, allocations: 31.97 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002642/0.3381, allocations: 72.72 kB / 1.223 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.3381, allocations: 3.938 kB / 1.223 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003068/0.3384, allocations: 93.95 kB / 1.224 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.3384, allocations: 8 kB / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.3384, allocations: 4 kB / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.3384, allocations: 0 / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.3386, allocations: 19.91 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.3386, allocations: 4 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.67e-05/0.3387, allocations: 15.94 kB / 1.224 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.3387, allocations: 4 kB / 1.224 GB, free: 10.57 MB / 0.9825 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 7.831e-05/0.3388, allocations: 110.3 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.695e-05/0.3388, allocations: 11.98 kB / 1.224 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.639e-05/0.3388, allocations: 7.906 kB / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.3389, allocations: 3.984 kB / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.3389, allocations: 0 / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.3389, allocations: 0 / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001553/0.339, allocations: 169.6 kB / 1.224 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.339, allocations: 0 / 1.224 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.421e-05/0.3391, allocations: 19.98 kB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.3391, allocations: 0 / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.224e-06/0.3392, allocations: 0 / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3392, allocations: 4 kB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.3392, allocations: 7.922 kB / 1.224 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003533/0.3395, allocations: 199.3 kB / 1.224 GB, free: 9.961 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.501e-05/0.3396, allocations: 81.11 kB / 1.224 GB, free: 9.863 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.357e-05/0.3396, allocations: 0 / 1.224 GB, free: 9.863 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/0.3397, allocations: 15.98 kB / 1.224 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.188e-05/0.3397, allocations: 3.984 kB / 1.224 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.496e-06/0.3398, allocations: 0 / 1.224 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.856e-05/0.3398, allocations: 91.27 kB / 1.224 GB, free: 9.754 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3398, allocations: 0 / 1.224 GB, free: 9.754 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002177/0.34, allocations: 8 kB / 1.224 GB, free: 9.746 MB / 0.9825 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.0006853/0.3407, allocations: 0.728 MB / 1.225 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003337/0.3411, allocations: 71.86 kB / 1.225 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3411, allocations: 0 / 1.225 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001464/0.3412, allocations: 35.95 kB / 1.225 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003362/0.3416, allocations: 13.81 kB / 1.225 GB, free: 8.875 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004452/0.342, allocations: 162.9 kB / 1.225 GB, free: 8.676 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002198/0.3423, allocations: 0.6807 MB / 1.226 GB, free: 7.969 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.588e-05/0.3423, allocations: 8 kB / 1.226 GB, free: 7.961 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.55e-05/0.3424, allocations: 11.44 kB / 1.226 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of SimCode: time 1.553e-06/0.3424, allocations: 0 / 1.226 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01704/0.3594, allocations: 1.641 MB / 1.228 GB, free: 6.402 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.579/7.939, allocations: 12.97 kB / 1.228 GB, free: 6.398 MB / 0.9825 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