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.001469/0.001469, 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.001776/0.001776, allocations: 195 kB / 16.14 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.517/1.517, allocations: 222.9 MB / 239.8 MB, free: 4.52 MB / 190.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.554/2.554, allocations: 390.2 MB / 0.6642 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 63.91 kB / 0.8119 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8134/0.8148, allocations: 140.4 MB / 0.9489 GB, free: 9.184 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative): time 0.003437/0.8183, allocations: 1.092 MB / 0.95 GB, free: 8.336 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002171/0.8205, allocations: 0.9949 MB / 0.951 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001565/0.8207, allocations: 3.156 kB / 0.951 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002045/0.8209, allocations: 11.86 kB / 0.951 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.533e-05/0.821, allocations: 17.16 kB / 0.951 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004012/0.8214, allocations: 60.62 kB / 0.9511 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002523/0.8217, allocations: 155 kB / 0.9512 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002272/0.8219, allocations: 81.03 kB / 0.9513 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001282/0.8221, allocations: 62.03 kB / 0.9514 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001221/0.8222, allocations: 76.12 kB / 0.9514 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.012e-05/0.8223, allocations: 9.781 kB / 0.9514 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.962e-05/0.8223, allocations: 9.875 kB / 0.9514 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.368e-05/0.8223, allocations: 28.81 kB / 0.9515 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.475e-05/0.8224, allocations: 70.98 kB / 0.9515 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001972/0.8226, allocations: 160.7 kB / 0.9517 GB, free: 7 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.8226, allocations: 4 kB / 0.9517 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.914e-06/0.8227, allocations: 1.688 kB / 0.9517 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.8227, allocations: 0 / 0.9517 GB, free: 6.996 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.0009214/0.8236, allocations: 472.4 kB / 0.9522 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.8237, allocations: 9.5 kB / 0.9522 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.25e-05/0.8237, allocations: 16.91 kB / 0.9522 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002823/0.824, allocations: 224 kB / 0.9524 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.325e-05/0.8241, allocations: 15.16 kB / 0.9524 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.02e-05/0.8241, allocations: 14.38 kB / 0.9524 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003327/0.8244, allocations: 146.7 kB / 0.9526 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.8245, allocations: 1.938 kB / 0.9526 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.152e-05/0.8245, allocations: 11.88 kB / 0.9526 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.8245, allocations: 3.594 kB / 0.9526 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002967/0.8248, allocations: 105.2 kB / 0.9527 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.8259, allocations: 0.5323 MB / 0.9532 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004072/0.8263, allocations: 133.5 kB / 0.9533 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001884/0.8265, allocations: 93.3 kB / 0.9534 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.635e-05/0.8265, allocations: 10.77 kB / 0.9534 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003404/0.8269, allocations: 121.8 kB / 0.9535 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=19): time 1.693e-06/0.8269, allocations: 0 / 0.9535 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19): time 0.0006139/0.8275, allocations: 228.3 kB / 0.9538 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.046e-05/0.8276, allocations: 61.56 kB / 0.9538 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001417/0.8277, allocations: 153.2 kB / 0.954 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.8277, allocations: 32.48 kB / 0.954 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.788e-05/0.8278, allocations: 110.2 kB / 0.9541 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.88e-05/0.8279, allocations: 66.42 kB / 0.9542 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.032e-05/0.828, allocations: 39.39 kB / 0.9542 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.492e-05/0.828, allocations: 326.3 kB / 0.9545 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002037/0.8283, allocations: 70.61 kB / 0.9546 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000214/0.8285, allocations: 89.78 kB / 0.9547 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003472/0.8288, allocations: 140.3 kB / 0.9548 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.8288, allocations: 1.5 kB / 0.9548 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005082/0.8294, allocations: 215.4 kB / 0.955 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.8294, allocations: 5.562 kB / 0.955 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.8294, allocations: 1.312 kB / 0.955 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/0.8294, allocations: 1.125 kB / 0.955 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002115/0.8296, allocations: 41.44 kB / 0.955 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.8297, allocations: 1.25 kB / 0.9551 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001401/0.8298, allocations: 25.61 kB / 0.9551 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.8298, allocations: 8.906 kB / 0.9551 GB, free: 4.234 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 9.895e-05/0.8299, allocations: 137.1 kB / 0.9552 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.576e-05/0.83, allocations: 14.84 kB / 0.9552 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004271/0.8304, allocations: 183.7 kB / 0.9554 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/0.8304, allocations: 10.22 kB / 0.9554 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.8304, allocations: 4 kB / 0.9554 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.8304, allocations: 0 / 0.9554 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007971/0.8312, allocations: 0.5857 MB / 0.956 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.8313, allocations: 1.438 kB / 0.956 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001734/0.8314, allocations: 42.44 kB / 0.956 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.8315, allocations: 3.188 kB / 0.956 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.958e-05/0.8315, allocations: 7.594 kB / 0.956 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.399e-06/0.8315, allocations: 9.406 kB / 0.9561 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.8315, allocations: 3.312 kB / 0.9561 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005621/0.8321, allocations: 385.4 kB / 0.9564 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.803e-05/0.8321, allocations: 91.05 kB / 0.9565 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.197e-05/0.8321, allocations: 11.66 kB / 0.9565 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001516/0.8323, allocations: 17.45 kB / 0.9565 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.836e-05/0.8324, allocations: 15.91 kB / 0.9566 GB, free: 3 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.8324, allocations: 10.59 kB / 0.9566 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.09e-05/0.8325, allocations: 118 kB / 0.9567 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8325, allocations: 5.5 kB / 0.9567 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002683/0.8327, allocations: 39.97 kB / 0.9567 GB, free: 2.883 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.0001449/0.8329, allocations: 112.8 kB / 0.9568 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004117/0.8333, allocations: 158.7 kB / 0.957 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.8333, allocations: 0 / 0.957 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001814/0.8335, allocations: 88.12 kB / 0.9571 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003507/0.8339, allocations: 25.55 kB / 0.9571 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006154/0.8345, allocations: 413.8 kB / 0.9575 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001689/0.8347, allocations: 0.7228 MB / 0.9582 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.498e-05/0.8348, allocations: 15.05 kB / 0.9582 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.882e-05/0.8348, allocations: 21.06 kB / 0.9582 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.8348, allocations: 3.938 kB / 0.9582 GB, free: 1.578 MB / 0.7169 GB Notification: Performance of Templates: time 0.004652/0.8395, allocations: 1.564 MB / 0.9597 GB, free: 0.8125 MB / 0.7169 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/jenkins/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