Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Cos,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cos1.u|cos1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Cos") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Cos,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cos1.u|cos1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Cos") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009157/0.009157, allocations: 100.7 kB / 15.73 MB, free: 5.988 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.001871/0.001871, allocations: 197 kB / 16.67 MB, free: 5.926 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.616/1.616, allocations: 222.9 MB / 240.4 MB, free: 4.195 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.715/2.715, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 61.5 kB / 0.9509 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3879/0.3892, allocations: 140.4 MB / 1.088 GB, free: 1.469 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Cos): time 0.003992/0.3933, allocations: 0.6553 MB / 1.089 GB, free: 0.8125 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002153/0.3955, allocations: 0.816 MB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.559e-05/0.3956, allocations: 0 / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.244e-05/0.3956, allocations: 3.938 kB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001039/0.3958, allocations: 0 / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000222/0.396, allocations: 11.98 kB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001208/0.3962, allocations: 19.92 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000169/0.3964, allocations: 15.92 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.83e-05/0.3965, allocations: 7.938 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.299e-05/0.3966, allocations: 15.98 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.23e-05/0.3966, allocations: 0 / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.726e-05/0.3966, allocations: 4 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.423e-05/0.3967, allocations: 7.938 kB / 1.09 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.402e-05/0.3967, allocations: 7.984 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000152/0.3969, allocations: 23.84 kB / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3969, allocations: 0 / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.364e-06/0.397, allocations: 4 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.524e-06/0.397, allocations: 0 / 1.09 GB, free: 15.86 MB / 0.8575 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.0007468/0.3977, allocations: 339.5 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.749e-05/0.3978, allocations: 8.031 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.338e-05/0.3979, allocations: 8.844 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002143/0.3981, allocations: 160.4 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.3981, allocations: 384 / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.042e-05/0.3982, allocations: 384 / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002978/0.3985, allocations: 50.23 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.3985, allocations: 192 / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.184e-05/0.3986, allocations: 7.922 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.3986, allocations: 11.94 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003186/0.3989, allocations: 35.89 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005524/0.3995, allocations: 249 kB / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003001/0.3998, allocations: 42.48 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001726/0.4, allocations: 28.91 kB / 1.09 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.582e-05/0.4, allocations: 0 / 1.09 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/0.4001, allocations: 30.56 kB / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.684e-06/0.4001, allocations: 0 / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0006391/0.4007, allocations: 81.58 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.073e-05/0.4008, allocations: 55.53 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.401, allocations: 101.8 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/0.401, allocations: 29.7 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.663e-05/0.4011, allocations: 88.05 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.433e-05/0.4012, allocations: 0 / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.81e-05/0.4012, allocations: 13.72 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002082/0.4015, allocations: 314.8 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.4016, allocations: 15.97 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001307/0.4018, allocations: 19.98 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002848/0.4021, allocations: 40.77 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.4021, allocations: 0 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003662/0.4025, allocations: 73.5 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.4025, allocations: 8.094 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.4025, allocations: 3.938 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.859e-05/0.4026, allocations: 4 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001552/0.4028, allocations: 7.984 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.4028, allocations: 0 / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.507e-05/0.4029, allocations: 4 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.027e-05/0.4029, allocations: 0 / 1.091 GB, free: 13.84 MB / 0.8575 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 0.0001294/0.4031, allocations: 117.8 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.858e-05/0.4031, allocations: 4 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003712/0.4035, allocations: 72.72 kB / 1.091 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.4035, allocations: 4 kB / 1.091 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.4035, allocations: 0 / 1.091 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.4035, allocations: 0 / 1.091 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003571/0.4039, allocations: 157.6 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.4039, allocations: 3.984 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.333e-05/0.404, allocations: 7.938 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.4041, allocations: 8.031 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.4041, allocations: 0 / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.4041, allocations: 0 / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.4041, allocations: 0 / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004155/0.4045, allocations: 167.4 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.643e-05/0.4046, allocations: 88.94 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.841e-05/0.4046, allocations: 4.031 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001449/0.4048, allocations: 4 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.065e-05/0.4049, allocations: 7.984 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.314e-06/0.4049, allocations: 0 / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.502e-05/0.405, allocations: 83.28 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of sort global known variables: time 4.41e-07/0.405, allocations: 0 / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004064/0.4054, allocations: 0 / 1.092 GB, free: 13.02 MB / 0.8575 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.0001998/0.4056, allocations: 99.78 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000336/0.406, allocations: 39.95 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.406, allocations: 0 / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001522/0.4062, allocations: 23.92 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005212/0.4067, allocations: 13.97 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005205/0.4073, allocations: 105.6 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005068/0.4078, allocations: 0.6811 MB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.936e-05/0.4078, allocations: 0 / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.419e-05/0.4079, allocations: 7.438 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of SimCode: time 8.41e-07/0.4079, allocations: 4 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of Templates: time 0.004783/0.4127, allocations: 439.6 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Cos.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Cos.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Cos.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Cos.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Cos.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Cos -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Cos.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Cos_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Cos.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Cos.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches