Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.Derivative,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",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.004824/0.004824, allocations: 96.41 kB / 15.73 MB, free: 6.055 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.001306/0.001306, allocations: 201.5 kB / 16.68 MB, free: 5.977 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.924/2.924, allocations: 482.4 MB / 0.7548 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 75.88 kB / 1.083 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.2905, allocations: 162.2 MB / 1.242 GB, free: 10.14 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002221/0.2927, allocations: 1.06 MB / 1.243 GB, free: 9.082 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001296/0.294, allocations: 0.9869 MB / 1.244 GB, free: 8.082 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.694e-05/0.2941, allocations: 4 kB / 1.244 GB, free: 8.078 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001162/0.2942, allocations: 19.73 kB / 1.244 GB, free: 8.059 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.978e-05/0.2943, allocations: 35.72 kB / 1.244 GB, free: 8.023 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002529/0.2946, allocations: 79.45 kB / 1.244 GB, free: 7.949 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.000214/0.2948, allocations: 172.1 kB / 1.244 GB, free: 7.781 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001719/0.295, allocations: 79.98 kB / 1.244 GB, free: 7.695 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.2951, allocations: 67.77 kB / 1.244 GB, free: 7.629 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/0.2952, allocations: 83.61 kB / 1.244 GB, free: 7.547 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.842e-05/0.2953, allocations: 16 kB / 1.244 GB, free: 7.531 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.783e-05/0.2953, allocations: 16 kB / 1.244 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 4.973e-05/0.2954, allocations: 43.89 kB / 1.244 GB, free: 7.473 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 8.53e-05/0.2954, allocations: 75.53 kB / 1.244 GB, free: 7.398 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002449/0.2957, allocations: 187.1 kB / 1.244 GB, free: 7.215 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.2957, allocations: 3.938 kB / 1.244 GB, free: 7.211 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.132e-06/0.2957, allocations: 0 / 1.244 GB, free: 7.211 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.389e-06/0.2957, allocations: 0 / 1.244 GB, free: 7.211 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0008351/0.2966, allocations: 486.6 kB / 1.245 GB, free: 6.684 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.2966, allocations: 8.031 kB / 1.245 GB, free: 6.676 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.758e-05/0.2967, allocations: 54.73 kB / 1.245 GB, free: 6.613 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.964e-05/0.2967, allocations: 20.84 kB / 1.245 GB, free: 6.594 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002864/0.297, allocations: 223.4 kB / 1.245 GB, free: 6.34 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.961e-05/0.297, allocations: 12.38 kB / 1.245 GB, free: 6.328 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.443e-05/0.2971, allocations: 20.38 kB / 1.245 GB, free: 6.309 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003402/0.2974, allocations: 161.3 kB / 1.245 GB, free: 6.145 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.647e-06/0.2974, allocations: 0 / 1.245 GB, free: 6.145 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.888e-05/0.2975, allocations: 8 kB / 1.245 GB, free: 6.137 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.2975, allocations: 4 kB / 1.245 GB, free: 6.133 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003148/0.2978, allocations: 103.9 kB / 1.245 GB, free: 6.031 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00113/0.2989, allocations: 0.5353 MB / 1.246 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003995/0.2993, allocations: 150.6 kB / 1.246 GB, free: 5.289 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001965/0.2996, allocations: 80.81 kB / 1.246 GB, free: 5.207 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.2996, allocations: 4 kB / 1.246 GB, free: 5.203 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002579/0.2999, allocations: 119.3 kB / 1.246 GB, free: 5.074 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=19): time 1.463e-06/0.2999, allocations: 0 / 1.246 GB, free: 5.074 MB / 0.9981 GB Notification: Performance of matching and sorting (n=19): time 0.0005983/0.3005, allocations: 227.1 kB / 1.247 GB, free: 4.848 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.307e-05/0.3005, allocations: 55.41 kB / 1.247 GB, free: 4.781 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001535/0.3007, allocations: 163.1 kB / 1.247 GB, free: 4.613 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.867e-05/0.3007, allocations: 33.69 kB / 1.247 GB, free: 4.574 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.359e-05/0.3008, allocations: 120.5 kB / 1.247 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 6.668e-05/0.3009, allocations: 67.42 kB / 1.247 GB, free: 4.387 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.093e-05/0.301, allocations: 37.7 kB / 1.247 GB, free: 4.344 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001496/0.3011, allocations: 330.8 kB / 1.247 GB, free: 4.012 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002313/0.3013, allocations: 67.95 kB / 1.247 GB, free: 3.945 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002331/0.3016, allocations: 89.66 kB / 1.247 GB, free: 3.852 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003808/0.302, allocations: 149.5 kB / 1.248 GB, free: 3.699 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.302, allocations: 0 / 1.248 GB, free: 3.699 MB / 0.9981 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005308/0.3025, allocations: 211.3 kB / 1.248 GB, free: 3.488 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.3025, allocations: 5.406 kB / 1.248 GB, free: 3.484 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.3026, allocations: 0 / 1.248 GB, free: 3.484 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.3026, allocations: 4 kB / 1.248 GB, free: 3.48 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002122/0.3028, allocations: 43.94 kB / 1.248 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.3028, allocations: 4 kB / 1.248 GB, free: 3.434 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001444/0.303, allocations: 23.88 kB / 1.248 GB, free: 3.41 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.943e-05/0.303, allocations: 8 kB / 1.248 GB, free: 3.402 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,lesThr.lesHys.y,$PRE.lesThr.lesHys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001245/0.3031, allocations: 134.2 kB / 1.248 GB, free: 3.262 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.658e-05/0.3031, allocations: 15.91 kB / 1.248 GB, free: 3.246 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004549/0.3036, allocations: 192.5 kB / 1.248 GB, free: 3.051 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.301e-06/0.3036, allocations: 7.984 kB / 1.248 GB, free: 3.043 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3036, allocations: 0 / 1.248 GB, free: 3.043 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3036, allocations: 0 / 1.248 GB, free: 3.043 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009149/0.3046, allocations: 0.5812 MB / 1.249 GB, free: 2.387 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.3046, allocations: 4 kB / 1.249 GB, free: 2.383 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001909/0.3048, allocations: 39.91 kB / 1.249 GB, free: 2.344 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.355e-05/0.3048, allocations: 7.938 kB / 1.249 GB, free: 2.336 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.3048, allocations: 7.984 kB / 1.249 GB, free: 2.328 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.3048, allocations: 0 / 1.249 GB, free: 2.328 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.3048, allocations: 8 kB / 1.249 GB, free: 2.32 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000649/0.3055, allocations: 388.6 kB / 1.249 GB, free: 1.906 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.054e-05/0.3056, allocations: 96.89 kB / 1.249 GB, free: 1.793 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.843e-05/0.3056, allocations: 8 kB / 1.249 GB, free: 1.785 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.3058, allocations: 12.03 kB / 1.249 GB, free: 1.773 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.414e-05/0.3058, allocations: 27.91 kB / 1.249 GB, free: 1.746 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.789e-05/0.3059, allocations: 8 kB / 1.249 GB, free: 1.738 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001047/0.306, allocations: 127.2 kB / 1.249 GB, free: 1.613 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.51e-07/0.306, allocations: 3.938 kB / 1.249 GB, free: 1.609 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002819/0.3063, allocations: 31.95 kB / 1.249 GB, free: 1.578 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (der1.x,intWitRes.y,der2.x) * Number of discrete variables: 2 ($whenCondition1,lesThr.lesHys.y) * Number of discrete states: 1 (lesThr.lesHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.001022/0.3073, allocations: 0.9145 MB / 1.25 GB, free: 0.6211 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004712/0.3078, allocations: 175.8 kB / 1.251 GB, free: 460 kB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.3078, allocations: 0 / 1.251 GB, free: 460 kB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002047/0.308, allocations: 79.84 kB / 1.251 GB, free: 380 kB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.3084, allocations: 31.86 kB / 1.251 GB, free: 348 kB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4854/0.7937, allocations: 2.13 MB / 1.253 GB, free: 13.77 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001404/0.7939, allocations: 0.7234 MB / 1.253 GB, free: 13.07 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.985e-05/0.794, allocations: 17.22 kB / 1.253 GB, free: 13.07 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.354e-05/0.7941, allocations: 52.86 kB / 1.254 GB, free: 13.07 MB / 0.9981 GB Notification: Performance of SimCode: time 6.42e-07/0.7941, allocations: 1.969 kB / 1.254 GB, free: 13.07 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02585/0.82, allocations: 3.604 MB / 1.257 GB, free: 12.68 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.738/8.558, allocations: 20.05 kB / 1.257 GB, free: 12.67 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.csv --start-time 0 --stop-time 10 --timeout 400 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches