Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Sort") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Sort,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001232/0.001232, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001489/0.001489, allocations: 197.9 kB / 16.14 MB, free: 6.695 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.458/1.458, allocations: 222.9 MB / 239.8 MB, free: 4.656 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.071/3.071, allocations: 472.6 MB / 0.7447 GB, free: 4.957 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 69.12 kB / 0.9114 GB, free: 33.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3549/0.3562, allocations: 159.9 MB / 1.068 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002467/0.3587, allocations: 0.8878 MB / 1.068 GB, free: 9.969 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001352/0.3601, allocations: 1.042 MB / 1.069 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.788e-05/0.3602, allocations: 0 / 1.069 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001349/0.3603, allocations: 7.938 kB / 1.069 GB, free: 8.906 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.274e-05/0.3604, allocations: 15.86 kB / 1.069 GB, free: 8.891 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003183/0.3607, allocations: 67.86 kB / 1.07 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001339/0.3609, allocations: 119.6 kB / 1.07 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.361, allocations: 49.09 kB / 1.07 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.125e-05/0.3611, allocations: 47.84 kB / 1.07 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.963e-05/0.3612, allocations: 59.73 kB / 1.07 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.09e-05/0.3612, allocations: 4 kB / 1.07 GB, free: 8.551 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001283/0.3614, allocations: 63.89 kB / 1.07 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.886e-05/0.3614, allocations: 35.86 kB / 1.07 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.895e-05/0.3615, allocations: 59.53 kB / 1.07 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002431/0.3618, allocations: 203.6 kB / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3618, allocations: 0 / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.92e-07/0.3618, allocations: 0 / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.3618, allocations: 0 / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.000837/0.3626, allocations: 490.8 kB / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.3627, allocations: 8.031 kB / 1.071 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.086e-05/0.3627, allocations: 24.73 kB / 1.071 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001977/0.3629, allocations: 214.7 kB / 1.071 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.3629, allocations: 4.375 kB / 1.071 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.193e-05/0.363, allocations: 8.375 kB / 1.071 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005377/0.3635, allocations: 206 kB / 1.071 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.3635, allocations: 192 / 1.071 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.677e-05/0.3636, allocations: 11.94 kB / 1.071 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.3636, allocations: 0 / 1.071 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006938/0.3643, allocations: 223.8 kB / 1.071 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009752/0.3652, allocations: 0.5273 MB / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004446/0.3657, allocations: 170.5 kB / 1.072 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003991/0.3661, allocations: 157.4 kB / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 6.003e-05/0.3662, allocations: 4 kB / 1.072 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.779e-05/0.3662, allocations: 34.5 kB / 1.072 GB, free: 5.98 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=25): time 3.767e-06/0.3662, allocations: 0 / 1.072 GB, free: 5.98 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25): time 0.001371/0.3676, allocations: 482.6 kB / 1.073 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.251e-05/0.3676, allocations: 59.34 kB / 1.073 GB, free: 5.434 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001537/0.3678, allocations: 150.2 kB / 1.073 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.283e-05/0.3678, allocations: 25.7 kB / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.121e-05/0.3679, allocations: 112.4 kB / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.188e-05/0.368, allocations: 63.02 kB / 1.073 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.353e-05/0.3681, allocations: 37.64 kB / 1.073 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001647/0.3682, allocations: 330.8 kB / 1.073 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000401/0.3686, allocations: 131.9 kB / 1.073 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003763/0.369, allocations: 145 kB / 1.074 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007896/0.3698, allocations: 298.3 kB / 1.074 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3698, allocations: 0 / 1.074 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008524/0.3707, allocations: 332.3 kB / 1.074 GB, free: 3.805 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.3707, allocations: 8 kB / 1.074 GB, free: 3.797 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.3707, allocations: 0 / 1.074 GB, free: 3.797 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.3708, allocations: 4 kB / 1.074 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002271/0.371, allocations: 35.95 kB / 1.074 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.371, allocations: 3.938 kB / 1.074 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001736/0.3712, allocations: 39.8 kB / 1.074 GB, free: 3.715 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.535e-05/0.3712, allocations: 4 kB / 1.074 GB, free: 3.711 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: 10 (sorDes.yIdx[5],sorDes.yIdx[4],sorDes.yIdx[3],sorDes.yIdx[2],sorDes.yIdx[1],sorAsc.yIdx[5],sorAsc.yIdx[4],sorAsc.yIdx[3],sorAsc.yIdx[2],sorAsc.yIdx[1]) * 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: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001465/0.3714, allocations: 141.8 kB / 1.074 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.517e-05/0.3714, allocations: 11.89 kB / 1.074 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009163/0.3723, allocations: 366.4 kB / 1.075 GB, free: 3.184 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.3723, allocations: 0 / 1.075 GB, free: 3.184 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.794e-06/0.3724, allocations: 3.938 kB / 1.075 GB, free: 3.18 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.3724, allocations: 3.984 kB / 1.075 GB, free: 3.176 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000267/0.3726, allocations: 273.4 kB / 1.075 GB, free: 2.859 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/0.3726, allocations: 0 / 1.075 GB, free: 2.859 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001932/0.3728, allocations: 39.95 kB / 1.075 GB, free: 2.82 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3729, allocations: 0 / 1.075 GB, free: 2.82 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.3729, allocations: 0 / 1.075 GB, free: 2.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.3729, allocations: 7.984 kB / 1.075 GB, free: 2.812 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3729, allocations: 3.938 kB / 1.075 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008729/0.3738, allocations: 435.9 kB / 1.076 GB, free: 2.367 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.836e-05/0.3738, allocations: 92.86 kB / 1.076 GB, free: 2.258 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.347e-05/0.3739, allocations: 0 / 1.076 GB, free: 2.258 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001977/0.3741, allocations: 35.95 kB / 1.076 GB, free: 2.223 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.644e-05/0.3742, allocations: 15.92 kB / 1.076 GB, free: 2.207 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.314e-05/0.3742, allocations: 4 kB / 1.076 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.692e-05/0.3743, allocations: 113.5 kB / 1.076 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3743, allocations: 0 / 1.076 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000279/0.3745, allocations: 47.84 kB / 1.076 GB, free: 2.047 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: 10 (sorAsc.yIdx[1],sorAsc.yIdx[2],sorAsc.yIdx[3],sorAsc.yIdx[4],sorAsc.yIdx[5],sorDes.yIdx[1],sorDes.yIdx[2],sorDes.yIdx[3],sorDes.yIdx[4],sorDes.yIdx[5]) * 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: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0002912/0.3748, allocations: 128.8 kB / 1.076 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008793/0.3757, allocations: 383 kB / 1.076 GB, free: 1.527 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.3757, allocations: 4 kB / 1.076 GB, free: 1.523 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004323/0.3762, allocations: 235.3 kB / 1.077 GB, free: 1.281 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003022/0.3765, allocations: 23.92 kB / 1.077 GB, free: 1.258 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006248/0.3771, allocations: 401.1 kB / 1.077 GB, free: 0.832 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003797/0.3775, allocations: 0.7317 MB / 1.078 GB, free: 76 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.195e-05/0.3776, allocations: 15.97 kB / 1.078 GB, free: 60 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.944e-05/0.3776, allocations: 15.44 kB / 1.078 GB, free: 44 kB / 0.8262 GB Notification: Performance of SimCode: time 3.3e-07/0.3776, allocations: 0 / 1.078 GB, free: 44 kB / 0.8262 GB Notification: Performance of Templates: time 0.004488/0.3821, allocations: 1.68 MB / 1.079 GB, free: 14.38 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.makefile (rm -f Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; mkfifo Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe >> ../files/Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.sim & ./Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Sort -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1)