Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Cos,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cos1.u|cos1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Cos,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cos1.u|cos1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008807/0.0008809, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008229/0.008229, allocations: 168.9 kB / 16.26 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.534/1.534, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.092/3.092, allocations: 462.7 MB / 0.7364 GB, free: 272 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003808/0.0003807, allocations: 12.47 kB / 0.9028 GB, free: 36.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.406/0.4064, allocations: 159.6 MB / 1.059 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Cos): time 0.001026/0.4075, allocations: 396.5 kB / 1.059 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001117/0.4086, allocations: 0.8079 MB / 1.06 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.435e-05/0.4087, allocations: 0 / 1.06 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.785e-05/0.4087, allocations: 0 / 1.06 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.352e-05/0.4088, allocations: 3.938 kB / 1.06 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001417/0.4089, allocations: 8 kB / 1.06 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.833e-05/0.409, allocations: 23.98 kB / 1.06 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.917e-05/0.4091, allocations: 11.98 kB / 1.06 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.816e-05/0.4092, allocations: 11.86 kB / 1.06 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.888e-05/0.4092, allocations: 8 kB / 1.06 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.497e-05/0.4092, allocations: 0 / 1.06 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.894e-05/0.4093, allocations: 4 kB / 1.06 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.753e-05/0.4093, allocations: 7.922 kB / 1.06 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.756e-05/0.4093, allocations: 29.7 kB / 1.06 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.057e-05/0.4094, allocations: 19.91 kB / 1.06 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.361e-06/0.4094, allocations: 0 / 1.06 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.533e-06/0.4094, allocations: 8 kB / 1.06 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.4094, allocations: 0 / 1.06 GB, free: 4.082 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000487/0.4099, allocations: 341.1 kB / 1.06 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.41, allocations: 8.031 kB / 1.06 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.778e-05/0.41, allocations: 0.9375 kB / 1.06 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001286/0.4102, allocations: 176.3 kB / 1.061 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.466e-06/0.4102, allocations: 384 / 1.061 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.096e-05/0.4102, allocations: 4.375 kB / 1.061 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002131/0.4104, allocations: 54.23 kB / 1.061 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.176e-06/0.4104, allocations: 192 / 1.061 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.4104, allocations: 3.938 kB / 1.061 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-06/0.4105, allocations: 4 kB / 1.061 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002031/0.4107, allocations: 47.91 kB / 1.061 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003675/0.411, allocations: 241 kB / 1.061 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001459/0.4112, allocations: 50.48 kB / 1.061 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.4113, allocations: 32.84 kB / 1.061 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.367e-05/0.4113, allocations: 0 / 1.061 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.532e-05/0.4114, allocations: 34.5 kB / 1.061 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.242e-06/0.4114, allocations: 0 / 1.061 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0004169/0.4118, allocations: 101.6 kB / 1.061 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.58e-05/0.4119, allocations: 55.41 kB / 1.061 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.785e-05/0.412, allocations: 105.9 kB / 1.061 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.412, allocations: 29.7 kB / 1.061 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.892e-05/0.4121, allocations: 80.14 kB / 1.061 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.89e-05/0.4121, allocations: 3.906 kB / 1.061 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.186e-05/0.4121, allocations: 13.72 kB / 1.061 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000146/0.4123, allocations: 318.8 kB / 1.062 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.14e-05/0.4124, allocations: 15.98 kB / 1.062 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.153e-05/0.4124, allocations: 27.98 kB / 1.062 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001754/0.4126, allocations: 48.77 kB / 1.062 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.4126, allocations: 4.062 kB / 1.062 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002171/0.4129, allocations: 77.59 kB / 1.062 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.4129, allocations: 8 kB / 1.062 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.4129, allocations: 0 / 1.062 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.024e-05/0.4129, allocations: 0 / 1.062 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.484e-05/0.413, allocations: 16.02 kB / 1.062 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.413, allocations: 0 / 1.062 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.553e-05/0.4131, allocations: 11.98 kB / 1.062 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.16e-06/0.4131, allocations: 0 / 1.062 GB, free: 1.98 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 7.594e-05/0.4132, allocations: 113.8 kB / 1.062 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.682e-05/0.4132, allocations: 7.906 kB / 1.062 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002599/0.4135, allocations: 80.72 kB / 1.062 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.4135, allocations: 4 kB / 1.062 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.4135, allocations: 0 / 1.062 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.4135, allocations: 0 / 1.062 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001679/0.4137, allocations: 161.6 kB / 1.062 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.4137, allocations: 32 / 1.062 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.213e-05/0.4138, allocations: 16 kB / 1.062 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.4138, allocations: 3.984 kB / 1.062 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-06/0.4138, allocations: 0 / 1.062 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.4138, allocations: 0 / 1.062 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.4138, allocations: 7.938 kB / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002635/0.4141, allocations: 179.4 kB / 1.062 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.293e-05/0.4141, allocations: 77.11 kB / 1.062 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.159e-05/0.4142, allocations: 0 / 1.062 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.234e-05/0.4142, allocations: 8 kB / 1.062 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.39e-05/0.4143, allocations: 7.984 kB / 1.062 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-06/0.4143, allocations: 4.031 kB / 1.062 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.163e-05/0.4144, allocations: 79.28 kB / 1.063 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4144, allocations: 0 / 1.063 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002193/0.4146, allocations: 7.938 kB / 1.063 GB, free: 1.141 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0002051/0.4148, allocations: 95.25 kB / 1.063 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002255/0.415, allocations: 51.95 kB / 1.063 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.415, allocations: 3.938 kB / 1.063 GB, free: 0.9805 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.488e-05/0.4152, allocations: 27.92 kB / 1.063 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002915/0.4154, allocations: 9.188 kB / 1.063 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003079/0.4158, allocations: 122.7 kB / 1.063 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003034/0.4161, allocations: 0.677 MB / 1.064 GB, free: 100 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.973e-05/0.4161, allocations: 4 kB / 1.064 GB, free: 96 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.328e-05/0.4161, allocations: 7.438 kB / 1.064 GB, free: 88 kB / 0.8106 GB Notification: Performance of SimCode: time 5.71e-07/0.4161, allocations: 0 / 1.064 GB, free: 88 kB / 0.8106 GB Notification: Performance of Templates: time 0.002405/0.4186, allocations: 359.5 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Cos.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches