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.0008977/0.0008979, allocations: 92.08 kB / 15.06 MB, free: 1.098 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.00099/0.0009902, allocations: 172.7 kB / 15.95 MB, free: 208 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.482/1.482, allocations: 223.3 MB / 240 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.079/3.079, allocations: 462.6 MB / 0.736 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004427/0.0004427, allocations: 11.5 kB / 0.9022 GB, free: 36.7 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3285/0.3289, allocations: 159.6 MB / 1.058 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.001063/0.3301, allocations: 0.5276 MB / 1.059 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001149/0.3312, allocations: 0.9989 MB / 1.06 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.477e-05/0.3313, allocations: 0 / 1.06 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 8.415e-05/0.3314, allocations: 3.938 kB / 1.06 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.799e-05/0.3314, allocations: 19.84 kB / 1.06 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003284/0.3318, allocations: 63.88 kB / 1.06 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001252/0.3319, allocations: 103.7 kB / 1.06 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001573/0.3321, allocations: 45.36 kB / 1.06 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.731e-05/0.3322, allocations: 43.78 kB / 1.06 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.701e-05/0.3322, allocations: 47.77 kB / 1.06 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.834e-05/0.3323, allocations: 4 kB / 1.06 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.336e-05/0.3324, allocations: 43.97 kB / 1.06 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.647e-05/0.3324, allocations: 31.84 kB / 1.06 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.426e-05/0.3325, allocations: 41.64 kB / 1.06 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001607/0.3326, allocations: 127.7 kB / 1.06 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3326, allocations: 0 / 1.06 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.933e-06/0.3326, allocations: 3.938 kB / 1.06 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.617e-06/0.3327, allocations: 0 / 1.06 GB, free: 3.207 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.0007739/0.3334, allocations: 495 kB / 1.061 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.3335, allocations: 8.031 kB / 1.061 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.235e-05/0.3335, allocations: 15.81 kB / 1.061 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001937/0.3337, allocations: 206.6 kB / 1.061 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.051e-05/0.3337, allocations: 0 / 1.061 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.943e-05/0.3338, allocations: 11.95 kB / 1.061 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005008/0.3343, allocations: 213.5 kB / 1.061 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.3343, allocations: 0 / 1.061 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.3343, allocations: 8 kB / 1.061 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.305e-05/0.3344, allocations: 11.98 kB / 1.061 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006711/0.335, allocations: 251.8 kB / 1.061 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008555/0.3359, allocations: 492.3 kB / 1.062 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005047/0.3364, allocations: 170.4 kB / 1.062 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003475/0.3368, allocations: 152.8 kB / 1.062 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.812e-05/0.3368, allocations: 3.938 kB / 1.062 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.512e-05/0.3368, allocations: 42.56 kB / 1.062 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=15): time 1.293e-06/0.3368, allocations: 0 / 1.062 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15): time 0.001162/0.338, allocations: 468.4 kB / 1.063 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.843e-05/0.3381, allocations: 63.36 kB / 1.063 GB, free: 480 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001202/0.3382, allocations: 146.5 kB / 1.063 GB, free: 324 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.3382, allocations: 29.77 kB / 1.063 GB, free: 288 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.841e-05/0.3383, allocations: 108.4 kB / 1.063 GB, free: 172 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.695e-05/0.3384, allocations: 59.14 kB / 1.063 GB, free: 112 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.203e-06/0.3384, allocations: 4 kB / 1.063 GB, free: 108 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001221/0.3385, allocations: 322.8 kB / 1.063 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000336/0.3388, allocations: 139.9 kB / 1.063 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003164/0.3392, allocations: 135.9 kB / 1.063 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004186/0.3396, allocations: 143.9 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.3396, allocations: 4 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007479/0.3404, allocations: 321.4 kB / 1.064 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.3404, allocations: 5.719 kB / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3404, allocations: 0 / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.3404, allocations: 4 kB / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000231/0.3407, allocations: 51.95 kB / 1.064 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.3407, allocations: 0 / 1.064 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001725/0.3409, allocations: 63.73 kB / 1.064 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.728e-05/0.3409, allocations: 3.938 kB / 1.064 GB, free: 14.92 MB / 0.8262 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 0.0001126/0.341, allocations: 133.8 kB / 1.064 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.276e-05/0.341, allocations: 11.81 kB / 1.064 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.265e-05/0.3411, allocations: 8.844 kB / 1.064 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.845e-05/0.3411, allocations: 15.92 kB / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.3411, allocations: 4 kB / 1.064 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/0.3411, allocations: 0 / 1.064 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002672/0.3414, allocations: 233.5 kB / 1.064 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3414, allocations: 0 / 1.064 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001856/0.3416, allocations: 47.95 kB / 1.064 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.3416, allocations: 0 / 1.064 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.3416, allocations: 8 kB / 1.064 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.3417, allocations: 0 / 1.064 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.3417, allocations: 0 / 1.064 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007531/0.3424, allocations: 446.3 kB / 1.065 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.349e-05/0.3425, allocations: 88.95 kB / 1.065 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.029e-05/0.3425, allocations: 0 / 1.065 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001851/0.3427, allocations: 39.95 kB / 1.065 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.023e-05/0.3428, allocations: 19.97 kB / 1.065 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.464e-05/0.3428, allocations: 4 kB / 1.065 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.926e-05/0.3429, allocations: 107.3 kB / 1.065 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.71e-07/0.3429, allocations: 4 kB / 1.065 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000285/0.3432, allocations: 43.89 kB / 1.065 GB, free: 13.64 MB / 0.8262 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.0002272/0.3434, allocations: 111.2 kB / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007464/0.3442, allocations: 311.7 kB / 1.066 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3442, allocations: 4 kB / 1.066 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003523/0.3446, allocations: 159.9 kB / 1.066 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003566/0.3449, allocations: 19.94 kB / 1.066 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000571/0.3455, allocations: 358 kB / 1.066 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002918/0.3458, allocations: 0.724 MB / 1.067 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.211e-05/0.3459, allocations: 15.97 kB / 1.067 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.097e-05/0.3459, allocations: 11.44 kB / 1.067 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.3459, allocations: 0 / 1.067 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of Templates: time 0.004018/0.35, allocations: 1.525 MB / 1.068 GB, free: 10.38 MB / 0.8262 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 -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/jenkins/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