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.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.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.001033/0.001034, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.00826/0.00826, allocations: 169.4 kB / 16.26 MB, free: 6.648 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.628/1.628, allocations: 223.3 MB / 240.3 MB, free: 5.352 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.638/2.638, allocations: 390.9 MB / 0.6663 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003878/0.0003878, allocations: 15.98 kB / 0.816 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8873/0.8877, allocations: 142.4 MB / 0.9551 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort): time 0.001265/0.8891, allocations: 0.5453 MB / 0.9556 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001498/0.8906, allocations: 1.018 MB / 0.9566 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.213e-05/0.8907, allocations: 5.438 kB / 0.9566 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001268/0.8908, allocations: 8.656 kB / 0.9566 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.186e-05/0.8909, allocations: 14.77 kB / 0.9566 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003636/0.8912, allocations: 65.64 kB / 0.9567 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001569/0.8914, allocations: 120 kB / 0.9568 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002114/0.8916, allocations: 42.23 kB / 0.9568 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.799e-05/0.8917, allocations: 46.41 kB / 0.9569 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.814e-05/0.8918, allocations: 48.59 kB / 0.9569 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.42e-05/0.8918, allocations: 5.5 kB / 0.9569 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001316/0.892, allocations: 56.98 kB / 0.957 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.438e-05/0.892, allocations: 33.55 kB / 0.957 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.846e-05/0.8921, allocations: 69.38 kB / 0.9571 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002299/0.8923, allocations: 176.5 kB / 0.9572 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.8924, allocations: 0 / 0.9572 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of FrontEnd: time 5.39e-06/0.8924, allocations: 1.562 kB / 0.9572 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.503e-06/0.8924, allocations: 3.938 kB / 0.9573 GB, free: 6.07 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.0008583/0.8932, allocations: 495.7 kB / 0.9577 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.8933, allocations: 9 kB / 0.9577 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.679e-05/0.8933, allocations: 15.94 kB / 0.9578 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001707/0.8935, allocations: 206.7 kB / 0.9579 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.8935, allocations: 4 kB / 0.958 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.136e-05/0.8936, allocations: 9.75 kB / 0.958 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005903/0.8942, allocations: 213 kB / 0.9582 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.8942, allocations: 192 / 0.9582 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.692e-05/0.8942, allocations: 5.312 kB / 0.9582 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.825e-05/0.8943, allocations: 17.3 kB / 0.9582 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008108/0.8951, allocations: 256 kB / 0.9584 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009798/0.8961, allocations: 483.2 kB / 0.9589 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00046/0.8965, allocations: 183.1 kB / 0.9591 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004041/0.8969, allocations: 152.9 kB / 0.9592 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.897, allocations: 0 / 0.9592 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.163e-05/0.897, allocations: 31.94 kB / 0.9592 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.102e-06/0.897, allocations: 0 / 0.9592 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.001416/0.8984, allocations: 479.3 kB / 0.9597 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.775e-05/0.8985, allocations: 52.64 kB / 0.9597 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.8986, allocations: 153.1 kB / 0.9599 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.679e-05/0.8986, allocations: 30.72 kB / 0.9599 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.425e-05/0.8987, allocations: 109.4 kB / 0.96 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.771e-05/0.8987, allocations: 49.48 kB / 0.9601 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/0.8988, allocations: 17.56 kB / 0.9601 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.285e-05/0.8989, allocations: 321.9 kB / 0.9604 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004264/0.8993, allocations: 139.5 kB / 0.9605 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004253/0.8997, allocations: 149.5 kB / 0.9607 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007956/0.9005, allocations: 299.7 kB / 0.961 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.9006, allocations: 0 / 0.961 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000893/0.9015, allocations: 328.5 kB / 0.9613 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.9015, allocations: 5.594 kB / 0.9613 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.9015, allocations: 4 kB / 0.9613 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.9015, allocations: 4.625 kB / 0.9613 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002616/0.9018, allocations: 47.11 kB / 0.9613 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.9018, allocations: 0 / 0.9613 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002112/0.902, allocations: 61.88 kB / 0.9614 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.731e-05/0.9021, allocations: 1.625 kB / 0.9614 GB, free: 3.234 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.906e-05/0.9022, allocations: 127.6 kB / 0.9615 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.505e-05/0.9022, allocations: 12.94 kB / 0.9615 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.789e-05/0.9022, allocations: 15.67 kB / 0.9615 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-05/0.9023, allocations: 6.344 kB / 0.9615 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.9023, allocations: 0 / 0.9615 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.9023, allocations: 5.062 kB / 0.9616 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002569/0.9025, allocations: 225.3 kB / 0.9618 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.9026, allocations: 1.594 kB / 0.9618 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002228/0.9028, allocations: 53.3 kB / 0.9618 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.9028, allocations: 5.281 kB / 0.9618 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.9028, allocations: 3.984 kB / 0.9618 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.9028, allocations: 1.5 kB / 0.9618 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.9028, allocations: 0 / 0.9618 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009424/0.9038, allocations: 433.9 kB / 0.9622 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.228e-05/0.9038, allocations: 92.53 kB / 0.9623 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.095e-05/0.9038, allocations: 1.156 kB / 0.9623 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002232/0.9041, allocations: 48.45 kB / 0.9624 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.451e-05/0.9041, allocations: 12.08 kB / 0.9624 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.37e-05/0.9042, allocations: 3 kB / 0.9624 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.378e-05/0.9042, allocations: 116.1 kB / 0.9625 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9043, allocations: 0 / 0.9625 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003231/0.9046, allocations: 41.09 kB / 0.9625 GB, free: 2.336 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 (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.0002384/0.9048, allocations: 119.1 kB / 0.9627 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0009464/0.9058, allocations: 311.3 kB / 0.963 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.9058, allocations: 3.938 kB / 0.963 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0004789/0.9063, allocations: 160.8 kB / 0.9631 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00041/0.9067, allocations: 16.62 kB / 0.9631 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006329/0.9073, allocations: 381 kB / 0.9635 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002119/0.9076, allocations: 0.7264 MB / 0.9642 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.005e-05/0.9076, allocations: 18.03 kB / 0.9642 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.126e-05/0.9077, allocations: 15.53 kB / 0.9642 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of SimCode: time 5.51e-07/0.9077, allocations: 3.938 kB / 0.9642 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of Templates: time 0.0046/0.9123, allocations: 1.536 MB / 0.9657 GB, free: 280 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