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.0008955/0.0008957, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 181.4 kB / 16.92 MB, free: 6.711 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.434/1.434, allocations: 223.3 MB / 241 MB, free: 5.336 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.513/2.513, allocations: 390.9 MB / 0.667 GB, free: 2.398 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003977/0.000398, allocations: 8 kB / 0.8167 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6845/0.6849, allocations: 142.4 MB / 0.9557 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative): time 0.001231/0.6862, allocations: 0.7448 MB / 0.9565 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00116/0.6874, allocations: 0.9925 MB / 0.9574 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001279/0.6876, allocations: 3.344 kB / 0.9574 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001173/0.6877, allocations: 7.875 kB / 0.9574 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.19e-05/0.6877, allocations: 17.2 kB / 0.9575 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002777/0.688, allocations: 60.47 kB / 0.9575 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001651/0.6882, allocations: 156.1 kB / 0.9577 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001696/0.6884, allocations: 76.94 kB / 0.9577 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.125e-05/0.6885, allocations: 58.42 kB / 0.9578 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.979e-05/0.6886, allocations: 58.55 kB / 0.9578 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.538e-05/0.6886, allocations: 5.719 kB / 0.9579 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.836e-05/0.6886, allocations: 5.438 kB / 0.9579 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.268e-05/0.6887, allocations: 25.14 kB / 0.9579 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.134e-05/0.6887, allocations: 81.88 kB / 0.958 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001228/0.6889, allocations: 129 kB / 0.9581 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.6889, allocations: 0 / 0.9581 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.016e-06/0.6889, allocations: 0 / 0.9581 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.24e-06/0.6889, allocations: 1.031 kB / 0.9581 GB, free: 5.887 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.0006971/0.6896, allocations: 459.1 kB / 0.9585 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.6896, allocations: 9.781 kB / 0.9585 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.383e-05/0.6897, allocations: 17.31 kB / 0.9585 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001965/0.6899, allocations: 220.3 kB / 0.9588 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/0.6899, allocations: 10.84 kB / 0.9588 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.114e-05/0.69, allocations: 18.81 kB / 0.9588 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003052/0.6903, allocations: 153.1 kB / 0.9589 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.6903, allocations: 192 / 0.9589 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/0.6903, allocations: 9.75 kB / 0.9589 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.6903, allocations: 1.781 kB / 0.9589 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002774/0.6906, allocations: 120.1 kB / 0.9591 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.6916, allocations: 0.5371 MB / 0.9596 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003809/0.692, allocations: 142.9 kB / 0.9597 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001775/0.6922, allocations: 91.34 kB / 0.9598 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.066e-05/0.6923, allocations: 2.906 kB / 0.9598 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002748/0.6926, allocations: 139.6 kB / 0.9599 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=19): time 1.683e-06/0.6926, allocations: 0 / 0.9599 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19): time 0.0005572/0.6931, allocations: 236.3 kB / 0.9602 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.597e-05/0.6932, allocations: 54.16 kB / 0.9602 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.6933, allocations: 157.2 kB / 0.9604 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.1e-05/0.6933, allocations: 31.06 kB / 0.9604 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.108e-05/0.6934, allocations: 119.2 kB / 0.9605 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.705e-05/0.6934, allocations: 57.98 kB / 0.9606 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.489e-05/0.6935, allocations: 32.52 kB / 0.9606 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.917e-05/0.6935, allocations: 327 kB / 0.9609 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001973/0.6937, allocations: 70.45 kB / 0.961 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001983/0.6939, allocations: 93.08 kB / 0.9611 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003341/0.6943, allocations: 158.8 kB / 0.9612 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.6943, allocations: 1.375 kB / 0.9612 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004719/0.6948, allocations: 225.8 kB / 0.9614 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.6948, allocations: 9.094 kB / 0.9614 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.6948, allocations: 0 / 0.9614 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.6948, allocations: 2.125 kB / 0.9614 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002078/0.695, allocations: 47.62 kB / 0.9615 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.6951, allocations: 2.281 kB / 0.9615 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001487/0.6952, allocations: 33.39 kB / 0.9615 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.6952, allocations: 5 kB / 0.9615 GB, free: 3.141 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 8.615e-05/0.6953, allocations: 128.7 kB / 0.9616 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.467e-05/0.6954, allocations: 15.66 kB / 0.9617 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004207/0.6958, allocations: 210.4 kB / 0.9619 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.6958, allocations: 2.062 kB / 0.9619 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.6958, allocations: 1 kB / 0.9619 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.6958, allocations: 0 / 0.9619 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007786/0.6966, allocations: 0.5974 MB / 0.9625 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-06/0.6966, allocations: 1.688 kB / 0.9625 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001828/0.6968, allocations: 40.95 kB / 0.9625 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.981e-06/0.6968, allocations: 2.531 kB / 0.9625 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.6968, allocations: 7.984 kB / 0.9625 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.6969, allocations: 6.5 kB / 0.9625 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.6969, allocations: 1.312 kB / 0.9625 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005688/0.6974, allocations: 402.2 kB / 0.9629 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.428e-05/0.6975, allocations: 90.7 kB / 0.963 GB, free: 1.938 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.114e-05/0.6975, allocations: 24.47 kB / 0.963 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.6977, allocations: 24.38 kB / 0.963 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.79e-05/0.6978, allocations: 21.28 kB / 0.963 GB, free: 1.895 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.6978, allocations: 6.531 kB / 0.9631 GB, free: 1.895 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.347e-05/0.6979, allocations: 118.2 kB / 0.9632 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6979, allocations: 0.9062 kB / 0.9632 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002835/0.6982, allocations: 35.06 kB / 0.9632 GB, free: 1.789 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.0001558/0.6983, allocations: 114.2 kB / 0.9633 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004547/0.6988, allocations: 166 kB / 0.9635 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.6988, allocations: 1.188 kB / 0.9635 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002002/0.699, allocations: 94.08 kB / 0.9636 GB, free: 1.586 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003775/0.6994, allocations: 27.64 kB / 0.9636 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005955/0.7, allocations: 461.1 kB / 0.964 GB, free: 1.172 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001701/0.7002, allocations: 0.7184 MB / 0.9647 GB, free: 472 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.514e-05/0.7002, allocations: 22.77 kB / 0.9647 GB, free: 460 kB / 0.7169 GB Notification: Performance of SimCode: time 4.2e-07/0.7002, allocations: 0 / 0.9647 GB, free: 460 kB / 0.7169 GB Notification: Performance of Templates: time 0.00386/0.7041, allocations: 1.894 MB / 0.9666 GB, free: 15.48 MB / 0.7325 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