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 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.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.01238/0.01238, allocations: 100.3 kB / 15.73 MB, free: 6.008 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.003287/0.003287, allocations: 193.9 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.498/1.498, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.973/2.973, allocations: 472.6 MB / 0.7453 GB, free: 0.5078 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 67.89 kB / 1.07 GB, free: 9.527 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.006/1.007, allocations: 159.9 MB / 1.226 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Cos): time 0.002158/1.009, allocations: 0.6595 MB / 1.226 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001154/1.01, allocations: 0.8156 MB / 1.227 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.249e-05/1.01, allocations: 0 / 1.227 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 2.494e-05/1.011, allocations: 0 / 1.227 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 6.558e-05/1.011, allocations: 3.938 kB / 1.227 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.000155/1.011, allocations: 3.984 kB / 1.227 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 7.631e-05/1.011, allocations: 23.94 kB / 1.227 GB, free: 12.13 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/1.011, allocations: 11.98 kB / 1.227 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 6.154e-05/1.011, allocations: 3.938 kB / 1.227 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 4.773e-05/1.011, allocations: 15.98 kB / 1.227 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.515e-05/1.011, allocations: 4 kB / 1.227 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 1.075e-05/1.011, allocations: 0 / 1.227 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.218e-05/1.011, allocations: 7.984 kB / 1.227 GB, free: 12.09 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.621e-05/1.011, allocations: 7.938 kB / 1.227 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001038/1.011, allocations: 27.89 kB / 1.227 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/1.011, allocations: 0 / 1.227 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.202e-06/1.011, allocations: 0 / 1.227 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.69e-06/1.011, allocations: 0 / 1.227 GB, free: 12.05 MB / 0.9512 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.0004797/1.012, allocations: 340.4 kB / 1.228 GB, free: 11.67 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/1.012, allocations: 8.031 kB / 1.228 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.14e-05/1.012, allocations: 8.891 kB / 1.228 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001342/1.012, allocations: 164.4 kB / 1.228 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/1.012, allocations: 384 / 1.228 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.588e-05/1.012, allocations: 4.359 kB / 1.228 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001789/1.012, allocations: 54.17 kB / 1.228 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/1.012, allocations: 4.188 kB / 1.228 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/1.012, allocations: 3.938 kB / 1.228 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/1.012, allocations: 7.938 kB / 1.228 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001934/1.013, allocations: 35.95 kB / 1.228 GB, free: 11.34 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003472/1.013, allocations: 245 kB / 1.228 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001323/1.013, allocations: 42.44 kB / 1.228 GB, free: 11 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.436e-05/1.013, allocations: 24.89 kB / 1.228 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/1.013, allocations: 4 kB / 1.228 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/1.013, allocations: 38.5 kB / 1.228 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.532e-06/1.013, allocations: 0 / 1.228 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0003683/1.014, allocations: 77.64 kB / 1.228 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5e-05/1.014, allocations: 55.53 kB / 1.228 GB, free: 10.78 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.124e-05/1.014, allocations: 101.8 kB / 1.228 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/1.014, allocations: 25.7 kB / 1.228 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.576e-05/1.014, allocations: 92.02 kB / 1.229 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.787e-05/1.014, allocations: 11.95 kB / 1.229 GB, free: 10.53 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.022e-05/1.014, allocations: 9.719 kB / 1.229 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001334/1.014, allocations: 314.8 kB / 1.229 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/1.014, allocations: 19.98 kB / 1.229 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.64e-05/1.014, allocations: 15.97 kB / 1.229 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00015/1.014, allocations: 40.83 kB / 1.229 GB, free: 10.12 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/1.014, allocations: 0 / 1.229 GB, free: 10.12 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001887/1.015, allocations: 69.66 kB / 1.229 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/1.015, allocations: 8.031 kB / 1.229 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/1.015, allocations: 0 / 1.229 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/1.015, allocations: 0 / 1.229 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.276e-05/1.015, allocations: 15.92 kB / 1.229 GB, free: 10.02 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/1.015, allocations: 0 / 1.229 GB, free: 10.02 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.672e-05/1.015, allocations: 4 kB / 1.229 GB, free: 10.02 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.019e-06/1.015, allocations: 0 / 1.229 GB, free: 10.02 MB / 0.9512 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 8.475e-05/1.015, allocations: 110.3 kB / 1.229 GB, free: 9.902 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.05e-05/1.015, allocations: 11.98 kB / 1.229 GB, free: 9.891 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002339/1.015, allocations: 68.78 kB / 1.229 GB, free: 9.816 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/1.015, allocations: 0 / 1.229 GB, free: 9.816 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/1.015, allocations: 0 / 1.229 GB, free: 9.816 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/1.015, allocations: 0 / 1.229 GB, free: 9.816 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001723/1.015, allocations: 161.6 kB / 1.229 GB, free: 9.609 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/1.015, allocations: 0 / 1.229 GB, free: 9.609 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.147e-05/1.015, allocations: 7.984 kB / 1.229 GB, free: 9.602 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/1.015, allocations: 7.969 kB / 1.229 GB, free: 9.594 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-06/1.015, allocations: 0 / 1.229 GB, free: 9.594 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/1.016, allocations: 4 kB / 1.229 GB, free: 9.59 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/1.016, allocations: 0 / 1.229 GB, free: 9.59 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002551/1.016, allocations: 167.4 kB / 1.23 GB, free: 9.41 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.442e-05/1.016, allocations: 84.98 kB / 1.23 GB, free: 9.309 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.315e-05/1.016, allocations: 4.031 kB / 1.23 GB, free: 9.305 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.012e-05/1.016, allocations: 11.98 kB / 1.23 GB, free: 9.293 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.125e-05/1.016, allocations: 192 / 1.23 GB, free: 9.293 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/1.016, allocations: 0 / 1.23 GB, free: 9.293 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.359e-05/1.016, allocations: 91.25 kB / 1.23 GB, free: 9.203 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/1.016, allocations: 0 / 1.23 GB, free: 9.203 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002207/1.016, allocations: 4 kB / 1.23 GB, free: 9.199 MB / 0.9512 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.0001483/1.016, allocations: 99.25 kB / 1.23 GB, free: 9.09 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002291/1.017, allocations: 43.89 kB / 1.23 GB, free: 9.047 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/1.017, allocations: 0 / 1.23 GB, free: 9.047 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001057/1.017, allocations: 19.98 kB / 1.23 GB, free: 9.027 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/1.017, allocations: 5.031 kB / 1.23 GB, free: 9.023 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000325/1.017, allocations: 126 kB / 1.23 GB, free: 8.875 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002736/1.018, allocations: 0.6768 MB / 1.231 GB, free: 8.172 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.299e-05/1.018, allocations: 0 / 1.231 GB, free: 8.172 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.848e-05/1.018, allocations: 11.44 kB / 1.231 GB, free: 8.16 MB / 0.9512 GB Notification: Performance of SimCode: time 2.51e-07/1.018, allocations: 0 / 1.231 GB, free: 8.16 MB / 0.9512 GB Notification: Performance of Templates: time 0.002603/1.02, allocations: 434.6 kB / 1.231 GB, free: 7.742 MB / 0.9512 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