Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max.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.Max,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|max1.u1|max1.u2|max1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Max,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|max1.u1|max1.u2|max1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001472/0.001472, allocations: 195.1 kB / 16.14 MB, free: 6.691 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.457/1.457, allocations: 222.9 MB / 239.8 MB, free: 4.617 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.508/2.508, allocations: 390.2 MB / 0.6642 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001392, allocations: 63.91 kB / 0.8119 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8996/0.901, allocations: 140.3 MB / 0.9489 GB, free: 9.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Max): time 0.001858/0.9029, allocations: 0.7642 MB / 0.9497 GB, free: 8.531 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007654/0.9037, allocations: 0.8096 MB / 0.9505 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.551e-05/0.9037, allocations: 0 / 0.9505 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.409e-05/0.9038, allocations: 0 / 0.9505 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.216e-05/0.9039, allocations: 9.094 kB / 0.9505 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 9.563e-05/0.904, allocations: 14.61 kB / 0.9505 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.79e-05/0.904, allocations: 40.94 kB / 0.9505 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.9042, allocations: 4.375 kB / 0.9505 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.232e-05/0.9042, allocations: 17.3 kB / 0.9506 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.471e-05/0.9043, allocations: 25.56 kB / 0.9506 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.927e-05/0.9043, allocations: 2.094 kB / 0.9506 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.457e-05/0.9043, allocations: 3.594 kB / 0.9506 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.907e-05/0.9044, allocations: 11.94 kB / 0.9506 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.745e-05/0.9044, allocations: 20.23 kB / 0.9506 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.593e-05/0.9045, allocations: 38.73 kB / 0.9507 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.9045, allocations: 0 / 0.9507 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.082e-06/0.9045, allocations: 0 / 0.9507 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.269e-06/0.9045, allocations: 1.125 kB / 0.9507 GB, free: 7.734 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004467/0.905, allocations: 368.3 kB / 0.951 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.905, allocations: 9.562 kB / 0.951 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.041e-05/0.905, allocations: 11.8 kB / 0.951 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.814e-05/0.9051, allocations: 170.4 kB / 0.9512 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.746e-06/0.9051, allocations: 1.438 kB / 0.9512 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.423e-05/0.9052, allocations: 1.531 kB / 0.9512 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002321/0.9054, allocations: 72.22 kB / 0.9513 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.9054, allocations: 192 / 0.9513 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.9054, allocations: 3.938 kB / 0.9513 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.74e-06/0.9054, allocations: 5.188 kB / 0.9513 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002724/0.9057, allocations: 71.77 kB / 0.9513 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000325/0.906, allocations: 262 kB / 0.9516 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001844/0.9062, allocations: 61 kB / 0.9516 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000137/0.9064, allocations: 39.92 kB / 0.9517 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/0.9064, allocations: 0 / 0.9517 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/0.9064, allocations: 35.66 kB / 0.9517 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.262e-06/0.9065, allocations: 0 / 0.9517 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005243/0.907, allocations: 133.9 kB / 0.9518 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.926e-05/0.907, allocations: 52.59 kB / 0.9519 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.563e-05/0.9071, allocations: 107.7 kB / 0.952 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.558e-06/0.9071, allocations: 25.7 kB / 0.952 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.003e-05/0.9072, allocations: 86.58 kB / 0.9521 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.065e-05/0.9072, allocations: 9.031 kB / 0.9521 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.269e-05/0.9072, allocations: 24.02 kB / 0.9521 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.98e-05/0.9073, allocations: 313.7 kB / 0.9524 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.9074, allocations: 28.44 kB / 0.9525 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001208/0.9075, allocations: 37.92 kB / 0.9525 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002404/0.9078, allocations: 71.28 kB / 0.9526 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.9078, allocations: 3.938 kB / 0.9526 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002959/0.9081, allocations: 97.44 kB / 0.9527 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.9081, allocations: 5.062 kB / 0.9527 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.9081, allocations: 0 / 0.9527 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.9081, allocations: 5.188 kB / 0.9527 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.9083, allocations: 14.36 kB / 0.9527 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.9083, allocations: 0 / 0.9527 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.848e-05/0.9084, allocations: 19.84 kB / 0.9527 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-06/0.9084, allocations: 0 / 0.9527 GB, free: 5.762 MB / 0.7169 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 (3): * Single equations (assignments): 3 * 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 6.425e-05/0.9085, allocations: 120.4 kB / 0.9528 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.47e-05/0.9085, allocations: 1.312 kB / 0.9528 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003377/0.9088, allocations: 109.6 kB / 0.9529 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.9088, allocations: 4.031 kB / 0.9529 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.9089, allocations: 1.156 kB / 0.9529 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.9089, allocations: 0 / 0.9529 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001171/0.909, allocations: 177.2 kB / 0.9531 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.909, allocations: 0 / 0.9531 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.141e-05/0.9091, allocations: 19.14 kB / 0.9531 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.9091, allocations: 4 kB / 0.9531 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.9091, allocations: 1.5 kB / 0.9531 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.9091, allocations: 0 / 0.9531 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.9091, allocations: 0 / 0.9531 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003211/0.9094, allocations: 212.6 kB / 0.9533 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.293e-05/0.9095, allocations: 78.33 kB / 0.9534 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.685e-05/0.9095, allocations: 1.531 kB / 0.9534 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.9096, allocations: 9.484 kB / 0.9534 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.351e-05/0.9097, allocations: 6.141 kB / 0.9534 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.401e-06/0.9097, allocations: 1.188 kB / 0.9534 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.941e-05/0.9097, allocations: 85.78 kB / 0.9535 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9097, allocations: 0 / 0.9535 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002189/0.9099, allocations: 6.562 kB / 0.9535 GB, free: 4.965 MB / 0.7169 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 (3): * Single equations (assignments): 3 * 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.0001333/0.9101, allocations: 105.1 kB / 0.9536 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003143/0.9104, allocations: 75.42 kB / 0.9537 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.9104, allocations: 0 / 0.9537 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000137/0.9106, allocations: 32.22 kB / 0.9537 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003093/0.9109, allocations: 11.91 kB / 0.9537 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003245/0.9112, allocations: 134.8 kB / 0.9539 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001521/0.9114, allocations: 0.6841 MB / 0.9545 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.582e-05/0.9114, allocations: 5.812 kB / 0.9545 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.121e-05/0.9114, allocations: 8.469 kB / 0.9545 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of SimCode: time 4.8e-07/0.9115, allocations: 0 / 0.9545 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of Templates: time 0.002928/0.9144, allocations: 0.5451 MB / 0.9551 GB, free: 3.688 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Max.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches