Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax.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.MultiMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.1..y|con.2..y|con.3..y|con.4..y|con.5..y|maxVal.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.1..y|con.2..y|con.3..y|con.4..y|con.5..y|maxVal.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001673/0.001673, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001886/0.001886, allocations: 197.2 kB / 16.53 MB, free: 6.391 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.489/1.489, allocations: 222.9 MB / 240.2 MB, free: 4.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.96/2.96, allocations: 472.6 MB / 0.7451 GB, free: 4.602 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 66.84 kB / 0.9121 GB, free: 33.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4011/0.4025, allocations: 159.9 MB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax): time 0.001948/0.4045, allocations: 0.6555 MB / 1.069 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0001462/0.4046, allocations: 11.94 kB / 1.069 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.334e-05/0.4047, allocations: 4 kB / 1.069 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.83e-05/0.4048, allocations: 3.938 kB / 1.069 GB, free: 9.672 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.881e-05/0.4049, allocations: 3.938 kB / 1.069 GB, free: 9.668 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 8.226e-05/0.4049, allocations: 11.98 kB / 1.069 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.318e-05/0.405, allocations: 16 kB / 1.069 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.4052, allocations: 35.98 kB / 1.069 GB, free: 9.605 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.585e-05/0.4052, allocations: 19.91 kB / 1.069 GB, free: 9.586 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.601e-05/0.4053, allocations: 11.94 kB / 1.069 GB, free: 9.574 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.39e-05/0.4053, allocations: 4 kB / 1.069 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.461e-05/0.4053, allocations: 4 kB / 1.069 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.884e-05/0.4054, allocations: 15.92 kB / 1.069 GB, free: 9.551 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.872e-05/0.4054, allocations: 19.88 kB / 1.069 GB, free: 9.531 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 9.583e-05/0.4055, allocations: 47.8 kB / 1.069 GB, free: 9.484 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.4055, allocations: 0 / 1.069 GB, free: 9.484 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.673e-06/0.4055, allocations: 0 / 1.069 GB, free: 9.484 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.75e-06/0.4055, allocations: 0 / 1.069 GB, free: 9.484 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003418/0.4059, allocations: 351.6 kB / 1.069 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.453e-05/0.4059, allocations: 8.031 kB / 1.069 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.435e-05/0.406, allocations: 8.844 kB / 1.069 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001625/0.4061, allocations: 180.3 kB / 1.07 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.534e-06/0.4062, allocations: 4.375 kB / 1.07 GB, free: 8.855 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.243e-05/0.4062, allocations: 4.375 kB / 1.07 GB, free: 8.852 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001427/0.4063, allocations: 86.16 kB / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.632e-06/0.4063, allocations: 192 / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.4064, allocations: 3.938 kB / 1.07 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.4064, allocations: 0 / 1.07 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.742e-05/0.4064, allocations: 59.83 kB / 1.07 GB, free: 8.699 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004653/0.4069, allocations: 483.1 kB / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.587e-05/0.407, allocations: 181.1 kB / 1.07 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.195e-05/0.407, allocations: 80.14 kB / 1.07 GB, free: 7.906 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.4071, allocations: 75.28 kB / 1.071 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.885e-05/0.4071, allocations: 105.8 kB / 1.071 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=0): time 9.92e-07/0.4071, allocations: 0 / 1.071 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of matching and sorting (n=0): time 6.938e-05/0.4072, allocations: 33.7 kB / 1.071 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.652e-05/0.4073, allocations: 134.6 kB / 1.071 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001631/0.4074, allocations: 179.2 kB / 1.071 GB, free: 7.352 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.4074, allocations: 25.7 kB / 1.071 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.382e-05/0.4075, allocations: 94.31 kB / 1.071 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.856e-06/0.4075, allocations: 0 / 1.071 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.204e-05/0.4076, allocations: 17.7 kB / 1.071 GB, free: 7.203 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001052/0.4077, allocations: 318.8 kB / 1.071 GB, free: 6.883 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.841e-05/0.4077, allocations: 11.98 kB / 1.071 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.204e-05/0.4077, allocations: 4 kB / 1.071 GB, free: 6.867 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.192e-05/0.4077, allocations: 20.78 kB / 1.071 GB, free: 6.844 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.4078, allocations: 0 / 1.071 GB, free: 6.844 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001096/0.4079, allocations: 53.53 kB / 1.071 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.4079, allocations: 9.562 kB / 1.071 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.4079, allocations: 4 kB / 1.071 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.969e-06/0.4079, allocations: 96 / 1.071 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.156e-05/0.408, allocations: 8 kB / 1.072 GB, free: 6.766 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.408, allocations: 7.922 kB / 1.072 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.947e-05/0.408, allocations: 7.938 kB / 1.072 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.737e-06/0.408, allocations: 0 / 1.072 GB, free: 6.75 MB / 0.8262 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 (1): * Single equations (assignments): 1 * 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 9.764e-05/0.4081, allocations: 198.6 kB / 1.072 GB, free: 6.547 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.011e-05/0.4082, allocations: 104.9 kB / 1.072 GB, free: 6.438 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.929e-05/0.4083, allocations: 120.6 kB / 1.072 GB, free: 6.309 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.918e-05/0.4083, allocations: 180.4 kB / 1.072 GB, free: 6.125 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.118e-05/0.4084, allocations: 192.1 kB / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.059e-05/0.4085, allocations: 180.2 kB / 1.072 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002298/0.4087, allocations: 417.2 kB / 1.073 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.771e-05/0.4087, allocations: 104.9 kB / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.326e-05/0.4088, allocations: 109 kB / 1.073 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.654e-05/0.4088, allocations: 176.3 kB / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.002e-05/0.4089, allocations: 188.2 kB / 1.073 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.971e-05/0.409, allocations: 176.3 kB / 1.074 GB, free: 4.508 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.158e-05/0.4091, allocations: 192.2 kB / 1.074 GB, free: 4.312 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001257/0.4092, allocations: 315.7 kB / 1.074 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.383e-05/0.4093, allocations: 182.1 kB / 1.074 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.712e-05/0.4093, allocations: 176.3 kB / 1.074 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.613e-05/0.4094, allocations: 109.2 kB / 1.074 GB, free: 3.484 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.602e-05/0.4095, allocations: 184.2 kB / 1.075 GB, free: 3.297 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.68e-05/0.4095, allocations: 117 kB / 1.075 GB, free: 3.176 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001068/0.4097, allocations: 132.7 kB / 1.075 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.9e-07/0.4097, allocations: 0 / 1.075 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002154/0.4099, allocations: 8 kB / 1.075 GB, free: 3.039 MB / 0.8262 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 (0): * Single equations (assignments): 0 * 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.0001816/0.4101, allocations: 171.1 kB / 1.075 GB, free: 2.863 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 6.578e-05/0.4101, allocations: 15.98 kB / 1.075 GB, free: 2.848 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.4102, allocations: 0 / 1.075 GB, free: 2.848 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.904e-06/0.4102, allocations: 4.062 kB / 1.075 GB, free: 2.844 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004344/0.4106, allocations: 462.1 kB / 1.076 GB, free: 2.391 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002815/0.4109, allocations: 212.1 kB / 1.076 GB, free: 2.156 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002984/0.4112, allocations: 0.6963 MB / 1.076 GB, free: 1.434 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.9e-05/0.4112, allocations: 8 kB / 1.076 GB, free: 1.426 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.457e-05/0.4113, allocations: 7.438 kB / 1.076 GB, free: 1.418 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.4113, allocations: 3.938 kB / 1.076 GB, free: 1.414 MB / 0.8262 GB Notification: Performance of Templates: time 0.002554/0.4138, allocations: 477.1 kB / 1.077 GB, free: 0.9531 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MultiMax.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MultiMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches