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: 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.001149/0.001149, allocations: 102.9 kB / 16.35 MB, free: 5.879 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.001084/0.001084, allocations: 192.6 kB / 17.29 MB, free: 5.52 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.401/1.401, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.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.306/2.306, allocations: 390.3 MB / 0.6655 GB, free: 0.5234 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 65.09 kB / 0.814 GB, free: 32.67 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.3252, allocations: 140.4 MB / 0.9511 GB, free: 7.988 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative): time 0.002895/0.3281, allocations: 1.055 MB / 0.9522 GB, free: 6.934 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001804/0.3299, allocations: 0.9948 MB / 0.9531 GB, free: 5.926 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002174/0.3302, allocations: 0 / 0.9531 GB, free: 5.926 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001822/0.3304, allocations: 23.69 kB / 0.9532 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001255/0.3306, allocations: 23.78 kB / 0.9532 GB, free: 5.879 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004386/0.331, allocations: 71.8 kB / 0.9532 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003535/0.3314, allocations: 171.6 kB / 0.9534 GB, free: 5.641 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002534/0.3317, allocations: 66.53 kB / 0.9535 GB, free: 5.57 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001924/0.3319, allocations: 67.77 kB / 0.9535 GB, free: 5.504 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001738/0.332, allocations: 83.61 kB / 0.9536 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.461e-05/0.3321, allocations: 16 kB / 0.9536 GB, free: 5.406 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 3.666e-05/0.3321, allocations: 16 kB / 0.9537 GB, free: 5.391 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.64e-05/0.3322, allocations: 31.91 kB / 0.9537 GB, free: 5.359 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001188/0.3323, allocations: 79.53 kB / 0.9538 GB, free: 5.281 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003093/0.3326, allocations: 179.3 kB / 0.9539 GB, free: 5.105 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.3327, allocations: 0 / 0.9539 GB, free: 5.105 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.044e-06/0.3327, allocations: 0 / 0.9539 GB, free: 5.105 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.052e-05/0.3327, allocations: 0 / 0.9539 GB, free: 5.105 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.001061/0.3338, allocations: 471.1 kB / 0.9544 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.3338, allocations: 12.03 kB / 0.9544 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.455e-05/0.3339, allocations: 20.69 kB / 0.9544 GB, free: 4.559 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003555/0.3343, allocations: 217.9 kB / 0.9546 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.373e-05/0.3343, allocations: 8.656 kB / 0.9546 GB, free: 4.301 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.868e-05/0.3343, allocations: 24.3 kB / 0.9546 GB, free: 4.277 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003596/0.3347, allocations: 148.4 kB / 0.9548 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.3347, allocations: 192 / 0.9548 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.366e-05/0.3348, allocations: 7.938 kB / 0.9548 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.3348, allocations: 4 kB / 0.9548 GB, free: 4.117 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002838/0.3351, allocations: 100.8 kB / 0.9549 GB, free: 4.02 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001132/0.3362, allocations: 0.5314 MB / 0.9554 GB, free: 3.438 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004052/0.3366, allocations: 138.7 kB / 0.9555 GB, free: 3.293 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001788/0.3368, allocations: 88.75 kB / 0.9556 GB, free: 3.203 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.635e-05/0.3369, allocations: 4 kB / 0.9556 GB, free: 3.199 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002329/0.3371, allocations: 127.2 kB / 0.9558 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=19): time 1.432e-06/0.3371, allocations: 0 / 0.9558 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19): time 0.0005704/0.3377, allocations: 227.4 kB / 0.956 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.3377, allocations: 55.41 kB / 0.956 GB, free: 2.77 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.3379, allocations: 159.3 kB / 0.9562 GB, free: 2.609 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.15e-05/0.3379, allocations: 33.7 kB / 0.9562 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.949e-05/0.338, allocations: 112.4 kB / 0.9563 GB, free: 2.457 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.786e-05/0.3381, allocations: 67.03 kB / 0.9564 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.105e-05/0.3382, allocations: 41.7 kB / 0.9564 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001471/0.3383, allocations: 322.8 kB / 0.9567 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002/0.3385, allocations: 75.95 kB / 0.9568 GB, free: 1.945 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002055/0.3387, allocations: 85.67 kB / 0.9569 GB, free: 1.855 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000333/0.3391, allocations: 151.6 kB / 0.957 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3391, allocations: 4 kB / 0.957 GB, free: 1.699 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.00046/0.3396, allocations: 205.4 kB / 0.9572 GB, free: 1.492 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.3396, allocations: 8 kB / 0.9572 GB, free: 1.484 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.3396, allocations: 0 / 0.9572 GB, free: 1.484 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.3396, allocations: 0 / 0.9572 GB, free: 1.484 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001977/0.3398, allocations: 47.91 kB / 0.9573 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.752e-06/0.3398, allocations: 0 / 0.9573 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.34, allocations: 27.86 kB / 0.9573 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/0.34, allocations: 8 kB / 0.9573 GB, free: 1.402 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.0001146/0.3401, allocations: 125.7 kB / 0.9574 GB, free: 1.27 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.523e-05/0.3402, allocations: 19.81 kB / 0.9575 GB, free: 1.25 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004012/0.3406, allocations: 186.7 kB / 0.9576 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.3406, allocations: 8 kB / 0.9576 GB, free: 1.059 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.3406, allocations: 0 / 0.9576 GB, free: 1.059 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.3406, allocations: 3.984 kB / 0.9576 GB, free: 1.055 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008483/0.3415, allocations: 0.5772 MB / 0.9582 GB, free: 412 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.3415, allocations: 0 / 0.9582 GB, free: 412 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001723/0.3416, allocations: 39.92 kB / 0.9582 GB, free: 372 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.3417, allocations: 4 kB / 0.9583 GB, free: 368 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.092e-05/0.3417, allocations: 7.984 kB / 0.9583 GB, free: 360 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.3417, allocations: 7.875 kB / 0.9583 GB, free: 352 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.3417, allocations: 4 kB / 0.9583 GB, free: 348 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005911/0.3423, allocations: 384.4 kB / 0.9586 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.621e-05/0.3424, allocations: 100.9 kB / 0.9587 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.108e-05/0.3424, allocations: 11.94 kB / 0.9587 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001477/0.3426, allocations: 11.98 kB / 0.9588 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.606e-05/0.3426, allocations: 23.91 kB / 0.9588 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.759e-05/0.3427, allocations: 12 kB / 0.9588 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 8.68e-05/0.3428, allocations: 111.2 kB / 0.9589 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2e-07/0.3428, allocations: 0 / 0.9589 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002825/0.3431, allocations: 36 kB / 0.9589 GB, free: 15.61 MB / 0.7481 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.000183/0.3432, allocations: 111.2 kB / 0.959 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004238/0.3437, allocations: 167.8 kB / 0.9592 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3437, allocations: 0 / 0.9592 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002236/0.3439, allocations: 88.22 kB / 0.9593 GB, free: 15.24 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003635/0.3443, allocations: 37.89 kB / 0.9593 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007314/0.345, allocations: 358.1 kB / 0.9597 GB, free: 14.81 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003242/0.3454, allocations: 0.7281 MB / 0.9604 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 7.293e-05/0.3455, allocations: 17.42 kB / 0.9604 GB, free: 14.04 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.658e-05/0.3455, allocations: 19.44 kB / 0.9604 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of SimCode: time 4.41e-07/0.3455, allocations: 0 / 0.9604 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of Templates: time 0.005024/0.3506, allocations: 1.746 MB / 0.9621 GB, free: 12.28 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 -s gbode -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