Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.00135/0.00135, allocations: 115.8 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.001095/0.001095, allocations: 193.4 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.381/1.381, 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 11.0.0-master/package.mo): time 2.52/2.52, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 66.33 kB / 0.8774 GB, free: 10.91 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3152/0.3167, allocations: 153 MB / 1.027 GB, free: 1.992 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002444/0.3192, allocations: 0.841 MB / 1.028 GB, free: 1.156 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001531/0.3208, allocations: 1.018 MB / 1.029 GB, free: 128 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.905e-05/0.3209, allocations: 0 / 1.029 GB, free: 128 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001152/0.321, allocations: 11.88 kB / 1.029 GB, free: 116 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.005e-05/0.3211, allocations: 19.81 kB / 1.029 GB, free: 96 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004519/0.3216, allocations: 91.75 kB / 1.029 GB, free: 4 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002074/0.3218, allocations: 123.7 kB / 1.029 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000195/0.322, allocations: 45.38 kB / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.3221, allocations: 51.78 kB / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.613e-05/0.3222, allocations: 55.81 kB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.693e-05/0.3222, allocations: 16 kB / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001754/0.3224, allocations: 95.89 kB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.483e-05/0.3225, allocations: 39.84 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.448e-05/0.3226, allocations: 51.67 kB / 1.029 GB, free: 15.53 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002904/0.3229, allocations: 187.3 kB / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.3229, allocations: 4 kB / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.874e-06/0.3229, allocations: 0 / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.262e-06/0.3229, allocations: 0 / 1.029 GB, free: 15.34 MB / 0.8106 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.0009139/0.3238, allocations: 486.8 kB / 1.03 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.3239, allocations: 12.03 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.745e-05/0.3239, allocations: 12.75 kB / 1.03 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002257/0.3242, allocations: 209.3 kB / 1.03 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.3242, allocations: 8.375 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.052e-05/0.3242, allocations: 4.375 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005316/0.3248, allocations: 186 kB / 1.03 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.3248, allocations: 192 / 1.03 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.203e-05/0.3248, allocations: 11.92 kB / 1.03 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.939e-05/0.3249, allocations: 15.98 kB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006709/0.3255, allocations: 203.7 kB / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009505/0.3265, allocations: 464.3 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003949/0.3269, allocations: 134.5 kB / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003676/0.3273, allocations: 128.8 kB / 1.031 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.3273, allocations: 0 / 1.031 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.3273, allocations: 34.56 kB / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=15): time 1.382e-06/0.3273, allocations: 0 / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15): time 0.001196/0.3285, allocations: 405.3 kB / 1.032 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.925e-05/0.3286, allocations: 55.41 kB / 1.032 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.3287, allocations: 143.8 kB / 1.032 GB, free: 12.69 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.797e-05/0.3288, allocations: 25.7 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.345e-05/0.3288, allocations: 112.3 kB / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.072e-05/0.3289, allocations: 51.2 kB / 1.032 GB, free: 12.49 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.914e-05/0.329, allocations: 21.72 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001341/0.3291, allocations: 322.8 kB / 1.032 GB, free: 12.14 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003502/0.3295, allocations: 115.9 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003408/0.3298, allocations: 107.9 kB / 1.032 GB, free: 11.92 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000663/0.3305, allocations: 243.7 kB / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3305, allocations: 0 / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007469/0.3313, allocations: 281.2 kB / 1.033 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.3313, allocations: 4 kB / 1.033 GB, free: 11.39 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.3313, allocations: 0 / 1.033 GB, free: 11.39 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.3313, allocations: 11.94 kB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002256/0.3316, allocations: 35.95 kB / 1.033 GB, free: 11.35 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.822e-06/0.3316, allocations: 0 / 1.033 GB, free: 11.35 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001674/0.3317, allocations: 39.8 kB / 1.033 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.447e-05/0.3318, allocations: 0 / 1.033 GB, free: 11.31 MB / 0.8106 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.000129/0.3319, allocations: 133.8 kB / 1.033 GB, free: 11.17 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.761e-05/0.332, allocations: 15.81 kB / 1.033 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.531e-05/0.332, allocations: 8.844 kB / 1.033 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.322e-05/0.332, allocations: 11.98 kB / 1.033 GB, free: 11.13 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.332, allocations: 0 / 1.033 GB, free: 11.13 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.332, allocations: 7.875 kB / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002755/0.3323, allocations: 225.5 kB / 1.033 GB, free: 10.85 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.3323, allocations: 4 kB / 1.033 GB, free: 10.85 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001971/0.3325, allocations: 39.89 kB / 1.033 GB, free: 10.81 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3325, allocations: 0 / 1.033 GB, free: 10.81 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.635e-05/0.3326, allocations: 7.984 kB / 1.033 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.3326, allocations: 4 kB / 1.033 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3326, allocations: 0 / 1.033 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008098/0.3334, allocations: 379.1 kB / 1.034 GB, free: 10.41 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.45e-05/0.3335, allocations: 88.95 kB / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.137e-05/0.3335, allocations: 0 / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/0.3337, allocations: 31.95 kB / 1.034 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.734e-05/0.3338, allocations: 15.92 kB / 1.034 GB, free: 10.26 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.821e-05/0.3338, allocations: 11.98 kB / 1.034 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.2e-05/0.3339, allocations: 109.1 kB / 1.034 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2e-07/0.3339, allocations: 4 kB / 1.034 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003012/0.3342, allocations: 39.91 kB / 1.034 GB, free: 10.1 MB / 0.8106 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.0002419/0.3344, allocations: 123.2 kB / 1.034 GB, free: 9.969 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0008037/0.3353, allocations: 251.8 kB / 1.034 GB, free: 9.723 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3353, allocations: 0 / 1.034 GB, free: 9.723 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003814/0.3357, allocations: 139.8 kB / 1.035 GB, free: 9.586 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003343/0.336, allocations: 15.98 kB / 1.035 GB, free: 9.57 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006687/0.3367, allocations: 330.9 kB / 1.035 GB, free: 9.227 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003129/0.337, allocations: 0.7197 MB / 1.036 GB, free: 8.48 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 8.849e-05/0.3371, allocations: 15.97 kB / 1.036 GB, free: 8.465 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.861e-05/0.3372, allocations: 19.38 kB / 1.036 GB, free: 8.445 MB / 0.8106 GB Notification: Performance of SimCode: time 4.61e-07/0.3372, allocations: 0 / 1.036 GB, free: 8.445 MB / 0.8106 GB Notification: Performance of Templates: time 0.00509/0.3423, allocations: 1.895 MB / 1.038 GB, free: 6.566 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Sort.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches