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.00108/0.00108, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001426/0.001426, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.527/1.527, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.835/2.835, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004063/0.0004064, allocations: 10.84 kB / 0.9021 GB, free: 36.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4127/0.4132, allocations: 159.6 MB / 1.058 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.001328/0.4145, allocations: 0.7379 MB / 1.059 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001391/0.416, allocations: 0.9754 MB / 1.06 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001505/0.4161, allocations: 4 kB / 1.06 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001221/0.4163, allocations: 11.86 kB / 1.06 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.784e-05/0.4164, allocations: 19.86 kB / 1.06 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002845/0.4166, allocations: 47.94 kB / 1.06 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002015/0.4169, allocations: 156.1 kB / 1.06 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001607/0.417, allocations: 62.53 kB / 1.06 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.4172, allocations: 55.7 kB / 1.06 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000101/0.4173, allocations: 55.7 kB / 1.06 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.823e-05/0.4173, allocations: 8 kB / 1.06 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.782e-05/0.4173, allocations: 4 kB / 1.06 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.275e-05/0.4174, allocations: 23.91 kB / 1.06 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.976e-05/0.4174, allocations: 49.58 kB / 1.06 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001636/0.4176, allocations: 135.9 kB / 1.06 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.4176, allocations: 4 kB / 1.06 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.353e-06/0.4176, allocations: 0 / 1.06 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.4176, allocations: 0 / 1.06 GB, free: 2.906 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.0007986/0.4184, allocations: 458.8 kB / 1.061 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.4185, allocations: 8.031 kB / 1.061 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.732e-05/0.4185, allocations: 19.72 kB / 1.061 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002927/0.4188, allocations: 216.4 kB / 1.061 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.4189, allocations: 15.95 kB / 1.061 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.386e-05/0.4189, allocations: 16 kB / 1.061 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003201/0.4192, allocations: 157.5 kB / 1.061 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.4193, allocations: 0 / 1.061 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.238e-05/0.4193, allocations: 8 kB / 1.061 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.4193, allocations: 4 kB / 1.061 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002762/0.4196, allocations: 115.9 kB / 1.061 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001064/0.4207, allocations: 0.5469 MB / 1.062 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000377/0.421, allocations: 146.7 kB / 1.062 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001692/0.4212, allocations: 88.77 kB / 1.062 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.319e-05/0.4213, allocations: 4 kB / 1.062 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002812/0.4216, allocations: 131.2 kB / 1.062 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=19): time 1.663e-06/0.4216, allocations: 0 / 1.062 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of matching and sorting (n=19): time 0.0005223/0.4221, allocations: 236 kB / 1.062 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.4221, allocations: 51.41 kB / 1.062 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/0.4223, allocations: 167.7 kB / 1.063 GB, free: 372 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.4223, allocations: 29.7 kB / 1.063 GB, free: 336 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.166e-05/0.4224, allocations: 128.4 kB / 1.063 GB, free: 204 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.924e-05/0.4225, allocations: 59.11 kB / 1.063 GB, free: 144 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.012e-05/0.4225, allocations: 7.938 kB / 1.063 GB, free: 136 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001413/0.4226, allocations: 330.8 kB / 1.063 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002018/0.4228, allocations: 71.95 kB / 1.063 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001926/0.423, allocations: 89.86 kB / 1.063 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001993/0.4232, allocations: 83.16 kB / 1.063 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4233, allocations: 0 / 1.063 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004613/0.4237, allocations: 223.4 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.4237, allocations: 4 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.4238, allocations: 0 / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.4238, allocations: 4 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000195/0.424, allocations: 43.97 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.424, allocations: 0 / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001365/0.4241, allocations: 39.81 kB / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.58e-05/0.4242, allocations: 7.984 kB / 1.064 GB, free: 15.24 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,$PRE.lesThr.lesHys.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001087/0.4243, allocations: 133.7 kB / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.294e-05/0.4243, allocations: 11.81 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004087/0.4247, allocations: 210.6 kB / 1.064 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.4247, allocations: 4 kB / 1.064 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.4247, allocations: 4 kB / 1.064 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.4247, allocations: 0 / 1.064 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008014/0.4256, allocations: 0.5968 MB / 1.065 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.4256, allocations: 192 / 1.065 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001667/0.4257, allocations: 39.98 kB / 1.065 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.4258, allocations: 0 / 1.065 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/0.4258, allocations: 8 kB / 1.065 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.324e-06/0.4258, allocations: 11.92 kB / 1.065 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.4258, allocations: 0 / 1.065 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005631/0.4264, allocations: 398 kB / 1.065 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.054e-05/0.4264, allocations: 96.86 kB / 1.065 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.55e-05/0.4265, allocations: 12.03 kB / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001604/0.4266, allocations: 23.92 kB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.982e-05/0.4267, allocations: 23.92 kB / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.619e-05/0.4267, allocations: 15.94 kB / 1.065 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.579e-05/0.4268, allocations: 117.4 kB / 1.065 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4268, allocations: 0 / 1.065 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002697/0.4271, allocations: 31.91 kB / 1.065 GB, free: 13.38 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001511/0.4273, allocations: 111.2 kB / 1.065 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004073/0.4277, allocations: 169.7 kB / 1.066 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.4277, allocations: 4 kB / 1.066 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001815/0.4279, allocations: 88.28 kB / 1.066 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003282/0.4282, allocations: 27.98 kB / 1.066 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006226/0.4288, allocations: 428.4 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004322/0.4293, allocations: 0.7285 MB / 1.067 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.721e-05/0.4294, allocations: 17.42 kB / 1.067 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.68e-05/0.4294, allocations: 19.44 kB / 1.067 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.4294, allocations: 0 / 1.067 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of Templates: time 0.004348/0.4338, allocations: 1.488 MB / 1.068 GB, free: 10.24 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/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