Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Sort,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sorAsc.u.1.|sorAsc.u.2.|sorAsc.u.3.|sorAsc.u.4.|sorAsc.u.5.|sorAsc.y.1.|sorAsc.y.2.|sorAsc.y.3.|sorAsc.y.4.|sorAsc.y.5.|sorDes.y.1.|sorDes.y.2.|sorDes.y.3.|sorDes.y.4.|sorDes.y.5.",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sorAsc.u.1.|sorAsc.u.2.|sorAsc.u.3.|sorAsc.u.4.|sorAsc.u.5.|sorAsc.y.1.|sorAsc.y.2.|sorAsc.y.3.|sorAsc.y.4.|sorAsc.y.5.|sorDes.y.1.|sorDes.y.2.|sorDes.y.3.|sorDes.y.4.|sorDes.y.5.",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.001576/0.001576, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.555/1.555, allocations: 223.3 MB / 240 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.509/2.509, allocations: 390.9 MB / 0.666 GB, free: 2.508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0006452/0.0006457, allocations: 12 kB / 0.8154 GB, free: 13.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8997/0.9004, allocations: 142.4 MB / 0.9545 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort): time 0.001051/0.9015, allocations: 0.5234 MB / 0.955 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001618/0.9031, allocations: 0.9984 MB / 0.956 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.022e-05/0.9032, allocations: 2.125 kB / 0.956 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001288/0.9034, allocations: 7.922 kB / 0.956 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.562e-05/0.9034, allocations: 22.27 kB / 0.956 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004169/0.9039, allocations: 58.33 kB / 0.956 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001388/0.904, allocations: 108.2 kB / 0.9561 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001961/0.9042, allocations: 43.06 kB / 0.9562 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.2e-05/0.9043, allocations: 38.03 kB / 0.9562 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.652e-05/0.9044, allocations: 45.47 kB / 0.9563 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.351e-05/0.9044, allocations: 4.75 kB / 0.9563 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001344/0.9045, allocations: 52.66 kB / 0.9563 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.848e-05/0.9046, allocations: 28.59 kB / 0.9563 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.509e-05/0.9046, allocations: 43.14 kB / 0.9564 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001688/0.9048, allocations: 120.5 kB / 0.9565 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.134e-06/0.9048, allocations: 3.984 kB / 0.9565 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.673e-06/0.9048, allocations: 0 / 0.9565 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.9049, allocations: 1.125 kB / 0.9565 GB, free: 6.184 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0007367/0.9056, allocations: 498.3 kB / 0.957 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.9056, allocations: 9.375 kB / 0.957 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.211e-05/0.9057, allocations: 18.2 kB / 0.957 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001603/0.9059, allocations: 198.8 kB / 0.9572 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/0.9059, allocations: 7.344 kB / 0.9572 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.045e-05/0.9059, allocations: 4.594 kB / 0.9572 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000507/0.9064, allocations: 206.5 kB / 0.9574 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.9064, allocations: 1.844 kB / 0.9574 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.696e-05/0.9065, allocations: 8 kB / 0.9574 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.411e-05/0.9065, allocations: 13.77 kB / 0.9574 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006452/0.9072, allocations: 266.2 kB / 0.9577 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008374/0.908, allocations: 490 kB / 0.9581 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004065/0.9084, allocations: 167.9 kB / 0.9583 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003366/0.9088, allocations: 162.3 kB / 0.9585 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.9088, allocations: 1.375 kB / 0.9585 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.123e-05/0.9088, allocations: 31.94 kB / 0.9585 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.9088, allocations: 0 / 0.9585 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.001231/0.9101, allocations: 483.2 kB / 0.959 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.572e-05/0.9101, allocations: 52.44 kB / 0.959 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/0.9103, allocations: 141.1 kB / 0.9591 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.396e-05/0.9103, allocations: 25.7 kB / 0.9592 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.236e-05/0.9104, allocations: 110 kB / 0.9593 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.924e-05/0.9104, allocations: 57.3 kB / 0.9593 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.666e-06/0.9104, allocations: 1 kB / 0.9593 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.028e-05/0.9105, allocations: 325.9 kB / 0.9596 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003768/0.9109, allocations: 139.6 kB / 0.9598 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000354/0.9113, allocations: 136.1 kB / 0.9599 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003644/0.9116, allocations: 146.9 kB / 0.96 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.9117, allocations: 0 / 0.96 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007915/0.9125, allocations: 341.4 kB / 0.9604 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.9125, allocations: 5.375 kB / 0.9604 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.9125, allocations: 0 / 0.9604 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.9125, allocations: 0.9062 kB / 0.9604 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002353/0.9128, allocations: 54.84 kB / 0.9604 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.9128, allocations: 3.984 kB / 0.9604 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001711/0.913, allocations: 49.09 kB / 0.9605 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.666e-05/0.913, allocations: 2.812 kB / 0.9605 GB, free: 3.438 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 (7): * Single equations (assignments): 5 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.239e-05/0.9131, allocations: 131.8 kB / 0.9606 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.777e-05/0.9131, allocations: 11.95 kB / 0.9606 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.406e-05/0.9132, allocations: 16.39 kB / 0.9606 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.339e-05/0.9132, allocations: 10.69 kB / 0.9606 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.9132, allocations: 0 / 0.9606 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.9132, allocations: 9.297 kB / 0.9606 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002562/0.9135, allocations: 221.7 kB / 0.9609 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.9135, allocations: 0 / 0.9609 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001923/0.9137, allocations: 49.86 kB / 0.9609 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.9137, allocations: 9.062 kB / 0.9609 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.9137, allocations: 5.312 kB / 0.9609 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.9137, allocations: 7.875 kB / 0.9609 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.9137, allocations: 1.25 kB / 0.9609 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008159/0.9146, allocations: 427.3 kB / 0.9613 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.66e-05/0.9146, allocations: 85.05 kB / 0.9614 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.32e-05/0.9146, allocations: 15.88 kB / 0.9614 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001914/0.9148, allocations: 44.8 kB / 0.9615 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.617e-05/0.9149, allocations: 8.859 kB / 0.9615 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-05/0.9149, allocations: 5.969 kB / 0.9615 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.801e-05/0.915, allocations: 114.8 kB / 0.9616 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.915, allocations: 1.281 kB / 0.9616 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003237/0.9154, allocations: 36.22 kB / 0.9616 GB, free: 2.527 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 (7): * Single equations (assignments): 5 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002313/0.9156, allocations: 128.6 kB / 0.9618 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000779/0.9164, allocations: 308 kB / 0.9621 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.9164, allocations: 0 / 0.9621 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003654/0.9168, allocations: 164.3 kB / 0.9622 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000359/0.9171, allocations: 20.45 kB / 0.9622 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005601/0.9177, allocations: 354.4 kB / 0.9626 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001626/0.9179, allocations: 0.7271 MB / 0.9633 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 9.741e-05/0.918, allocations: 14.05 kB / 0.9633 GB, free: 1.262 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.18e-05/0.918, allocations: 11.19 kB / 0.9633 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of SimCode: time 5.11e-07/0.918, allocations: 0 / 0.9633 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of Templates: time 0.004605/0.9226, allocations: 1.526 MB / 0.9648 GB, free: 492 kB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Sort.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches