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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 105.7 kB / 16.27 MB, free: 5.953 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.001327/0.001327, allocations: 190.2 kB / 17.2 MB, free: 5.586 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.367/1.367, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.219/2.219, allocations: 390.2 MB / 0.6653 GB, free: 0.7578 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 72.09 kB / 0.8132 GB, free: 33.06 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2978, allocations: 140.4 MB / 0.9503 GB, free: 8.926 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative): time 0.002361/0.3002, allocations: 1.044 MB / 0.9513 GB, free: 7.875 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001268/0.3015, allocations: 0.9986 MB / 0.9523 GB, free: 6.863 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/0.3016, allocations: 4 kB / 0.9523 GB, free: 6.859 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001371/0.3018, allocations: 19.73 kB / 0.9523 GB, free: 6.84 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.087e-05/0.3018, allocations: 19.8 kB / 0.9523 GB, free: 6.82 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000271/0.3021, allocations: 71.73 kB / 0.9524 GB, free: 6.754 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000194/0.3023, allocations: 175.6 kB / 0.9526 GB, free: 6.582 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001824/0.3025, allocations: 70.3 kB / 0.9526 GB, free: 6.512 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 9.961e-05/0.3026, allocations: 67.78 kB / 0.9527 GB, free: 6.445 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000128/0.3028, allocations: 75.61 kB / 0.9528 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.561e-05/0.3028, allocations: 16 kB / 0.9528 GB, free: 6.355 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 2.852e-05/0.3028, allocations: 16 kB / 0.9528 GB, free: 6.34 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.023e-05/0.3029, allocations: 39.91 kB / 0.9528 GB, free: 6.301 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.281e-05/0.303, allocations: 79.52 kB / 0.9529 GB, free: 6.223 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002049/0.3032, allocations: 159.8 kB / 0.9531 GB, free: 6.066 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.3032, allocations: 4 kB / 0.9531 GB, free: 6.062 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.383e-06/0.3032, allocations: 0 / 0.9531 GB, free: 6.062 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.3032, allocations: 4 kB / 0.9531 GB, free: 6.059 MB / 0.7325 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.0008329/0.3041, allocations: 475.1 kB / 0.9535 GB, free: 5.539 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.3041, allocations: 8.031 kB / 0.9535 GB, free: 5.531 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.615e-05/0.3042, allocations: 24.69 kB / 0.9535 GB, free: 5.508 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002654/0.3045, allocations: 217.2 kB / 0.9538 GB, free: 5.258 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.082e-05/0.3045, allocations: 12.66 kB / 0.9538 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.832e-05/0.3045, allocations: 20.31 kB / 0.9538 GB, free: 5.227 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003355/0.3049, allocations: 144.4 kB / 0.9539 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.3049, allocations: 192 / 0.9539 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.315e-05/0.3049, allocations: 11.94 kB / 0.9539 GB, free: 5.07 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-06/0.3049, allocations: 4 kB / 0.9539 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002888/0.3052, allocations: 104.8 kB / 0.954 GB, free: 4.965 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001111/0.3063, allocations: 0.5353 MB / 0.9546 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000414/0.3068, allocations: 146.6 kB / 0.9547 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001793/0.307, allocations: 84.81 kB / 0.9548 GB, free: 4.141 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.307, allocations: 0 / 0.9548 GB, free: 4.141 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000302/0.3073, allocations: 129 kB / 0.9549 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=19): time 1.944e-06/0.3073, allocations: 0 / 0.9549 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19): time 0.0005968/0.3079, allocations: 231.4 kB / 0.9551 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.233e-05/0.308, allocations: 55.41 kB / 0.9552 GB, free: 3.707 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001465/0.3081, allocations: 155.3 kB / 0.9553 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.796e-05/0.3082, allocations: 29.7 kB / 0.9554 GB, free: 3.512 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.669e-05/0.3082, allocations: 116.4 kB / 0.9555 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.844e-05/0.3083, allocations: 63.09 kB / 0.9555 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.881e-05/0.3084, allocations: 37.7 kB / 0.9556 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.3085, allocations: 330.8 kB / 0.9559 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000222/0.3088, allocations: 67.95 kB / 0.9559 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002455/0.309, allocations: 87.3 kB / 0.956 GB, free: 2.801 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003566/0.3094, allocations: 148.5 kB / 0.9562 GB, free: 2.652 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3094, allocations: 0 / 0.9562 GB, free: 2.652 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005176/0.3099, allocations: 209.4 kB / 0.9564 GB, free: 2.441 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.3099, allocations: 4 kB / 0.9564 GB, free: 2.438 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.31, allocations: 3.984 kB / 0.9564 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.31, allocations: 4 kB / 0.9564 GB, free: 2.43 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001957/0.3102, allocations: 35.92 kB / 0.9564 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.3102, allocations: 8.031 kB / 0.9564 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001438/0.3103, allocations: 27.81 kB / 0.9564 GB, free: 2.359 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.677e-05/0.3104, allocations: 8 kB / 0.9565 GB, free: 2.352 MB / 0.7325 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.0001304/0.3105, allocations: 129.7 kB / 0.9566 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.613e-05/0.3105, allocations: 15.81 kB / 0.9566 GB, free: 2.199 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004274/0.311, allocations: 194.7 kB / 0.9568 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.311, allocations: 4 kB / 0.9568 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.311, allocations: 0 / 0.9568 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.311, allocations: 0 / 0.9568 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008418/0.3118, allocations: 0.5888 MB / 0.9574 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.3119, allocations: 3.984 kB / 0.9574 GB, free: 1.336 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001852/0.3121, allocations: 35.92 kB / 0.9574 GB, free: 1.301 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.3121, allocations: 4 kB / 0.9574 GB, free: 1.297 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.3121, allocations: 4 kB / 0.9574 GB, free: 1.293 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.3121, allocations: 7.938 kB / 0.9574 GB, free: 1.285 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.74e-06/0.3121, allocations: 12.19 kB / 0.9574 GB, free: 1.273 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006004/0.3127, allocations: 384 kB / 0.9578 GB, free: 0.8672 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.685e-05/0.3128, allocations: 100.9 kB / 0.9579 GB, free: 0.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.204e-05/0.3128, allocations: 7.938 kB / 0.9579 GB, free: 0.7422 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001595/0.313, allocations: 20.02 kB / 0.9579 GB, free: 0.7227 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.102e-05/0.3131, allocations: 19.92 kB / 0.9579 GB, free: 0.7031 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-05/0.3131, allocations: 11.98 kB / 0.9579 GB, free: 0.6914 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.902e-05/0.3132, allocations: 115.3 kB / 0.9581 GB, free: 0.5781 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3132, allocations: 0 / 0.9581 GB, free: 0.5781 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002696/0.3135, allocations: 28 kB / 0.9581 GB, free: 0.5508 MB / 0.7325 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.0001663/0.3136, allocations: 115.2 kB / 0.9582 GB, free: 436 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004462/0.3141, allocations: 167.8 kB / 0.9583 GB, free: 268 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3141, allocations: 4.062 kB / 0.9584 GB, free: 264 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001937/0.3143, allocations: 87.83 kB / 0.9584 GB, free: 176 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003392/0.3147, allocations: 27.92 kB / 0.9585 GB, free: 148 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006983/0.3154, allocations: 392.1 kB / 0.9588 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003326/0.3157, allocations: 0.7203 MB / 0.9595 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.934e-05/0.3158, allocations: 23.42 kB / 0.9596 GB, free: 14.94 MB / 0.7481 GB Notification: Performance of SimCode: time 2.7e-07/0.3158, allocations: 4 kB / 0.9596 GB, free: 14.93 MB / 0.7481 GB Notification: Performance of Templates: time 0.003897/0.3197, allocations: 1.909 MB / 0.9614 GB, free: 13.02 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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