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.001589/0.001589, allocations: 114.5 kB / 16.37 MB, free: 6.012 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.001857/0.001857, allocations: 193.8 kB / 17.31 MB, free: 5.613 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.52/1.52, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.675/2.675, allocations: 390.3 MB / 0.6655 GB, free: 0.5625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001832/0.001832, allocations: 64.48 kB / 0.814 GB, free: 32.7 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3312/0.3331, allocations: 140.4 MB / 0.9512 GB, free: 8.035 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort): time 0.002495/0.3356, allocations: 0.8346 MB / 0.952 GB, free: 7.203 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001524/0.3372, allocations: 1.012 MB / 0.953 GB, free: 6.18 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.051e-05/0.3373, allocations: 4 kB / 0.953 GB, free: 6.176 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001204/0.3374, allocations: 11.86 kB / 0.953 GB, free: 6.164 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.25e-05/0.3375, allocations: 19.8 kB / 0.953 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004893/0.338, allocations: 83.83 kB / 0.9531 GB, free: 6.062 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000178/0.3382, allocations: 131.5 kB / 0.9532 GB, free: 5.934 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001947/0.3384, allocations: 45.39 kB / 0.9532 GB, free: 5.883 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.3385, allocations: 47.84 kB / 0.9533 GB, free: 5.836 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001026/0.3386, allocations: 63.75 kB / 0.9533 GB, free: 5.773 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.771e-05/0.3387, allocations: 12 kB / 0.9534 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001696/0.3388, allocations: 91.84 kB / 0.9534 GB, free: 5.672 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.383e-05/0.3389, allocations: 39.89 kB / 0.9535 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.725e-05/0.339, allocations: 51.61 kB / 0.9535 GB, free: 5.582 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003232/0.3393, allocations: 199.3 kB / 0.9537 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3393, allocations: 0 / 0.9537 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.024e-06/0.3393, allocations: 0 / 0.9537 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.572e-06/0.3393, allocations: 0 / 0.9537 GB, free: 5.387 MB / 0.7325 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.0009451/0.3403, allocations: 478.9 kB / 0.9542 GB, free: 4.867 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.3403, allocations: 12.03 kB / 0.9542 GB, free: 4.855 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.381e-05/0.3404, allocations: 12.75 kB / 0.9542 GB, free: 4.844 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002386/0.3406, allocations: 212 kB / 0.9544 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.554e-05/0.3407, allocations: 8.375 kB / 0.9544 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.875e-05/0.3407, allocations: 4.375 kB / 0.9544 GB, free: 4.586 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005603/0.3413, allocations: 192.1 kB / 0.9546 GB, free: 4.395 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.3413, allocations: 192 / 0.9546 GB, free: 4.395 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.3413, allocations: 3.938 kB / 0.9546 GB, free: 4.391 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.689e-05/0.3413, allocations: 15.98 kB / 0.9546 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006426/0.342, allocations: 199.8 kB / 0.9548 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009497/0.343, allocations: 464.2 kB / 0.9553 GB, free: 3.676 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003851/0.3433, allocations: 138.4 kB / 0.9554 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003568/0.3437, allocations: 132.8 kB / 0.9555 GB, free: 3.398 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.184e-05/0.3437, allocations: 4 kB / 0.9555 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.571e-05/0.3438, allocations: 30.56 kB / 0.9555 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.913e-06/0.3438, allocations: 0 / 0.9555 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.001217/0.345, allocations: 401.2 kB / 0.9559 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.104e-05/0.3451, allocations: 59.28 kB / 0.956 GB, free: 2.887 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001319/0.3452, allocations: 145.2 kB / 0.9561 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.198e-05/0.3452, allocations: 29.7 kB / 0.9561 GB, free: 2.699 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.538e-05/0.3453, allocations: 112.4 kB / 0.9563 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.801e-05/0.3454, allocations: 47.2 kB / 0.9563 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.732e-05/0.3454, allocations: 25.7 kB / 0.9563 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001304/0.3456, allocations: 326.8 kB / 0.9566 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000357/0.3459, allocations: 111.9 kB / 0.9567 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003284/0.3463, allocations: 111.9 kB / 0.9568 GB, free: 1.957 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006693/0.347, allocations: 239.7 kB / 0.9571 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.347, allocations: 4 kB / 0.9571 GB, free: 1.719 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007351/0.3477, allocations: 285.2 kB / 0.9574 GB, free: 1.434 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.3477, allocations: 8 kB / 0.9574 GB, free: 1.426 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.3478, allocations: 3.938 kB / 0.9574 GB, free: 1.422 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.3478, allocations: 0 / 0.9574 GB, free: 1.422 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002424/0.348, allocations: 35.95 kB / 0.9574 GB, free: 1.387 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.348, allocations: 0 / 0.9574 GB, free: 1.387 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001608/0.3482, allocations: 35.8 kB / 0.9574 GB, free: 1.352 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.547e-05/0.3482, allocations: 8 kB / 0.9574 GB, free: 1.344 MB / 0.7325 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 0.0001057/0.3483, allocations: 125.8 kB / 0.9576 GB, free: 1.211 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.476e-05/0.3484, allocations: 7.906 kB / 0.9576 GB, free: 1.203 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.332e-05/0.3484, allocations: 12.84 kB / 0.9576 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.499e-05/0.3485, allocations: 15.98 kB / 0.9576 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.3485, allocations: 0 / 0.9576 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.3485, allocations: 3.938 kB / 0.9576 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002901/0.3488, allocations: 225.4 kB / 0.9578 GB, free: 0.9023 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3488, allocations: 0 / 0.9578 GB, free: 0.9023 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001946/0.349, allocations: 43.95 kB / 0.9579 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.349, allocations: 0 / 0.9579 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.349, allocations: 0 / 0.9579 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.349, allocations: 0 / 0.9579 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.349, allocations: 0 / 0.9579 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007901/0.3498, allocations: 387 kB / 0.9582 GB, free: 476 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.711e-05/0.3499, allocations: 92.95 kB / 0.9583 GB, free: 364 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.1e-05/0.3499, allocations: 0 / 0.9583 GB, free: 364 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001893/0.3501, allocations: 35.95 kB / 0.9583 GB, free: 328 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.058e-05/0.3502, allocations: 19.86 kB / 0.9584 GB, free: 308 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.247e-05/0.3502, allocations: 4 kB / 0.9584 GB, free: 304 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.649e-05/0.3503, allocations: 107.2 kB / 0.9585 GB, free: 196 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1e-07/0.3503, allocations: 0 / 0.9585 GB, free: 196 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002932/0.3506, allocations: 47.91 kB / 0.9585 GB, free: 148 kB / 0.7325 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.0002288/0.3508, allocations: 115.2 kB / 0.9586 GB, free: 20 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0008193/0.3516, allocations: 259.7 kB / 0.9589 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3516, allocations: 0 / 0.9589 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0003649/0.352, allocations: 131.9 kB / 0.959 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003806/0.3524, allocations: 17.64 kB / 0.959 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006114/0.353, allocations: 342.8 kB / 0.9593 GB, free: 15.26 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003151/0.3534, allocations: 0.7289 MB / 0.9601 GB, free: 14.51 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 8.161e-05/0.3535, allocations: 19.95 kB / 0.9601 GB, free: 14.49 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.542e-05/0.3535, allocations: 11.44 kB / 0.9601 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of SimCode: time 6.91e-07/0.3535, allocations: 0 / 0.9601 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of Templates: time 0.004608/0.3581, allocations: 1.888 MB / 0.9619 GB, free: 12.61 MB / 0.7481 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 -s cvode -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/jenkins1/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