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.001395/0.001394, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001637/0.001637, allocations: 190.6 kB / 16.25 MB, free: 6.59 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.525/1.525, allocations: 222.9 MB / 239.9 MB, free: 4.496 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.491/2.491, allocations: 390.2 MB / 0.6644 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001681/0.001681, allocations: 59.91 kB / 0.8121 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7759/0.7776, allocations: 140.4 MB / 0.9491 GB, free: 9.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort): time 0.002173/0.7799, allocations: 0.8931 MB / 0.95 GB, free: 8.426 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001249/0.7811, allocations: 1.008 MB / 0.951 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.718e-05/0.7812, allocations: 5.375 kB / 0.951 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001264/0.7813, allocations: 11.92 kB / 0.951 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.826e-05/0.7814, allocations: 10 kB / 0.951 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003811/0.7818, allocations: 78.64 kB / 0.9511 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001298/0.7819, allocations: 120.6 kB / 0.9512 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001732/0.7821, allocations: 48.3 kB / 0.9512 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.576e-05/0.7822, allocations: 56.7 kB / 0.9513 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.295e-05/0.7823, allocations: 56.22 kB / 0.9513 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.482e-05/0.7823, allocations: 10.5 kB / 0.9514 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001112/0.7824, allocations: 59.08 kB / 0.9514 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.32e-05/0.7825, allocations: 43.97 kB / 0.9515 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.058e-05/0.7825, allocations: 51.14 kB / 0.9515 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002089/0.7827, allocations: 198.7 kB / 0.9517 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.7827, allocations: 0 / 0.9517 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.863e-06/0.7828, allocations: 4 kB / 0.9517 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.982e-06/0.7828, allocations: 0 / 0.9517 GB, free: 7.109 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.0007322/0.7835, allocations: 478.2 kB / 0.9521 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.7836, allocations: 10.41 kB / 0.9522 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.45e-05/0.7836, allocations: 18.72 kB / 0.9522 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001843/0.7838, allocations: 204.2 kB / 0.9524 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.403e-05/0.7838, allocations: 10.94 kB / 0.9524 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.763e-05/0.7838, allocations: 8.672 kB / 0.9524 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005472/0.7844, allocations: 182.1 kB / 0.9526 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.7844, allocations: 192 / 0.9526 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.746e-05/0.7844, allocations: 9 kB / 0.9526 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.604e-05/0.7845, allocations: 17.17 kB / 0.9526 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006429/0.7851, allocations: 195 kB / 0.9528 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008223/0.786, allocations: 461.3 kB / 0.9532 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003751/0.7864, allocations: 139.3 kB / 0.9533 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003486/0.7867, allocations: 127.8 kB / 0.9535 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.213e-05/0.7867, allocations: 5.234 kB / 0.9535 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.747e-05/0.7868, allocations: 39.88 kB / 0.9535 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.292e-06/0.7868, allocations: 0 / 0.9535 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.001192/0.788, allocations: 391.4 kB / 0.9539 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.075e-05/0.788, allocations: 52.66 kB / 0.9539 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.7882, allocations: 151 kB / 0.9541 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.7882, allocations: 25.7 kB / 0.9541 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.228e-05/0.7883, allocations: 110.8 kB / 0.9542 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.26e-05/0.7884, allocations: 48.92 kB / 0.9543 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.492e-05/0.7884, allocations: 32.94 kB / 0.9543 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.973e-05/0.7885, allocations: 321.4 kB / 0.9546 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003711/0.7889, allocations: 115.7 kB / 0.9547 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003451/0.7892, allocations: 116.2 kB / 0.9548 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006506/0.7899, allocations: 244.5 kB / 0.955 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.7899, allocations: 0 / 0.955 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007078/0.7906, allocations: 275.8 kB / 0.9553 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.7907, allocations: 4.531 kB / 0.9553 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.7907, allocations: 1.125 kB / 0.9553 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.7907, allocations: 0 / 0.9553 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000227/0.7909, allocations: 41.92 kB / 0.9554 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.7909, allocations: 1.188 kB / 0.9554 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000166/0.7911, allocations: 40.3 kB / 0.9554 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.787e-05/0.7911, allocations: 3.156 kB / 0.9554 GB, free: 4.324 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 8.863e-05/0.7912, allocations: 130.8 kB / 0.9555 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.216e-05/0.7913, allocations: 12.81 kB / 0.9555 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.005e-05/0.7913, allocations: 11.12 kB / 0.9555 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.152e-05/0.7913, allocations: 12.92 kB / 0.9556 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.7913, allocations: 0 / 0.9556 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.7914, allocations: 3.938 kB / 0.9556 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002139/0.7916, allocations: 228.7 kB / 0.9558 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.7916, allocations: 1.094 kB / 0.9558 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001883/0.7918, allocations: 33.73 kB / 0.9558 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.7918, allocations: 1.375 kB / 0.9558 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.7918, allocations: 8 kB / 0.9558 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.7918, allocations: 5.531 kB / 0.9558 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.7918, allocations: 4 kB / 0.9558 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007813/0.7926, allocations: 381.7 kB / 0.9562 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.375e-05/0.7926, allocations: 89.36 kB / 0.9563 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.308e-05/0.7927, allocations: 0 / 0.9563 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001898/0.7929, allocations: 28.52 kB / 0.9563 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.301e-05/0.7929, allocations: 16.3 kB / 0.9563 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.716e-05/0.793, allocations: 10.28 kB / 0.9563 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.414e-05/0.793, allocations: 110.5 kB / 0.9564 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.793, allocations: 0 / 0.9564 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003191/0.7934, allocations: 45.67 kB / 0.9565 GB, free: 3.422 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.0002264/0.7936, allocations: 123.3 kB / 0.9566 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0007688/0.7944, allocations: 265.6 kB / 0.9569 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.7944, allocations: 0 / 0.9569 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003627/0.7948, allocations: 132.9 kB / 0.957 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004047/0.7952, allocations: 18.58 kB / 0.957 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005448/0.7957, allocations: 377.9 kB / 0.9574 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001793/0.7959, allocations: 0.7185 MB / 0.9581 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.569e-05/0.796, allocations: 21.16 kB / 0.9581 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.519e-05/0.7961, allocations: 17.5 kB / 0.9581 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of SimCode: time 7.21e-07/0.7961, allocations: 0 / 0.9581 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of Templates: time 0.004556/0.8006, allocations: 1.624 MB / 0.9597 GB, free: 1.328 MB / 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