Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Reals.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_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort") translateModel(Buildings.Controls.OBC.CDL.Reals.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_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001625/0.001625, allocations: 108.4 kB / 16.27 MB, free: 5.984 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.001878/0.001878, allocations: 187.8 kB / 17.2 MB, free: 5.609 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.396/1.396, allocations: 222.9 MB / 240.9 MB, free: 15.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.53/2.53, allocations: 437 MB / 0.711 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 67.69 kB / 0.8699 GB, free: 2.207 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3199, allocations: 151.6 MB / 1.018 GB, free: 10.66 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002447/0.3224, allocations: 0.8325 MB / 1.019 GB, free: 9.824 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001471/0.3239, allocations: 1.006 MB / 1.02 GB, free: 8.805 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.8e-05/0.324, allocations: 0 / 1.02 GB, free: 8.805 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001227/0.3242, allocations: 15.8 kB / 1.02 GB, free: 8.789 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.477e-05/0.3243, allocations: 23.8 kB / 1.02 GB, free: 8.766 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004665/0.3247, allocations: 87.83 kB / 1.02 GB, free: 8.68 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001825/0.3249, allocations: 127.6 kB / 1.02 GB, free: 8.555 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002062/0.3252, allocations: 45.38 kB / 1.02 GB, free: 8.504 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001049/0.3253, allocations: 55.83 kB / 1.02 GB, free: 8.449 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 8.593e-05/0.3254, allocations: 55.77 kB / 1.02 GB, free: 8.395 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.67e-05/0.3254, allocations: 8 kB / 1.02 GB, free: 8.387 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001422/0.3255, allocations: 67.89 kB / 1.02 GB, free: 8.32 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 7.413e-05/0.3256, allocations: 39.89 kB / 1.02 GB, free: 8.281 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 6.949e-05/0.3257, allocations: 55.61 kB / 1.02 GB, free: 8.227 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002803/0.326, allocations: 191.7 kB / 1.021 GB, free: 8.039 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.326, allocations: 0 / 1.021 GB, free: 8.039 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.673e-06/0.326, allocations: 0 / 1.021 GB, free: 8.039 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.732e-06/0.326, allocations: 0 / 1.021 GB, free: 8.039 MB / 0.795 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.0008994/0.3269, allocations: 470.9 kB / 1.021 GB, free: 7.527 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.327, allocations: 16.91 kB / 1.021 GB, free: 7.512 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.422e-05/0.327, allocations: 12.75 kB / 1.021 GB, free: 7.5 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000216/0.3273, allocations: 211.8 kB / 1.021 GB, free: 7.254 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.3273, allocations: 8.375 kB / 1.021 GB, free: 7.246 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.739e-05/0.3273, allocations: 4.375 kB / 1.021 GB, free: 7.242 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005713/0.3279, allocations: 186 kB / 1.021 GB, free: 7.055 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.3279, allocations: 4.125 kB / 1.021 GB, free: 7.051 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.272e-05/0.3279, allocations: 11.88 kB / 1.021 GB, free: 7.039 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-05/0.328, allocations: 12 kB / 1.021 GB, free: 7.027 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007779/0.3288, allocations: 211.6 kB / 1.022 GB, free: 6.82 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009845/0.3298, allocations: 456.4 kB / 1.022 GB, free: 6.324 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004371/0.3302, allocations: 134.5 kB / 1.022 GB, free: 6.184 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003959/0.3306, allocations: 132.8 kB / 1.022 GB, free: 6.051 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.893e-05/0.3307, allocations: 3.984 kB / 1.022 GB, free: 6.047 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.653e-05/0.3307, allocations: 30.56 kB / 1.022 GB, free: 6.008 MB / 0.795 GB Notification: Performance of pre-optimization done (n=15): time 1.693e-06/0.3307, allocations: 0 / 1.022 GB, free: 6.008 MB / 0.795 GB Notification: Performance of matching and sorting (n=15): time 0.001362/0.3321, allocations: 406.9 kB / 1.023 GB, free: 5.605 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.611e-05/0.3321, allocations: 51.41 kB / 1.023 GB, free: 5.543 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.3323, allocations: 149 kB / 1.023 GB, free: 5.391 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/0.3323, allocations: 29.7 kB / 1.023 GB, free: 5.355 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.647e-05/0.3324, allocations: 105.9 kB / 1.023 GB, free: 5.25 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 5.87e-05/0.3324, allocations: 55.27 kB / 1.023 GB, free: 5.195 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.589e-05/0.3325, allocations: 21.72 kB / 1.023 GB, free: 5.168 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001282/0.3326, allocations: 326.8 kB / 1.023 GB, free: 4.84 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004071/0.3331, allocations: 111.9 kB / 1.024 GB, free: 4.73 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003901/0.3335, allocations: 111.9 kB / 1.024 GB, free: 4.621 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007535/0.3342, allocations: 246.6 kB / 1.024 GB, free: 4.379 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3342, allocations: 4 kB / 1.024 GB, free: 4.375 MB / 0.795 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.00088/0.3351, allocations: 277.3 kB / 1.024 GB, free: 4.098 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.3351, allocations: 8 kB / 1.024 GB, free: 4.09 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.3352, allocations: 4 kB / 1.024 GB, free: 4.086 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.3352, allocations: 0 / 1.024 GB, free: 4.086 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000246/0.3354, allocations: 31.95 kB / 1.024 GB, free: 4.055 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.3354, allocations: 0 / 1.024 GB, free: 4.055 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001881/0.3356, allocations: 39.8 kB / 1.024 GB, free: 4.016 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.689e-05/0.3357, allocations: 7.984 kB / 1.024 GB, free: 4.008 MB / 0.795 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.0001155/0.3358, allocations: 129.8 kB / 1.024 GB, free: 3.871 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.823e-05/0.3358, allocations: 11.81 kB / 1.024 GB, free: 3.859 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.465e-05/0.3359, allocations: 12.83 kB / 1.024 GB, free: 3.848 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.308e-05/0.3359, allocations: 11.98 kB / 1.024 GB, free: 3.836 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3359, allocations: 0 / 1.024 GB, free: 3.836 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.3359, allocations: 3.938 kB / 1.024 GB, free: 3.832 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002618/0.3362, allocations: 233.5 kB / 1.025 GB, free: 3.555 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.3362, allocations: 0 / 1.025 GB, free: 3.555 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002078/0.3364, allocations: 43.89 kB / 1.025 GB, free: 3.512 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.267e-06/0.3364, allocations: 0 / 1.025 GB, free: 3.512 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.3365, allocations: 4 kB / 1.025 GB, free: 3.508 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.3365, allocations: 3.984 kB / 1.025 GB, free: 3.504 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3365, allocations: 0 / 1.025 GB, free: 3.504 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008929/0.3374, allocations: 381.4 kB / 1.025 GB, free: 3.117 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.187e-05/0.3374, allocations: 92.94 kB / 1.025 GB, free: 3.008 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.446e-05/0.3375, allocations: 0 / 1.025 GB, free: 3.008 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002119/0.3377, allocations: 35.95 kB / 1.025 GB, free: 2.973 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.281e-05/0.3378, allocations: 15.92 kB / 1.025 GB, free: 2.957 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.3378, allocations: 4 kB / 1.025 GB, free: 2.953 MB / 0.795 GB Notification: Performance of sorting global known variables: time 7.451e-05/0.3379, allocations: 113.5 kB / 1.025 GB, free: 2.844 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3379, allocations: 0 / 1.025 GB, free: 2.844 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002873/0.3382, allocations: 35.91 kB / 1.025 GB, free: 2.809 MB / 0.795 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.0002304/0.3384, allocations: 127.2 kB / 1.025 GB, free: 2.676 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0008623/0.3393, allocations: 255.8 kB / 1.026 GB, free: 2.426 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.3393, allocations: 8 kB / 1.026 GB, free: 2.418 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004056/0.3397, allocations: 131.8 kB / 1.026 GB, free: 2.289 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003708/0.3401, allocations: 19.98 kB / 1.026 GB, free: 2.27 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006395/0.3407, allocations: 356.6 kB / 1.026 GB, free: 1.891 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002917/0.341, allocations: 0.7275 MB / 1.027 GB, free: 1.137 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.678e-05/0.3411, allocations: 11.44 kB / 1.027 GB, free: 1.125 MB / 0.795 GB Notification: Performance of SimCode: time 2.3e-07/0.3411, allocations: 0 / 1.027 GB, free: 1.125 MB / 0.795 GB Notification: Performance of Templates: time 0.004118/0.3452, allocations: 1.883 MB / 1.029 GB, free: 15.26 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Sort.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches