Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.Continuous.Validation.Derivative,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_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.001238/0.001239, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001257/0.001257, allocations: 191.7 kB / 16.13 MB, free: 6.695 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.271/1.271, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.146/2.146, allocations: 390.2 MB / 0.6643 GB, free: 0.6367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 59.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4874/0.4886, allocations: 140.4 MB / 0.9491 GB, free: 9.191 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative): time 0.001904/0.4905, allocations: 1.09 MB / 0.9501 GB, free: 8.348 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007532/0.4913, allocations: 0.998 MB / 0.9511 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.528e-05/0.4914, allocations: 6.688 kB / 0.9511 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001047/0.4915, allocations: 7.875 kB / 0.9511 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.353e-05/0.4916, allocations: 17.28 kB / 0.9511 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000195/0.4918, allocations: 60.27 kB / 0.9512 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001321/0.4919, allocations: 155.4 kB / 0.9514 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001281/0.492, allocations: 78.2 kB / 0.9514 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.702e-05/0.4921, allocations: 60.88 kB / 0.9515 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.282e-05/0.4922, allocations: 76.5 kB / 0.9516 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.854e-05/0.4922, allocations: 9.688 kB / 0.9516 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.209e-05/0.4922, allocations: 8.938 kB / 0.9516 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.924e-05/0.4923, allocations: 25.33 kB / 0.9516 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.222e-05/0.4923, allocations: 74.27 kB / 0.9517 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001202/0.4925, allocations: 161.9 kB / 0.9518 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.4925, allocations: 0 / 0.9518 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.443e-06/0.4925, allocations: 1.406 kB / 0.9518 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.309e-06/0.4925, allocations: 4 kB / 0.9518 GB, free: 7.008 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0006122/0.4931, allocations: 468.4 kB / 0.9523 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.4931, allocations: 9.062 kB / 0.9523 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.706e-05/0.4932, allocations: 59.61 kB / 0.9523 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.005e-05/0.4932, allocations: 17.34 kB / 0.9524 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001619/0.4934, allocations: 217.1 kB / 0.9526 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.434e-05/0.4934, allocations: 14.06 kB / 0.9526 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.685e-05/0.4934, allocations: 22.41 kB / 0.9526 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002539/0.4937, allocations: 140 kB / 0.9527 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.4937, allocations: 3.938 kB / 0.9527 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/0.4937, allocations: 9.344 kB / 0.9527 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.4937, allocations: 4.156 kB / 0.9528 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00024/0.494, allocations: 100.6 kB / 0.9528 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008573/0.4949, allocations: 0.5402 MB / 0.9534 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003069/0.4952, allocations: 140.4 kB / 0.9535 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.4953, allocations: 80.05 kB / 0.9536 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.213e-05/0.4954, allocations: 10.45 kB / 0.9536 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002047/0.4956, allocations: 115.8 kB / 0.9537 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=19): time 1.413e-06/0.4956, allocations: 1.156 kB / 0.9537 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19): time 0.0004744/0.4961, allocations: 231 kB / 0.9539 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.623e-05/0.4961, allocations: 52.84 kB / 0.954 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.958e-05/0.4962, allocations: 157.7 kB / 0.9541 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.665e-05/0.4962, allocations: 32.42 kB / 0.9542 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.825e-05/0.4963, allocations: 114.3 kB / 0.9543 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.285e-05/0.4963, allocations: 65.91 kB / 0.9543 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.33e-05/0.4963, allocations: 39.64 kB / 0.9544 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.962e-05/0.4964, allocations: 327 kB / 0.9547 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001858/0.4966, allocations: 65.64 kB / 0.9547 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001836/0.4968, allocations: 90.55 kB / 0.9548 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002906/0.4971, allocations: 145.1 kB / 0.955 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.4971, allocations: 1.281 kB / 0.955 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000411/0.4975, allocations: 211.9 kB / 0.9552 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.4975, allocations: 9.953 kB / 0.9552 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.4975, allocations: 0 / 0.9552 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.4975, allocations: 5.031 kB / 0.9552 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001848/0.4977, allocations: 38.92 kB / 0.9552 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.4977, allocations: 1.406 kB / 0.9552 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001276/0.4979, allocations: 29.72 kB / 0.9553 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.4979, allocations: 8 kB / 0.9553 GB, free: 4.191 MB / 0.7169 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 6.743e-05/0.498, allocations: 133.5 kB / 0.9554 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.147e-05/0.498, allocations: 18.28 kB / 0.9554 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003456/0.4983, allocations: 192.9 kB / 0.9556 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.4984, allocations: 2.531 kB / 0.9556 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.4984, allocations: 0 / 0.9556 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.4984, allocations: 9.438 kB / 0.9556 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005941/0.499, allocations: 0.5881 MB / 0.9562 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.499, allocations: 2.688 kB / 0.9562 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001611/0.4991, allocations: 33.86 kB / 0.9562 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.4992, allocations: 3.406 kB / 0.9562 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.4992, allocations: 7.562 kB / 0.9562 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.4992, allocations: 5.906 kB / 0.9562 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.4992, allocations: 5.766 kB / 0.9562 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004502/0.4996, allocations: 375.5 kB / 0.9566 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.403e-05/0.4997, allocations: 86.89 kB / 0.9567 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.654e-05/0.4997, allocations: 15.53 kB / 0.9567 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001606/0.4999, allocations: 20.42 kB / 0.9567 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.153e-05/0.4999, allocations: 25.78 kB / 0.9567 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.343e-05/0.5, allocations: 5.75 kB / 0.9567 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.637e-05/0.5, allocations: 118.5 kB / 0.9568 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5, allocations: 1.281 kB / 0.9568 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002513/0.5003, allocations: 34.97 kB / 0.9569 GB, free: 2.848 MB / 0.7169 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.0006171/0.5009, allocations: 0.9214 MB / 0.9578 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003527/0.5013, allocations: 158.1 kB / 0.9579 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.5013, allocations: 0 / 0.9579 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001623/0.5014, allocations: 86.12 kB / 0.958 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003047/0.5018, allocations: 24.69 kB / 0.958 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001979/0.5037, allocations: 2.163 MB / 0.9602 GB, free: 108 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002521/0.504, allocations: 0.726 MB / 0.9609 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.029e-05/0.5041, allocations: 14.55 kB / 0.9609 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.76e-05/0.5042, allocations: 53.22 kB / 0.9609 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of SimCode: time 2.5e-07/0.5042, allocations: 0 / 0.9609 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4046/0.9087, allocations: 3.227 MB / 0.9641 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002136/0.909, allocations: 206.8 kB / 0.9643 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.77/2.679, allocations: 0 / 0.9643 GB, free: 13.54 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches