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.000883/0.000883, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005162/0.005162, allocations: 171.7 kB / 16.27 MB, free: 6.648 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.23/1.23, allocations: 223.3 MB / 240.3 MB, free: 5.332 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.081/2.081, allocations: 390.9 MB / 0.6664 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003005/0.0003005, allocations: 15.98 kB / 0.8161 GB, free: 13.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5788/0.5791, allocations: 142.4 MB / 0.9552 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative): time 0.0008242/0.5799, allocations: 0.7452 MB / 0.9559 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008925/0.5808, allocations: 0.9853 MB / 0.9569 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.157e-05/0.5809, allocations: 2.062 kB / 0.9569 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.354e-05/0.581, allocations: 13.36 kB / 0.9569 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.336e-05/0.5811, allocations: 13.28 kB / 0.9569 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001801/0.5812, allocations: 67.58 kB / 0.957 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001198/0.5814, allocations: 155.1 kB / 0.9571 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001164/0.5815, allocations: 81.28 kB / 0.9572 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.251e-05/0.5816, allocations: 46.89 kB / 0.9572 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.169e-05/0.5816, allocations: 67.02 kB / 0.9573 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.622e-05/0.5817, allocations: 5.688 kB / 0.9573 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.37e-05/0.5817, allocations: 4.938 kB / 0.9573 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.169e-05/0.5817, allocations: 21.05 kB / 0.9573 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.571e-05/0.5818, allocations: 85.78 kB / 0.9574 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000105/0.5819, allocations: 162.4 kB / 0.9576 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 1.973e-06/0.5819, allocations: 1.594 kB / 0.9576 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.62e-07/0.5819, allocations: 0 / 0.9576 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.888e-06/0.5819, allocations: 0 / 0.9576 GB, free: 5.879 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.0005137/0.5824, allocations: 450.7 kB / 0.958 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.474e-05/0.5824, allocations: 9.812 kB / 0.958 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.391e-05/0.5825, allocations: 51.42 kB / 0.9581 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.434e-05/0.5825, allocations: 17.72 kB / 0.9581 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001535/0.5827, allocations: 220 kB / 0.9583 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.5827, allocations: 15.84 kB / 0.9583 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.698e-05/0.5827, allocations: 19.12 kB / 0.9583 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002482/0.583, allocations: 148 kB / 0.9585 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.572e-06/0.583, allocations: 3.938 kB / 0.9585 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.583, allocations: 13.36 kB / 0.9585 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.9e-06/0.583, allocations: 2.75 kB / 0.9585 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002445/0.5833, allocations: 112.1 kB / 0.9586 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00082/0.5841, allocations: 0.5409 MB / 0.9591 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003059/0.5844, allocations: 146.5 kB / 0.9593 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001539/0.5846, allocations: 84.92 kB / 0.9593 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.2e-05/0.5846, allocations: 9.469 kB / 0.9593 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000218/0.5848, allocations: 134.4 kB / 0.9595 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=19): time 1.343e-06/0.5848, allocations: 0 / 0.9595 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19): time 0.0004602/0.5853, allocations: 245.4 kB / 0.9597 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.659e-05/0.5853, allocations: 54.16 kB / 0.9598 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.223e-05/0.5854, allocations: 153.2 kB / 0.9599 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.5854, allocations: 32.45 kB / 0.9599 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.679e-05/0.5855, allocations: 117.8 kB / 0.9601 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.35e-05/0.5855, allocations: 63.34 kB / 0.9601 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.897e-05/0.5856, allocations: 27.16 kB / 0.9601 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.803e-05/0.5856, allocations: 330.9 kB / 0.9605 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001778/0.5858, allocations: 66.47 kB / 0.9605 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001823/0.586, allocations: 96.45 kB / 0.9606 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002958/0.5863, allocations: 160.2 kB / 0.9608 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.5863, allocations: 0 / 0.9608 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004343/0.5867, allocations: 221.8 kB / 0.961 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.5867, allocations: 5.656 kB / 0.961 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.5868, allocations: 0 / 0.961 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.015e-06/0.5868, allocations: 2.281 kB / 0.961 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001798/0.587, allocations: 48.16 kB / 0.961 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.568e-06/0.587, allocations: 5.312 kB / 0.961 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001346/0.5871, allocations: 34.53 kB / 0.9611 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.199e-05/0.5871, allocations: 4.594 kB / 0.9611 GB, free: 3.078 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.76e-05/0.5872, allocations: 124.7 kB / 0.9612 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.147e-05/0.5872, allocations: 15.03 kB / 0.9612 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003632/0.5876, allocations: 209.8 kB / 0.9614 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.5876, allocations: 3 kB / 0.9614 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.5876, allocations: 0 / 0.9614 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.5876, allocations: 0 / 0.9614 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006352/0.5883, allocations: 0.6011 MB / 0.962 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.5883, allocations: 1.125 kB / 0.962 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001614/0.5884, allocations: 45.25 kB / 0.962 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.5884, allocations: 3.125 kB / 0.962 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.5885, allocations: 10.92 kB / 0.9621 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.5885, allocations: 6.938 kB / 0.9621 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.5885, allocations: 1.281 kB / 0.9621 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004796/0.589, allocations: 404.7 kB / 0.9624 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.606e-05/0.589, allocations: 90.14 kB / 0.9625 GB, free: 1.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.294e-05/0.589, allocations: 11.47 kB / 0.9625 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001507/0.5892, allocations: 21.34 kB / 0.9626 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.754e-05/0.5892, allocations: 21.66 kB / 0.9626 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.5893, allocations: 10.58 kB / 0.9626 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.681e-05/0.5893, allocations: 113.7 kB / 0.9627 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5893, allocations: 4.906 kB / 0.9627 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002498/0.5896, allocations: 39.48 kB / 0.9627 GB, free: 1.727 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.0006309/0.5902, allocations: 0.9335 MB / 0.9637 GB, free: 0.8984 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003532/0.5906, allocations: 175.4 kB / 0.9638 GB, free: 0.8242 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.5906, allocations: 0 / 0.9638 GB, free: 0.8242 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001728/0.5908, allocations: 91.56 kB / 0.9639 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003062/0.5911, allocations: 29.86 kB / 0.9639 GB, free: 0.7734 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00216/0.5933, allocations: 2.187 MB / 0.9661 GB, free: 14.97 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000224/0.5935, allocations: 0.7221 MB / 0.9668 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.836e-05/0.5936, allocations: 14.83 kB / 0.9668 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.977e-05/0.5936, allocations: 53.61 kB / 0.9668 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of SimCode: time 2.31e-07/0.5937, allocations: 0 / 0.9668 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9326/1.526, allocations: 3.146 MB / 0.9699 GB, free: 12.75 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001765/1.526, allocations: 210.1 kB / 0.9701 GB, free: 12.49 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.649/3.176, allocations: 2.109 kB / 0.9701 GB, free: 12.49 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