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.001235/0.001235, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001388/0.001388, allocations: 177.3 kB / 15.94 MB, free: 228 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.334/1.334, allocations: 223.2 MB / 239.9 MB, free: 5.297 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.349/2.349, allocations: 390.3 MB / 0.6653 GB, free: 2.871 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005047/0.0005047, allocations: 15.98 kB / 0.8146 GB, free: 14.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6497/0.6502, allocations: 142.3 MB / 0.9535 GB, free: 8.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort): time 0.000896/0.6512, allocations: 0.5274 MB / 0.954 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001005/0.6522, allocations: 0.9977 MB / 0.955 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.074e-05/0.6523, allocations: 1.438 kB / 0.955 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.873e-05/0.6524, allocations: 7.938 kB / 0.955 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.918e-05/0.6524, allocations: 20.22 kB / 0.955 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003064/0.6527, allocations: 72.03 kB / 0.9551 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001025/0.6528, allocations: 65.81 kB / 0.9552 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001385/0.653, allocations: 35.23 kB / 0.9552 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.585e-05/0.653, allocations: 41.67 kB / 0.9553 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.968e-05/0.6531, allocations: 45.59 kB / 0.9553 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.886e-05/0.6532, allocations: 8.156 kB / 0.9553 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.833e-05/0.6533, allocations: 46.81 kB / 0.9553 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.137e-05/0.6533, allocations: 32.12 kB / 0.9554 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.771e-05/0.6533, allocations: 39.23 kB / 0.9554 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001547/0.6535, allocations: 128.7 kB / 0.9555 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.6535, allocations: 0 / 0.9555 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.653e-06/0.6535, allocations: 0 / 0.9555 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.475e-06/0.6535, allocations: 4 kB / 0.9555 GB, free: 6.547 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.0007292/0.6543, allocations: 493.1 kB / 0.956 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.6543, allocations: 9.469 kB / 0.956 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.28e-05/0.6544, allocations: 18.02 kB / 0.956 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/0.6545, allocations: 200.1 kB / 0.9562 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.6545, allocations: 3.656 kB / 0.9562 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.083e-05/0.6546, allocations: 8.125 kB / 0.9562 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005667/0.6551, allocations: 211 kB / 0.9564 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.998e-06/0.6552, allocations: 0 / 0.9564 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.6552, allocations: 5.438 kB / 0.9564 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-05/0.6552, allocations: 17.23 kB / 0.9565 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007611/0.656, allocations: 255.1 kB / 0.9567 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008967/0.6569, allocations: 495.2 kB / 0.9572 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004495/0.6574, allocations: 166.3 kB / 0.9573 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.567e-05/0.6574, allocations: 0 / 0.9573 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.971e-05/0.6574, allocations: 31.69 kB / 0.9574 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.122e-06/0.6574, allocations: 1.312 kB / 0.9574 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.001487/0.6589, allocations: 0.6341 MB / 0.958 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.404e-05/0.659, allocations: 61.25 kB / 0.958 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001253/0.6591, allocations: 138.7 kB / 0.9582 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.649e-05/0.6591, allocations: 26.67 kB / 0.9582 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.813e-05/0.6592, allocations: 110.6 kB / 0.9583 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.664e-05/0.6592, allocations: 53.14 kB / 0.9584 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.224e-06/0.6592, allocations: 0 / 0.9584 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.302e-05/0.6593, allocations: 329.9 kB / 0.9587 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003924/0.6597, allocations: 140.2 kB / 0.9588 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003646/0.6601, allocations: 135.9 kB / 0.9589 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003764/0.6605, allocations: 146.6 kB / 0.9591 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.6605, allocations: 4 kB / 0.9591 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008348/0.6613, allocations: 337.2 kB / 0.9594 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.6613, allocations: 5.562 kB / 0.9594 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.453e-06/0.6614, allocations: 0 / 0.9594 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.6614, allocations: 1.156 kB / 0.9594 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002427/0.6616, allocations: 49.48 kB / 0.9595 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.431e-06/0.6616, allocations: 0.75 kB / 0.9595 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001798/0.6618, allocations: 53.39 kB / 0.9595 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.429e-05/0.6618, allocations: 2.125 kB / 0.9595 GB, free: 3.68 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 8.006e-05/0.6619, allocations: 127.6 kB / 0.9596 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.321e-05/0.662, allocations: 16 kB / 0.9596 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.11e-05/0.662, allocations: 15.58 kB / 0.9597 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.196e-05/0.662, allocations: 7 kB / 0.9597 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.662, allocations: 1 kB / 0.9597 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.6621, allocations: 4 kB / 0.9597 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002145/0.6623, allocations: 229.9 kB / 0.9599 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.6623, allocations: 0 / 0.9599 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002094/0.6625, allocations: 50.95 kB / 0.9599 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.6625, allocations: 3.953 kB / 0.9599 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.6625, allocations: 9.016 kB / 0.96 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.564e-06/0.6625, allocations: 5.188 kB / 0.96 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.6625, allocations: 3.938 kB / 0.96 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008344/0.6634, allocations: 424.7 kB / 0.9604 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.555e-05/0.6634, allocations: 91.92 kB / 0.9605 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.301e-05/0.6634, allocations: 4.984 kB / 0.9605 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.6637, allocations: 44.48 kB / 0.9605 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.837e-05/0.6637, allocations: 15.88 kB / 0.9605 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.114e-05/0.6638, allocations: 6.531 kB / 0.9605 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.33e-05/0.6638, allocations: 115.3 kB / 0.9606 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6638, allocations: 1.031 kB / 0.9606 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003114/0.6641, allocations: 37.41 kB / 0.9607 GB, free: 2.77 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.0002432/0.6644, allocations: 117.4 kB / 0.9608 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0008986/0.6653, allocations: 319.3 kB / 0.9611 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.6653, allocations: 0 / 0.9611 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0004062/0.6657, allocations: 160.6 kB / 0.9612 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002679/0.666, allocations: 15.39 kB / 0.9613 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005144/0.6665, allocations: 362.9 kB / 0.9616 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001435/0.6667, allocations: 0.7281 MB / 0.9623 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.614e-05/0.6668, allocations: 18.12 kB / 0.9623 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.939e-05/0.6668, allocations: 10.81 kB / 0.9623 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of SimCode: time 5.91e-07/0.6668, allocations: 0 / 0.9623 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of Templates: time 0.0044/0.6712, allocations: 1.508 MB / 0.9638 GB, free: 0.7305 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","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches