Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Reals.Validation.Derivative,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001393/0.001399, allocations: 108 kB / 15.61 MB, free: 152 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.001576/0.001576, allocations: 194.4 kB / 16.53 MB, free: 6.664 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.501/1.501, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.23/3.23, allocations: 472.6 MB / 0.7451 GB, free: 4.688 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 69.19 kB / 0.912 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3654/0.3667, allocations: 159.9 MB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.00318/0.37, allocations: 1.06 MB / 1.069 GB, free: 9.309 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001469/0.3715, allocations: 0.9986 MB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001416/0.3716, allocations: 4 kB / 1.07 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001471/0.3718, allocations: 23.73 kB / 1.07 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.985e-05/0.3718, allocations: 15.81 kB / 1.07 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002863/0.3721, allocations: 71.84 kB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002231/0.3724, allocations: 180 kB / 1.07 GB, free: 8.008 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000229/0.3726, allocations: 84.03 kB / 1.071 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001162/0.3727, allocations: 67.72 kB / 1.071 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.3729, allocations: 79.61 kB / 1.071 GB, free: 7.773 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.734e-05/0.3729, allocations: 16 kB / 1.071 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.901e-05/0.3729, allocations: 16 kB / 1.071 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.369e-05/0.373, allocations: 43.83 kB / 1.071 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.434e-05/0.3731, allocations: 71.59 kB / 1.071 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002263/0.3733, allocations: 187.6 kB / 1.071 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3733, allocations: 0 / 1.071 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.003e-06/0.3733, allocations: 0 / 1.071 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.025e-06/0.3733, allocations: 0 / 1.071 GB, free: 7.445 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0009309/0.3743, allocations: 478.8 kB / 1.071 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.3743, allocations: 8.031 kB / 1.071 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.965e-05/0.3744, allocations: 28.69 kB / 1.072 GB, free: 6.891 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003171/0.3747, allocations: 217.5 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.3748, allocations: 12.38 kB / 1.072 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.24e-05/0.3748, allocations: 16.38 kB / 1.072 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003594/0.3752, allocations: 157.5 kB / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.3752, allocations: 0 / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.355e-05/0.3752, allocations: 4 kB / 1.072 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.3752, allocations: 4 kB / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002942/0.3755, allocations: 115.9 kB / 1.072 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001152/0.3767, allocations: 0.5352 MB / 1.073 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004141/0.3771, allocations: 134.7 kB / 1.073 GB, free: 5.605 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/0.3773, allocations: 88.8 kB / 1.073 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.72e-05/0.3773, allocations: 7.938 kB / 1.073 GB, free: 5.508 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002949/0.3776, allocations: 121.7 kB / 1.073 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=19): time 1.483e-06/0.3777, allocations: 0 / 1.073 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.0005581/0.3782, allocations: 225.4 kB / 1.073 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.558e-05/0.3783, allocations: 55.41 kB / 1.073 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.3784, allocations: 155.3 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.622e-05/0.3784, allocations: 33.7 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.999e-05/0.3786, allocations: 124.4 kB / 1.073 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.301e-05/0.3786, allocations: 59.09 kB / 1.074 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.964e-05/0.3787, allocations: 41.7 kB / 1.074 GB, free: 4.656 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001468/0.3788, allocations: 330.8 kB / 1.074 GB, free: 4.324 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.3791, allocations: 63.95 kB / 1.074 GB, free: 4.262 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002032/0.3793, allocations: 85.67 kB / 1.074 GB, free: 4.172 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003269/0.3796, allocations: 156.1 kB / 1.074 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3796, allocations: 0 / 1.074 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004693/0.3801, allocations: 213.4 kB / 1.074 GB, free: 3.801 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.3801, allocations: 5.719 kB / 1.074 GB, free: 3.797 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.3801, allocations: 4 kB / 1.074 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.3801, allocations: 4 kB / 1.074 GB, free: 3.789 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001981/0.3804, allocations: 35.92 kB / 1.074 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.3804, allocations: 4.031 kB / 1.074 GB, free: 3.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001359/0.3805, allocations: 31.81 kB / 1.074 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.481e-05/0.3805, allocations: 8 kB / 1.074 GB, free: 3.711 MB / 0.8262 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.000133/0.3807, allocations: 131.5 kB / 1.075 GB, free: 3.574 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.426e-05/0.3807, allocations: 11.91 kB / 1.075 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004494/0.3812, allocations: 204.1 kB / 1.075 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.3812, allocations: 0 / 1.075 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.3812, allocations: 0 / 1.075 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.3812, allocations: 4 kB / 1.075 GB, free: 3.352 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008333/0.382, allocations: 0.5812 MB / 1.075 GB, free: 2.695 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.382, allocations: 0 / 1.075 GB, free: 2.695 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001695/0.3822, allocations: 39.92 kB / 1.075 GB, free: 2.656 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.879e-06/0.3822, allocations: 7.938 kB / 1.075 GB, free: 2.648 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.185e-05/0.3823, allocations: 7.984 kB / 1.075 GB, free: 2.641 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.3823, allocations: 0 / 1.075 GB, free: 2.641 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.3823, allocations: 7.938 kB / 1.075 GB, free: 2.633 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006249/0.3829, allocations: 389.4 kB / 1.076 GB, free: 2.223 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.704e-05/0.383, allocations: 100.8 kB / 1.076 GB, free: 2.105 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.222e-05/0.383, allocations: 8 kB / 1.076 GB, free: 2.098 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001567/0.3832, allocations: 11.98 kB / 1.076 GB, free: 2.086 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.13e-05/0.3833, allocations: 23.91 kB / 1.076 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.465e-05/0.3833, allocations: 8 kB / 1.076 GB, free: 2.055 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.052e-05/0.3834, allocations: 124.1 kB / 1.076 GB, free: 1.934 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3834, allocations: 0 / 1.076 GB, free: 1.934 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002792/0.3837, allocations: 35.91 kB / 1.076 GB, free: 1.898 MB / 0.8262 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.000207/0.3839, allocations: 104.6 kB / 1.076 GB, free: 1.789 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004625/0.3844, allocations: 171.7 kB / 1.076 GB, free: 1.621 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/0.3844, allocations: 4.062 kB / 1.076 GB, free: 1.617 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001914/0.3846, allocations: 83.84 kB / 1.076 GB, free: 1.535 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003419/0.3849, allocations: 23.98 kB / 1.076 GB, free: 1.512 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006574/0.3856, allocations: 383.2 kB / 1.077 GB, free: 1.094 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002646/0.3859, allocations: 0.7282 MB / 1.078 GB, free: 344 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.092e-05/0.3859, allocations: 17.52 kB / 1.078 GB, free: 328 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.517e-05/0.386, allocations: 23.42 kB / 1.078 GB, free: 304 kB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.386, allocations: 0 / 1.078 GB, free: 304 kB / 0.8262 GB Notification: Performance of Templates: time 0.004832/0.3909, allocations: 1.759 MB / 1.079 GB, free: 14.55 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches