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.001137/0.001138, allocations: 105.1 kB / 15.98 MB, free: 6.355 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.001229/0.001229, allocations: 192.5 kB / 16.91 MB, free: 6.191 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.354/1.354, allocations: 222.9 MB / 240.6 MB, free: 15.43 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.27/2.27, allocations: 390.2 MB / 0.665 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 66.16 kB / 0.8127 GB, free: 33.26 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.361/0.363, allocations: 140.4 MB / 0.9498 GB, free: 9.266 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative): time 0.003197/0.3662, allocations: 1.108 MB / 0.9509 GB, free: 8.152 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001682/0.3679, allocations: 0.9908 MB / 0.9518 GB, free: 7.148 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001907/0.3682, allocations: 0 / 0.9518 GB, free: 7.148 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001713/0.3683, allocations: 15.88 kB / 0.9518 GB, free: 7.133 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001018/0.3685, allocations: 7.922 kB / 0.9519 GB, free: 7.125 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003609/0.3688, allocations: 63.88 kB / 0.9519 GB, free: 7.062 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002506/0.3691, allocations: 167.7 kB / 0.9521 GB, free: 6.898 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002077/0.3693, allocations: 80.17 kB / 0.9522 GB, free: 6.82 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001464/0.3695, allocations: 67.72 kB / 0.9522 GB, free: 6.754 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001277/0.3696, allocations: 83.59 kB / 0.9523 GB, free: 6.672 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.566e-05/0.3697, allocations: 12 kB / 0.9523 GB, free: 6.66 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 2.803e-05/0.3697, allocations: 16 kB / 0.9523 GB, free: 6.645 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.025e-05/0.3697, allocations: 31.92 kB / 0.9524 GB, free: 6.613 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.553e-05/0.3698, allocations: 75.52 kB / 0.9524 GB, free: 6.539 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002069/0.3701, allocations: 132 kB / 0.9526 GB, free: 6.41 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.3701, allocations: 0 / 0.9526 GB, free: 6.41 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.294e-06/0.3701, allocations: 0 / 0.9526 GB, free: 6.41 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.149e-05/0.3701, allocations: 0 / 0.9526 GB, free: 6.41 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.0009415/0.371, allocations: 479 kB / 0.953 GB, free: 5.887 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.3711, allocations: 12.03 kB / 0.953 GB, free: 5.875 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.231e-05/0.3712, allocations: 20.75 kB / 0.953 GB, free: 5.855 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002889/0.3715, allocations: 214.1 kB / 0.9532 GB, free: 5.609 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.926e-05/0.3715, allocations: 16.59 kB / 0.9533 GB, free: 5.594 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.555e-05/0.3716, allocations: 24.36 kB / 0.9533 GB, free: 5.57 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003604/0.3719, allocations: 136.4 kB / 0.9534 GB, free: 5.434 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.3719, allocations: 192 / 0.9534 GB, free: 5.434 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.319e-05/0.372, allocations: 15.94 kB / 0.9534 GB, free: 5.418 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.372, allocations: 4 kB / 0.9534 GB, free: 5.414 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002935/0.3723, allocations: 104.8 kB / 0.9535 GB, free: 5.312 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001235/0.3735, allocations: 0.5276 MB / 0.954 GB, free: 4.734 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004054/0.374, allocations: 138.7 kB / 0.9542 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001865/0.3742, allocations: 84.86 kB / 0.9543 GB, free: 4.504 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.297e-05/0.3742, allocations: 4 kB / 0.9543 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003339/0.3745, allocations: 123.2 kB / 0.9544 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=19): time 1.904e-06/0.3745, allocations: 0 / 0.9544 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19): time 0.0005899/0.3751, allocations: 234.5 kB / 0.9546 GB, free: 4.133 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.232e-05/0.3752, allocations: 55.41 kB / 0.9547 GB, free: 4.066 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001535/0.3754, allocations: 159.2 kB / 0.9548 GB, free: 3.902 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.073e-05/0.3754, allocations: 33.7 kB / 0.9548 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 9.158e-05/0.3755, allocations: 112.4 kB / 0.955 GB, free: 3.75 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.807e-05/0.3756, allocations: 59.11 kB / 0.955 GB, free: 3.691 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.488e-05/0.3756, allocations: 37.7 kB / 0.955 GB, free: 3.648 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001229/0.3758, allocations: 330.8 kB / 0.9554 GB, free: 3.316 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002098/0.376, allocations: 67.97 kB / 0.9554 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002217/0.3762, allocations: 95.22 kB / 0.9555 GB, free: 3.152 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003276/0.3766, allocations: 143.4 kB / 0.9557 GB, free: 3.008 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3766, allocations: 4 kB / 0.9557 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004906/0.3771, allocations: 211.2 kB / 0.9559 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.3771, allocations: 8 kB / 0.9559 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.79e-06/0.3771, allocations: 0 / 0.9559 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.3771, allocations: 0 / 0.9559 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000233/0.3774, allocations: 43.91 kB / 0.9559 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.3774, allocations: 0 / 0.9559 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001504/0.3775, allocations: 27.86 kB / 0.9559 GB, free: 2.715 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.146e-05/0.3776, allocations: 15.97 kB / 0.9559 GB, free: 2.699 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.0001248/0.3777, allocations: 129.7 kB / 0.9561 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.831e-05/0.3777, allocations: 19.81 kB / 0.9561 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004424/0.3782, allocations: 193 kB / 0.9563 GB, free: 2.355 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.3782, allocations: 8 kB / 0.9563 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.3782, allocations: 0 / 0.9563 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.3782, allocations: 0 / 0.9563 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008535/0.3791, allocations: 0.5772 MB / 0.9568 GB, free: 1.695 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.3791, allocations: 4 kB / 0.9569 GB, free: 1.691 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001819/0.3793, allocations: 35.91 kB / 0.9569 GB, free: 1.656 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.196e-06/0.3793, allocations: 4 kB / 0.9569 GB, free: 1.652 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.3793, allocations: 8 kB / 0.9569 GB, free: 1.645 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.3793, allocations: 3.938 kB / 0.9569 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.3793, allocations: 4 kB / 0.9569 GB, free: 1.637 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006208/0.38, allocations: 388.5 kB / 0.9573 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.617e-05/0.38, allocations: 92.86 kB / 0.9574 GB, free: 1.113 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.228e-05/0.3801, allocations: 11.94 kB / 0.9574 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001602/0.3802, allocations: 16.03 kB / 0.9574 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.307e-05/0.3803, allocations: 23.91 kB / 0.9574 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.3803, allocations: 8 kB / 0.9574 GB, free: 1.055 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.519e-05/0.3804, allocations: 115.2 kB / 0.9575 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.8e-07/0.3804, allocations: 4 kB / 0.9575 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002878/0.3807, allocations: 28 kB / 0.9576 GB, free: 0.9102 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.0001859/0.3809, allocations: 115.3 kB / 0.9577 GB, free: 0.7852 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000483/0.3814, allocations: 166.7 kB / 0.9578 GB, free: 0.625 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.3814, allocations: 7.875 kB / 0.9578 GB, free: 0.6172 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001946/0.3816, allocations: 95.89 kB / 0.9579 GB, free: 0.5234 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003664/0.382, allocations: 29.64 kB / 0.958 GB, free: 0.4961 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007562/0.3828, allocations: 448.1 kB / 0.9584 GB, free: 4 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003234/0.3831, allocations: 0.7203 MB / 0.9591 GB, free: 15.26 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.666e-05/0.3832, allocations: 19.44 kB / 0.9591 GB, free: 15.24 MB / 0.7481 GB Notification: Performance of SimCode: time 2.4e-07/0.3832, allocations: 0 / 0.9591 GB, free: 15.24 MB / 0.7481 GB Notification: Performance of Templates: time 0.004469/0.3877, allocations: 1.911 MB / 0.961 GB, free: 13.33 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