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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001314/0.001314, allocations: 100.1 kB / 15.88 MB, free: 12 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.002095/0.002095, allocations: 196 kB / 16.79 MB, free: 6.809 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.384/1.384, allocations: 222.9 MB / 240.5 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.764/2.764, allocations: 461.8 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 66.48 kB / 0.8991 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3444/0.3457, allocations: 157.4 MB / 1.053 GB, free: 8.289 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.003214/0.349, allocations: 1.107 MB / 1.054 GB, free: 7.176 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002037/0.3511, allocations: 0.9987 MB / 1.055 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002184/0.3513, allocations: 4 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001753/0.3516, allocations: 11.86 kB / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.737e-05/0.3517, allocations: 19.86 kB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003471/0.3521, allocations: 51.95 kB / 1.055 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002307/0.3523, allocations: 168 kB / 1.055 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002105/0.3525, allocations: 80.03 kB / 1.055 GB, free: 5.836 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001307/0.3526, allocations: 63.72 kB / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001267/0.3528, allocations: 75.61 kB / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.835e-05/0.3528, allocations: 12 kB / 1.055 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.454e-05/0.3529, allocations: 8 kB / 1.055 GB, free: 5.68 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.595e-05/0.3529, allocations: 35.89 kB / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.462e-05/0.353, allocations: 71.53 kB / 1.055 GB, free: 5.574 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001695/0.3532, allocations: 135.9 kB / 1.056 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.3532, allocations: 0 / 1.056 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3532, allocations: 0 / 1.056 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.823e-06/0.3532, allocations: 3.938 kB / 1.056 GB, free: 5.438 MB / 0.8106 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.0009502/0.3542, allocations: 478.8 kB / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.3542, allocations: 8.031 kB / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.208e-05/0.3543, allocations: 32.66 kB / 1.056 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003107/0.3546, allocations: 216.6 kB / 1.056 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.783e-05/0.3547, allocations: 12.38 kB / 1.056 GB, free: 4.617 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.706e-05/0.3547, allocations: 16.38 kB / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003898/0.3551, allocations: 157.5 kB / 1.056 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.3551, allocations: 0 / 1.056 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.076e-05/0.3552, allocations: 4 kB / 1.056 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.3552, allocations: 4 kB / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003013/0.3555, allocations: 111.9 kB / 1.057 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001371/0.3568, allocations: 0.5351 MB / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004436/0.3573, allocations: 142.7 kB / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002038/0.3575, allocations: 90 kB / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.186e-05/0.3576, allocations: 3.938 kB / 1.057 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002749/0.3578, allocations: 119.3 kB / 1.057 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=19): time 1.773e-06/0.3579, allocations: 0 / 1.057 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of matching and sorting (n=19): time 0.0005756/0.3584, allocations: 227.9 kB / 1.058 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.126e-05/0.3585, allocations: 55.41 kB / 1.058 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001575/0.3587, allocations: 160.2 kB / 1.058 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.647e-05/0.3587, allocations: 33.7 kB / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.659e-05/0.3588, allocations: 116.4 kB / 1.058 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.043e-05/0.3589, allocations: 63.09 kB / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.282e-05/0.3589, allocations: 41.7 kB / 1.058 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001426/0.3591, allocations: 334.8 kB / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002029/0.3593, allocations: 59.97 kB / 1.058 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002276/0.3595, allocations: 96.3 kB / 1.059 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003409/0.3599, allocations: 152.2 kB / 1.059 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3599, allocations: 0 / 1.059 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005017/0.3604, allocations: 211.2 kB / 1.059 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.3604, allocations: 4 kB / 1.059 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.3604, allocations: 0 / 1.059 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.3605, allocations: 0 / 1.059 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001979/0.3607, allocations: 43.91 kB / 1.059 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.3607, allocations: 4.016 kB / 1.059 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001565/0.3608, allocations: 31.83 kB / 1.059 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.92e-05/0.3609, allocations: 15.92 kB / 1.059 GB, free: 1.688 MB / 0.8106 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.0001215/0.361, allocations: 129.7 kB / 1.059 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.569e-05/0.361, allocations: 11.81 kB / 1.059 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000427/0.3615, allocations: 198.7 kB / 1.059 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.3615, allocations: 0 / 1.059 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.3615, allocations: 0 / 1.059 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.3615, allocations: 0 / 1.059 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008622/0.3624, allocations: 0.5811 MB / 1.06 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.3624, allocations: 3.984 kB / 1.06 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001836/0.3626, allocations: 39.92 kB / 1.06 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.416e-06/0.3626, allocations: 7.938 kB / 1.06 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.803e-05/0.3626, allocations: 0 / 1.06 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.6e-06/0.3626, allocations: 4 kB / 1.06 GB, free: 0.6289 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.3626, allocations: 7.938 kB / 1.06 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006322/0.3633, allocations: 385.9 kB / 1.06 GB, free: 216 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.01e-05/0.3633, allocations: 100.8 kB / 1.06 GB, free: 96 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.043e-05/0.3634, allocations: 8 kB / 1.06 GB, free: 88 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.3636, allocations: 16.02 kB / 1.06 GB, free: 72 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.131e-05/0.3636, allocations: 19.92 kB / 1.06 GB, free: 52 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.822e-05/0.3637, allocations: 11.98 kB / 1.06 GB, free: 40 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001118/0.3638, allocations: 120.8 kB / 1.061 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3638, allocations: 0 / 1.061 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002836/0.3641, allocations: 36 kB / 1.061 GB, free: 15.89 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.0001865/0.3643, allocations: 103.2 kB / 1.061 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004468/0.3647, allocations: 159.7 kB / 1.061 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.485e-05/0.3647, allocations: 4.062 kB / 1.061 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001888/0.3649, allocations: 87.89 kB / 1.061 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003657/0.3653, allocations: 25.7 kB / 1.061 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008145/0.3661, allocations: 464 kB / 1.061 GB, free: 15 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003446/0.3665, allocations: 0.7246 MB / 1.062 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.024e-05/0.3666, allocations: 15.44 kB / 1.062 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of SimCode: time 4.11e-07/0.3666, allocations: 11.94 kB / 1.062 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of Templates: time 0.004353/0.3709, allocations: 1.937 MB / 1.064 GB, free: 12.29 MB / 0.8262 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/jenkins1/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